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
I'm not a coder but I hope I'm giving enough info here for one of you MT4 geniuses to answer!
I have a custom EA which was designed according to a set of trading rules and formulas.
When I run it through strategy tester, the trailing stop seems to work properly. But in my demo account it's not working.
The inputs are: TrailStart (which is turned on when the floating P/L of the total account reaches a certain percentage)
And TrailStop, (which is a % of the TrailStart)
Example: TrailStart is set at 1%. Trailstop is set at 10%.
Therefore if TrailStart is set at 1%, and falls down to .9%, the open positions are closed.
I tested the EA on Friday in a 100,000 USD demo account. The profit rose above TrailStart, which was set at .0015 then dropped below the TrailStop, to .00145%
The Floating P.L actually rose above and below the TrailStop several times... and my positions were never closed.
I found these pieces of code in the EA. Can you help me identify what is not working properly? (You'll see a reference to news. part of the EA has a news "hold" which prohibits trading during major announcements. But the news function was turned off).
I can post other parts of the code if this helps.
Thank you!