This strategy looks very interesting (even created an account
), it gives me pretty good results, but I wanted to make minimum bar size and take profit values dynamic instead of fixed, so it would be adaptable to changing market conditions, but I failed miserably.
I've been calculating average size of a bar for x period, excluding bars smaller than 20 pips and set for example minimumBarSize = average * 1.3 or *1.5 and takeProfit = average * 0.2 or * 0.4. It doesn't work properly, fixed values give much better results. Also tried with ATR, didn't work. Gonna figure out something better than this.

I've been calculating average size of a bar for x period, excluding bars smaller than 20 pips and set for example minimumBarSize = average * 1.3 or *1.5 and takeProfit = average * 0.2 or * 0.4. It doesn't work properly, fixed values give much better results. Also tried with ATR, didn't work. Gonna figure out something better than this.