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
And what happens if MT4 should be shut down after the first partial scale, or the second parital scale? You're tracking scale levels with variables set at the time you perform the close operation. This information gets lost if the terminal should happen to close This may work nicely in Strategy Tester but fails to address real trading issues such as a reboot or MT4 crash. On a casual glance of the code, it looks like if you close your 1st partial target, are forced to re-load the EA, it will then scale level 1 again if price warrants it. Same can be said for scale level 2.
And what happens if MT4 should be shut down after the first partial scale, or the second parital scale? You're tracking scale levels with variables set at the time you perform the close operation. This information gets lost if the terminal should happen to close
Exactly, EA's must be coded to recover from terminal shutdown, Windoze crash, power failures, etc.
Option 1) Persistent storage
Option 2) Multiple orders with different TPs