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)
Versionshinweise: 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.
Versionshinweise: Tradingview filters out many Renko Bars. This strategy doesn't work in a real setting. DO NOT USE
Von Favorisierten Skripten entfernen Add to favorite indicators


is there any possibility to convert this code to MT4?
+7 Antworten
This script doesn't work in forward tests. DO NOT USE!
+7 Antworten
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 Antworten
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender So funktioniert es! Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Veröffentlichte Ideen Followers Ich folge Private Nachrichten Chat Abmelden