You are looking only to the open trades
You have also take a look to the trades today closed
EA Profits 1.0.mq4 (22.6 Kb) View
This indicator is like iExposure and I published it in Code Base
it can show the profits of several EA's for a CHOSEN PERIOD
You can find it at Profits your EA(s) have made on your account
You are looking only to the open trades
You have also take a look to the trades today closed
EA Profits 1.0.mq4 (22.6 Kb) View
This indicator is like iExposure and I published it in Code Base
it can show the profits of several EA's for a CHOSEN PERIOD
You can find it at Profits your EA(s) have made on your account
You are looking only to the open trades
You have also take a look to the trades today closed
EA Profits 1.0.mq4 (22.6 Kb) View
This indicator is like iExposure and I published it in Code Base
it can show the profits of several EA's for a CHOSEN PERIOD
You can find it at Profits your EA(s) have made on your account
deVries,
YOU DID IT! I found the problem thanks to your code!
I added these lines:
string strCurrentDate=StringConcatenate(TimeYear(Time[0]),".",TimeMonth(Time[0]),".",TimeDay(Time[0])); datetime dtCurrentDate=StrToTime(strCurrentDate);
Replaced these lines:
if (TimeYear(OrderOpenTime())!=TimeYear(Time[0]) && TimeDay(OrderOpenTime())!=TimeDay(Time[0]) && TimeMonth(OrderOpenTime())!=TimeMonth(Time[0]))continue; //not todays profit.
With this line:
if (OrderOpenTime()<dtCurrentDate) continue;
And it WORKS!
Thanks!!!!!
deVries,
YOU DID IT! I found the problem thanks to your code!
I added these lines:
Replaced these lines:
With this line:
And it WORKS!
Thanks!!!!!
Great, you found your solution, but do you realize now why your removed
if (TimeYear(OrderOpenTime())!=TimeYear(Time[0]) && TimeDay(OrderOpenTime())!=TimeDay(Time[0]) && TimeMonth(OrderOpenTime())!=TimeMonth(Time[0]))continue; //not todays profit.
line did fail ?? and you did get a profit even though you didn't opened or closed any orders yet on the new day. ???

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
If anyone can help, I'd appreciate it.