For instance, if (CrossAbove(EMA(5),EMA(8),1)
{
EnterLong();
}
How do I implement such a strategy on say a 5-minute chart or 10 minute chart without having multiple entries as price breathes back and forth, tick by tick?
How do I get it to execute only once?
I don't want to use IsFirstTickOfBar either, cos I don't want to wait for a new bar to print before entry. I want it to strictly follow the indicators and enter only once, the first time it is true.
Thanks.
Comment