
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
Hello, I am trying to implement the main prop firm rules within my EA:
- stop trading when 8% profit reached
- stop trading when 10% loss reached
- stop trading for the day when 5% drop from the equity at the opening of the day.
I have the following code to save the equity at the opening of the day, this is within at timer which run every 30 seconds. I also have the following conditions to determine if the equity meet certain criteria:
AccountSize, MaxDD, target and MaxDailyDD are input and set in percentage, except for AccountSize.
Then in the OnTick I have the following conditions to open trades:
However it is working most of the time but sometimes the profit goes a few % above the wanted target. Anyone has an idea of why.
Also, is it valid to collect the daily open equity that way? It seems a bit too simple that way.
Thanks!