I'd like my strategy makes only one trade per day. I read this:
but I use 5M timeframe instead of 1D. I thought about something like this:
int m=Minute{60;}
int midnight=ToTime(Time[0])-(ToTime(Time[0]%ToDay(Time[0])*m));
int start_of_day=midnight+ToTime(Time[0]=80000);
if {oop>=start_of_day && (Performance.AllTrades.Count>0)return;}
but I don't have idea about oop=Order Open Time. I know there is IExecution and IOrder.
thank you

Comment