hi,
I used the strategy wizard to create a very simple strategy using the Renko3.lua indicator found at viewtopic.php?f=17&t=2360.
The strategy lua file is attached. However when I attempt to backtest the strategy two things happen
1. If I give a large window of say 2 months to backtest I get the error - Index out of range
2. If I change the back testing time window to a couple days - Marketscope gets stuck at the "Preparing for Backtesting" stage and after a few minutes gives a request time out error.
Can you please point out what is wrong in this code? Specifically
1. What do we need to do so that we can backtest over a large time period
2. What changes need to be made to the attached .lua file
The strategy is
1. If Renko(0) > Renko(1) and Renko(2)> Renko(1) - then close SELL open BUY
2. If Renko(0) > Renko(1) and Renko(2)> Renko(1) - then close BUY open SELL
Here Renko(0) = current price, Renko(1) = price one brick previous, Renko(2) = price 2 bricks previous.