I defined a strategy. I could not understand why all orders are submitted on the day after at opening instead of being submitted on Close of current day.
For example:
- Long order condition is the following
if ((CrossAbove(Close, EMA(aaa(Close, 6).Plot0, 6), 1)) && (Close[0] >= MAX(Close, 5)[0]))
{
int Nb = (int)Math.Round(2.7*MyAccountSize/Close[0]);
entryOrder = EnterLong(Nb, "Long");
}
Thanks in advance for your help

Comment