Hi Hannes, Steve,
Sorry for interrupting here.
Was thinking of testing out this idea myself before posting, but probably Hannes can also test it out and give an opinion after reading my output.
This idea should probably be implemented with the pure/original concept of the EA without any indicators or MA. My thoughts are perhaps it could be possible to monitor the success rate of the trades and reverse the logic of the EA when the profitability becomes negative.
Implementation could be like this:
Parameters:
1.Backlog , N : 5
2.Pips Threshold, T: 20
EA will keep track of the pips loss/won of the last N trades. Lets say N =5 .
When the average pips loss of the last 5 trades goes beyond the threshold, the EA switches logic, taking sells when it should take buys and taking buys when it should take sells.
For example, Results of last 5 trades: -20, 5, -40, -50, -30.
Average is less than threshold of -20, so logic reverses.
The EA will keep switching logic as the profitability of the trades changes.
This works on the assumption that the market gradually switches between conditions that are favorable and unfavorable for the EA.
As such the EA "adapts" by switching logic when it is necessary.
My opinion is that this should work best with the purest and original concept of the EA, but have yet to validate this.
Will be starting a demo to check if this could work, perhaps Hannes can also give an opinion since he has probably been testing this out longer than me.
This would only work well if the EA has sustained bursts of wins and losses.
There may be a need to separate out the logic reversal for buys and sells, but we will know after testing.
Steve, this is not a request for this feature yet (unless you love to code it for us now), just bringing it out for discussion with Hannes.
Cheers,
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8