Dear Graham,

Thank you for your reply,

I have tried the code with scan function, I didn't know if this right 
or not but the result seems to be wrong.

This is what I have used:

Buy=Cross(MACD(),Signal());
Sell=Cross(Signal(), MACD());
Search = BarsSince(Buy)<=5 AND BarsSince(Buy)<BarsSince(Sell);

Please advice.

With the best regards.


Reply via email to