İş tamamlandı
Şartname
Hi,
I use an 'include' file to manage trades, stop-losses and various other functions to manage the trading of my EA. I have recently experienced that some of my EAs, which otherwise produce solid returns - turn nasty for periods ranging from 5-40 periods, consecutively open trades and run into stop-losses. I want to prevent my EAs to trade for a defined period (should be variable) based on the following conditions: if over the last 20 bars (the number of bars should be smth, which can be set within the actual EA) if it did one or two loss-making trades in the same direction (Again, the number of permitted loss-making breaks). So it is meant to be function as a time-out for my EAs if it clearly does not produce valid signals! So to summarize the function
IF last X trades were loss-making in the last X bars, do not trade for X bars
Attached you will find the 'include' file I use and a random simple EA - I choose one which produces a substantial number of consecutive losses. Of course, I want to be able to amend any settings within the EA itself. Please feel free to write if you need any further information.
Cheers,
Philipp