@miro1360 problem solved thanks again.
This is my final version, I'm leaving here for posterity and record keeping
https://fxdreema.com/shared/dWdtampfe
@miro1360 problem solved thanks again.
This is my final version, I'm leaving here for posterity and record keeping
https://fxdreema.com/shared/dWdtampfe
Nice suggestion...
How do you evaluate a winning strategy?
A recent method I discovered, is to check your win/loss percentage [not profit/loss amounts] for a given number of trades (I choose 20), now, if its above 50%, you have an edge, so there is no need to 'improve' the strategy. If the strategy still incurs a loss (in money) then your money management needs to be changed to tip the balance (without changing the strategy).
So rather than improve a winning system, an EA developer can simply calculate the systems edge on a per 20 trades( or any preferred number) basis, and once the results fall below 50% the EA stops and sends the owner an alert. Then you can consider improving or reconfiguring your EA.
My two cents 
@ambrogio here it is, Donchian Channel.mq5
You can also find it in the customs indicator part in your own mt5 terminal.

Yes, I've used a value of 1 and even 2, nothing shows up in the tester. I'm confused.
Please if you have MT5 can you try and replicate?
Hello all,
I hope someone can help me here, I've tried to use the inbuilt custom mt5 version of the Donchian channel, but there is no output at all. Followed all the instructions for loading custom indicators; i.e got indicator path from "data folder" made sure the name is consistent.
Here is the a tracer EA which shows no output.
https://fxdreema.com/shared/pQxtDTuEc
Can anyone help resolve this? Thank you.
Thanks for your efforts
changing that has no effect whatsoever, if you do have the time, try and implement it yourself so you see exactly what I am talking about.
Still no update on this ? @fxdreema
Thanks a lot but if you test it you'd see that it does not work as expected.
See the code on the right for the expected behaviour (the problem being it does not work for multiple running trades
Hello
I wish to close a trade partially every x pips in loss in mt5,
Example:
BUY Lot = 1,
@ -10 pips, close 10% (0.1); lot = 0.9
@ -20 pips, close 10% (0.09; lot = 0.81
@ -30 pips, close 10% (0.081); lot = 0.31 etc
using the examples template in MT5 doesn't work as expected
@jesse22 Use the [Check Consecutive Losses] block, then follow it with the [Turn OFF blocks] and [Turn ON blocks] to turn on and off the condition blocks you want.
Put this above your pending order blocks, see if it works
or use the [counter] and [counter reset] blocks...