Hi,
I would like to scan for RSI(15) Cross 50 Level. inHourly timeframe.
I wrote the following code but it seems not working. there is no result when i scan.
TimeFrameSet(in5Minute); Periods=Param("Periods",15,1,200,1); Levelup= 70; LevelMid= 50; Leveldown=30; R= RSI(Periods); TimeFrameRestore(); Periods1=TimeFrameExpand( Periods, in5Minute,expandLast ); Levelup1=TimeFrameExpand( Levelup, in5Minute,expandLast ); LevelMid1=TimeFrameExpand( LevelMid, in5Minute,expandLast ); Leveldown1=TimeFrameExpand( Leveldown, in5Minute,expandLast ); R1=TimeFrameExpand( R, in5Minute,expandLast ); RSICross = Cross(R1,LevelMid1); //------------------------------------- // END RSI CROSS 50 LEVEL //------------------------------------- TimeFrameRestore(); Filter= RSICross; AddTextColumn( FullName(), "Full name", 77 , colorDefault); AddColumn( High, "High", 1.2 ); AddColumn( Open, "Open", 1.2 ); AddColumn( Close, "Close", 1.2 ); AddColumn( Low, "Low", 1.2 ); AddColumn( RSICross, "RSI Cross", 1, colorDefault, IIf( RSICross, coloryellow, colorDefault ));
Any assistance will be highly appreciated.
Thanks in advance