Skip to main content

Rising & falling 3 days continuously for Amibroker (AFL)

nvk.investment over 15 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    trading system, amibroker

Insert Formula into AA and click Scan. All scrips giving Buy indication are those rising for 3 days continuously and all Sell indications are those scrips which have been falling for 3 days continuously Received from a friend

Indicator / Formula

Copy & Paste Friendly
cond1=Ref(C,-1)>Ref(C,-2);
Cond2=Ref(C,-1)<Ref(C,-2);
 
Buy=C>Ref(C,-1) AND Cond1;
Sell=C<Ref(C,-1) AND Cond2;

3 comments

over 15 years ago

Thanks I was looking for this. Can be used for 15 min as well as hourly continuous falling and rising candles

over 13 years ago

As Name suggested I have made it for three day with graph.

SetChartOptions(0,chartShowArrows|chartShowDates);
Title =  Name() + "\n" + Date() + ", Op=" + Open + ", Hi=" + High + ", Lo=" + Low + ", LTP=" + Close +  "\n© Johnnypareek@yahoo.com" ;
Plot( C, "Close", colorBlack , styleNoTitle | styleCandle | GetPriceStyle() );



cond1=Ref(C,-1)>Ref(C,-2) AND Ref(C,-2)>Ref(C,-3);
Cond2=Ref(C,-1)<Ref(C,-2) AND Ref(C,-2)<Ref(C,-3);

 
Buy=C>Ref(C,-1) AND Cond1;
Sell=C<Ref(C,-1) AND Cond2;
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,L,Offset=-10);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,Offset=-10);

Leave Comment

Please login here to leave a comment.