How to define to have just one trade per session? (session is from 18:00 - 17:00 next day)
With "EntriesToday" and "day day[1]" it doesn't work, because it's a overnight session, right?
I can compile the code but it doesn't generate any signal.
Input: MyStartTrade(1805), MyEndTrade(1700);
Variable: EntriesLong(0), EntriesShort(0);
if Time = 1800 then begin
EntriesLong = 0;
EntriesShort = 0;
end;
If Time > MyStartTrade And time MyStartTrade And time