backtesting 3 line break charts

Is it possible to backtest specific moving averages crossovers on 3 line break charts?[tex][/tex]
Update Backtest

Everything is possible. Somewhere here I saw Renko script, 3LB is somewhat similar.

Could someone help me write this script?

You can try yourself, it's relatively simple. Found a code on MQL, so you need:
1) a window back 3 bars,
2) Lowest low and highest high of these 3 bars,
3) simple if decision.

OLDSwing = Swing;

VALUE1 = High[Highest(NULL, 0, MODE_HIGH, 3, shift+1)];
VALUE2 = Low[Lowest(NULL, 0, MODE_LOW, 3, shift+1)];

if (OLDSwing == 1 && Low[shift] < VALUE2)
Swing = -1;
if (OLDSwing == -1 && High[shift] > VALUE1)
Swing = 1;

if (Swing == 1)
//up 3LB bar

I have no idea what to do with that code.
Are there people here who can help me build a backtester. I am willing to pay

First, custom data feed (3LB chart in this example) into moving averages needs to be resolved.

Well, seems window method I've mentioned is also complicated, so while playing with how to do that, made this naive experiment. Don't think it works properly as didn't checked any outputs. No one said it's easy, haha.

My offer to pay for a working code that can backtest 2 exponential MA crossovers on 3 line break chart still stands

Update Backtest


The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


This discussion is closed