- I want to allocate a % of my available balance to this EA, whether dynamically a % of available funds, or always a given $$ value (disregarding profit/loss), or a fixed initial % of the initial balance on the first run (that is to let the EA evolve in a close loop with its own %fund available),.
- I want this EA to stop running (and auto close open/pending orders) if drawdown reached a given threshold .... or switch Equity mode (% balance allocated) if a great amount of $$ has been cashed (or vice-versa).
For this, I already started re-coding the function AccountBalance(), and AccountFreeMaringCheck() accordingly.
In a first stage, I will code this in this EA directly (to basically validate everything while backtesting) ... and, in a second stage, further develop a one EA rule them all kind of thing. (considering I, like most of you, have multiple ea running at the same time).
In a second stage, I will investigate the MACD=true while trying to add hedging to prevent margin calls during "Deep Trending" .... so hedge in a way it may recoup current losses (seems obvious on live trades, that's what I would do, so simply need to replicate that in software ... ah ah simply) --- indeed, this would not be possible for non hedging brokers where an even more complex hedging correlation would be required ... that would be final step in case everything else if working.
The overall point .... to be able to start trading Live in a safer (as much as possible) way .... I believe in backtesting to appreciate EA behaviors and "tweaking" values according to recent markets, I believe in DemoLive testing (to see how I would react and what info I would you to "correct" something that goes wrong or say to myself ..."no, I can't believe it's doing that") .... but most probably in making Live $$ in my account .... so
Is anyone with me on that one? Anything you know that does this already (or part of it)?