Simple Coding Help - No Promise.

dell

Well-Known Member
thanks to all of u , now i can easily add explorer lines , backtesting rules ,creating multitf logics and plot them .........i have no programming background , but with the helping hands here now can test my idea's ,logic easily , ..........this thread is really helping traders which have no programming background but want to learn , a right plateform .........

.and one thing i learn after testing my idea's is when things remain simple (kiss) the system remains more profitable but whips r there , when we add more and more conditions for filteration of whips the profitability also decereases............if any idea ? for filteration of whips without affecting profitability .........plz share.........or how to reduce whips in a system with minimal effect on profitability plz share .........

also after testing many trend following systems i came to conclusion that they make entry after a certain move and more over entry difference in different systems is 1-3 bars , all systems give entry at almost same time or 1-2 bar difference ........question here is after certain move if it continues 1-2 bar more after our entry and than collapse than what , yes our sl is there but is there any way for identyfing such setups which got failed .........is there certain condition's which is necessary for a move to continue ?

now happy ji , on ur free time if one more tutorial ..............it will be sonay pay suhaga .........
tutorial for : how to code for intial lots (condition 1) and for adds (condition 2) and how to book profit on a fixed price (one lot at profit of 50 points ) and at last book finally all lots (if condition 3 meets ).
if u r not free or busy , can u plz give me a link of another afl example where all this condition's r there ? will see it and modify according to my needs .............
 
Last edited:

pratapvb

Well-Known Member
thanks to all of u , now i can easily add explorer lines , backtesting rules ,creating multitf logics and plot them .........i have no programming background , but with the helping hands here now can test my idea's ,logic easily , ..........this thread is really helping traders which have no programming background but want to learn , a right plateform .........

.and one thing i learn after testing my idea's is when things remain simple (kiss) the system remains more profitable but whips r there , when we add more and more conditions for filteration of whips the profitability also decereases............if any idea ? for filteration of whips without affecting profitability .........plz share.........or how to reduce whips in a system with minimal effect on profitability plz share .........

also after testing many trend following systems i came to conclusion that they make entry after a certain move and more over entry difference in different systems is 1-3 bars , all systems give entry at almost same time or 1-2 bar difference ........question here is after certain move if it continues 1-2 bar more after our entry and than collapse than what , yes our sl is there but is there any way for identyfing such setups which got failed .........is there certain condition's which is necessary for a move to continue ?

now happy ji , on ur free time if one more tutorial ..............it will be sonay pay suhaga .........
tutorial for : how to code for intial lots (condition 1) and for adds (condition 2) and how to book profit on a fixed price (one lot at profit of 50 points ) and at last book finally all lots (if condition 3 meets ).
if u r not free or busy , can u plz give me a link of another afl example where all this condition's r there ? will see it and modify according to my needs .............
one of the things I use to detect trend mode / failure of trend mode is vwap zones, explained in full detail in this thread http://www.traderji.com/advanced-trading-strategies/89870-combining-trend-vwap-ranges.html

if u find some ideas from there to integrate into your system then good :)
 
Hi guys,

I want to see previous 3 candles high and low. want to display everytime on my chart.

Can anyone suggest how to change this code.

GfxTextOut("1.Open - "+O+" High - "+H+" Low - "+L+" Close - "+C, Hor+400, Ver+10 );
GfxTextOut("2.Open - "+O+" High - "+H+" Low - "+L+" Close - "+C, Hor+400, Ver+30 );
GfxTextOut("3.Open - "+O+" High - "+H+" Low - "+L+" Close - "+C, Hor+400, Ver+50 )

Im getting 1= current candle. right.

2= i need previous candle. 3 next previous. like..

Need to add horizental lines for previous candles.. based on High and low.

plz any one help me.

thanks in advance.
 

pratapvb

Well-Known Member
Hi guys,

I want to see previous 3 candles high and low. want to display everytime on my chart.

Can anyone suggest how to change this code.

GfxTextOut("1.Open - "+O+" High - "+H+" Low - "+L+" Close - "+C, Hor+400, Ver+10 );
GfxTextOut("2.Open - "+O+" High - "+H+" Low - "+L+" Close - "+C, Hor+400, Ver+30 );
GfxTextOut("3.Open - "+O+" High - "+H+" Low - "+L+" Close - "+C, Hor+400, Ver+50 )

Im getting 1= current candle. right.

2= i need previous candle. 3 next previous. like..

Need to add horizental lines for previous candles.. based on High and low.

plz any one help me.

thanks in advance.
GfxTextOut("1.Open - "+O+" High - "+H+" Low - "+L+" Close - "+C, Hor+400, Ver+10 );
GfxTextOut("2.Open - "+ref(O,-1)+" High - "+ref(H,-1)+" Low - "+ref(L,-1)+" Close - "+ref(C,-1), Hor+400, Ver+30 );
GfxTextOut("3.Open - "+ref(O,-2)+" High - "+ref(H,-2)+" Low - "+ref(L,-2)+" Close - "+ref(C,-2), Hor+400, Ver+50 );


you could plot the same using stylestaircase in style param of plot
 
GfxTextOut("1.Open - "+O+" High - "+H+" Low - "+L+" Close - "+C, Hor+400, Ver+10 );
GfxTextOut("2.Open - "+ref(O,-1)+" High - "+ref(H,-1)+" Low - "+ref(L,-1)+" Close - "+ref(C,-1), Hor+400, Ver+30 );
GfxTextOut("3.Open - "+ref(O,-2)+" High - "+ref(H,-2)+" Low - "+ref(L,-2)+" Close - "+ref(C,-2), Hor+400, Ver+50 );


you could plot the same using stylestaircase in style param of plot
many many many thanks boss.

its working good.

can any one help to how to show horizental lines of previous candle high and low.. only 1 previous candle.
 

pratapvb

Well-Known Member
many many many thanks boss.

its working good.

can any one help to how to show horizental lines of previous candle high and low.. only 1 previous candle.
Plot(ref(h,-1), "", colorred, stylestaircase);

Similarly for lows L
 

Similar threads