2 periods explorer for Amibroker (AFL)
ishlakh over 14 years ago Amibroker (AFL)
Simple 2 periods explorer for shorterm trading
Indicator / Formula
Copy & Paste Friendly
//2 periods RSI and cummulative 2 periods RSI
RSI2min = Param("RSI2min",4.4,2,5,0.2);
RSI2max = Param("RSI2max",97.2,96,100,0.2);
RSI0 = RSI(2) ;
RSI1 = Ref(RSI(2),-1) ;
RSI2 = Ref(RSI(2),-2) ;
RSI3 = Ref(RSI(2),-3) ;
RSIsum = (RSI0 + RSI1 + RSI2)/3 ;
Vrx =( V / MA(V,20));
Plot(RSI0,"RSI(2)",colorRed);
Plot(RSIsum,"RSIcum",colorBrightGreen);
Filter1 = RSI(2) < 10 AND RSIsum < 10 AND V >= 50 ;
Filter2 = Ref(RSI(2),-1) < 10 AND Ref(RSIsum,-1) < 10 AND V >= 50 ;
Filter = Filter1 OR Filter2;
SetSortColumns( 6,7 );
AddColumn(C,"Last",1.0);
AddColumn(ROC(C,1),"ROC",1.2, IIf(ROC(C,1)<0,colorRed,colorGreen));
AddColumn(Ref(RSI(2),-1),"RSI(2)-1",1.2);
AddColumn(RSI(2),"RSI(2)",1.2,IIf(RSI(2)>90,colorRed,colorGreen));
AddColumn(RSIsum,"RSI(sum)",1.2);
AddColumn(VrX,"Vrx",1.2);
AddColumn(Ref(V,-1),"Ref(V,-1)",1.0);
AddColumn(V,"Volume",1.0); 0 comments
Leave Comment
Please login here to leave a comment.