afl progamming my new strategy

#3
hank you mr.sushilgirdher

let i explain.

1.after first candle completion mark low and high.for example (low 305 high 308)
2.then second candle should be completed between first candle low and high.should not go beyond this. for example (low 306 high 307)
3.now on third candle.we want to generate buy singal when second canlde high break and keep stoploss as second candle low.
for example:buy above 307 sl 306
sell signal when second candle low breaks and keep stoploss as second candle high.
for example:sell below 306 sl 307.

this stragety is good. after complete this afl. post me.after checking i give another one idea to make this stragety more accuracy.

thank you bro.
 

Ajax

Well-Known Member
#4
X = Ref(H,-1) < Ref(H,-2) AND Ref(L,-1) > Ref(L,-2);

Buy = H>Ref(H,-2) AND X ;
Short = L<Ref(L,-2) AND X ;

Filter = Buy OR Short;

AddColumn(IIf(Buy,H,L) ,"Trade",1,colorBlack,IIf(Buy,colorBrightGreen, colorPINK));//



TRY THIS ON DAILY / HOURLY TIME FRAME
 
#6
It is little change from above AFL. Pls check below


X = Ref(H,-1) < Ref(H,-2) AND Ref(L,-1) > Ref(L,-2);

Buy = C>Ref(H,-1) AND X ;
Short = C<Ref(L,-1) AND X ;

Filter = Buy OR Short;

AddColumn(IIf(Buy,H,L) ,"Trade",1,colorBlack,IIf(Buy,colorBrightGreen, colorPINK));//
 
#8
It is an exploration formula...So u need to explore using the analysis window..It would show u the buy signal if any
If u need to display it on chart, Add this line to the formula
PlotShapes(IIf(Buy , shapeSmallUpTriangle, shapeNone) ,colorBlue, 0,L,-30);
Then drag and drop it on the price chart
 

Similar threads