Quote:
|
Originally Posted by omelette
PHP Code:
if (TimeDay(Time[0]) > TimeDay(OldTime) + 1 || TimeDay(OldTime) - TimeDay(Time[0]) > 2) {
OldTime = OldTime + 86400;
OldEquity = AccountEquity(); }
if (TimeDay(Time[0]) == TimeDay(OldTime) + 1 || TimeDay(OldTime) - TimeDay(Time[0]) > 2)
if (AccountEquity() > OldEquity)
return;
Hi. I think something along these lines is what you're looking for (haven't tried it though...). Variable 'OldTime' is of type Global, datetime. 'OldEquity' is type Global, double.
|
thanks for your script but will this stop all the trades for the rest of the day...?