hello
Maybe there is a lot of examples but i could not find..i m newbie
and my aim is wait 12 bars after long and short signal ...like picture
i try to explain on code area
SetTradeDelays(0,0,0,0);
BuyPrice = O;
ShortPrice = C;
MA1 = MA(C,5);
MA2 = MA(C,25);
LongSig = Cross(MA1,MA2)
ShortSig= Cross(MA2,MA1);
LongStop=RSI(7)>70;
ShortStop=RSI(7)<20;
Buy=LongSig;
Short=ShortSig;
iif(Buy AND LongStop); // ...Stop and wait 12 bars
iif(Short AND ShortStop);....// Stop and wait 12 bars
//after 12 bars continue with active signal (Buy or short)
Please search for "Verified" or "Verified Badge" and follow the steps to get Verified. Only Verified users are allowed to post questions.
As a Newbie, please also search and read about "How to use this site" and "How to ask a good Question".
You have done a good job posting your code, so let us know when you are verified, and then one of the many very helpful forum members is likely to give you some pointers.