Justin Govender:
hi,
can someone please help me with this:
I'm trying to get the correct account balance at the start of the month (1st),
the code so far does give me the correct balance when the month changes to a new month,
but the problem is when the EA is loaded the start balance of the month is reflected as the current balance at the time of load/reload
account balance is a real time thing, it is not recorded as a time series, so whenever you request the balance it is of the moment you requested it.
Justin Govender:
if (dealTime >= startOfMonth) continue;
if (dealTime >= startOfMonth) continue;
if (dealTime >= startOfMonth) continue;
just a suggestion, assuming that your idea worked, wouldnt this be "dealTime <= startOfMonth ??

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi,
can someone please help me with this:
I'm trying to get the correct account balance at the start of the month (1st),
the code so far does give me the correct balance when the month changes to a new month,
but the problem is when the EA is loaded the start balance of the month is reflected as the current balance at the time of load/reload