I created an On Init Template for Damage Control
-
https://fxdreema.com/shared/8B1uo9qzc
Check it out. Just some ideas I had.
The constants are missing, but it wouldn't be too hard to replace those and rename them and target them as you'd like.
*Turn on Trailing Stop Loss, or off if you want the default Stop Loss made with each order to be 0.
*Turn on Close after X Consecutive Losses to prevent your account tanking and potentially violating an evaluation or challenge. I like to think that this would allow you to save stress if the markets change and give you time to Re-Optimize the settings before restarting it.
*Turn on Time out timer to re-enable the EA after a set amount of minutes after Consecutive Losses disables it. (just in case that's something you want)
*Turn on Close on Profit Target if you're leaving it on overnight and don't want to lose anything before you wake up.I had to trouble shoot for a few hours to get my EA to work and it was buggin the Buy and Sell blocks, so I think I fixed it and if you see an error or a better option, PLEASE feel free to post them on this thread.
Thanks, and hope this helps.
P.S. What other On Init ideas could I put in this for utility purposes?
It would be cool to put a pip to currency amount calculator inside the parameters settings. Is that possible?
EDIT: Plz remove the pass once blocks if you want to change the setting after the EA has started. I left the pass once blocks going to email block, though.
-
@nicholas86 All those 'counter (pass once)' blocks are unnecessary. Blockc on the 'on init' tab are executed just once, so they are redundant. On the 'pip to currency calculator', not sure what you exactly mean. That depends on the lot size applied and this means it should be positioned on the 'on tick' tab instead because that information need to be updated on the tick.
-
@l-andorrà you're right, the pass once blocks actually hindered it if I wanted to change it after it started.