Suppress new signal throughout condition

Capture
My goal is to create new conditions after buy signal.
As long as the new conditions continue, i dont want new trades..

thanks from now your help.

MA1 = MA(C,5);
MA2 = MA(C,25);

LongSig = Cross(MA1,MA2)
ShortSig= Cross(MA2,MA1);

Buy  = LongSig ;
short = ShortSig;
y=ValueWhen (Buy,C) ;

upline=y*1.002;
dline=y*0.998;


newcond1=if(buy && C > x && C < upline)  // buy must continue 
newcond2=if(buy && C < x && C > dline)  //  buy must continue 

Sorry i made mistake code....
This is the correct one

MA1 = MA(C,5);
MA2 = MA(C,25);

LongSig = Cross(MA1,MA2)
ShortSig= Cross(MA2,MA1);

Buy  = LongSig ;
short = ShortSig;
y=ValueWhen (Buy,C) ;

upline=y*1.002;
dline=y*0.998;


**newcond1=if(buy && C > y && C < upline)  // buy must continue **
**newcond2=if(buy && C < y && C > dline)  //  buy must continue** 

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.