Affichage des articles dont le libellé est Scan in 5Min Code. Afficher tous les articles
Affichage des articles dont le libellé est Scan in 5Min Code. Afficher tous les articles

dimanche 13 novembre 2016

Scan in 5Min Code

Hi all,

I'm trying to scan RSI cross 50 level in 5 Min time frame. I wrote the following code but it seems not working. there is no result when i scan.

Any assistance will be highly appreciated.

Thanks in advance

Code:


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 ));



Scan in 5Min Code