dngale41

Renko Hacked Backtest

This code is a custom made backtest for a Metatrader 4 EA that is being sold by another person at this link https://www.mql5.com/en/market/product/3... I made this backtest myself to see how the EA would perform. I don't have the author's source code, but by looking at how the EA ran, it was very easy to see how it worked. When using this backtest, keep in mind a few things.

1. You can change the backtest date at the last two lines of this script. This is necessary to do as Tradingview can only simulate a maximum of 3000 orders at a time.
2. After adding this script to a renko chart, change the "pyramidding" setting (in the settings tab) to a really large number, like 100, in order to simulate the EA accurately.
3. In this backtest, when one short order is opened, all long orders are closed. Likewise, one long order is opened, all short orders are closed. No hedging.
4. I'm not very skilled at pinescript. The EA opens a long order at the top of green bars and a short order at the bottom of red bars, but this backtest doesn't do that. Still, I think that setting the slippage to 10 ticks gives an accurate and robust enough backtest. (This is for EURUSD 2 min chart with 2 pip size renko boxes)
Catatan Rilis: In this version, I added the option to change the backtest range. In comment #4, I also gave instructions on how to make the backtest accurate.
Catatan Rilis: Tradingview filters out many Renko Bars. This strategy doesn't work in a real setting. DO NOT USE
Skrip open-source

Sejalan dengan semangat TradingView, penulis skrip ini telah mempublikasikannya secara open-source, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk sang penulis! Anda dapat menggunakannya secara gratis, tetapi penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk dapat menggunakannya didalam sebuah chart.

Inggin menggunakan skrip ini pada chart?

Komentar

is there any possibility to convert this code to MT4?
+8 Jawab
This script doesn't work in forward tests. DO NOT USE!
+8 Jawab
the issue always lies in the quality of data for renko chart, if you have access to tick data, then you can test it out
+1 Jawab
The renko chart history data is highly inaccurate in tradingview....... Does anyone know what service provide 'real' renko chart?
Jawab
The code does not do the same as the graphic.
Jawab