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)
Release Notes: 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.
Release Notes: Tradingview filters out many Renko Bars. This strategy doesn't work in a real setting. DO NOT USE
Remove from Favorite Scripts Add to Favorite Scripts
This script doesn't work in forward tests. DO NOT USE!
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Get Help Ideas Published Followers Following Private Messages Chat Sign Out