Renko Strategy created using Strategy Wizard does not work

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Renko Strategy created using Strategy Wizard does not work

Postby satejchaudhary » Wed Dec 19, 2012 8:59 pm

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.
Attachments
Renko Strategy.lua
Renko Strategy
(24.89 KiB) Downloaded 481 times
satejchaudhary
 
Posts: 11
Joined: Fri Jul 13, 2012 12:29 pm

Re: Renko Strategy created using Strategy Wizard does not work

Postby Apprentice » Thu Dec 20, 2012 3:31 am

Your request is added to the development list.
This is expected.
Renko indicator do not give classic Data output.
As such, is not recognized by strategy.
Hardcoding is required.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36478
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Renko Strategy created using Strategy Wizard does not work

Postby satejchaudhary » Thu Dec 20, 2012 3:56 pm

Thanks for pointing that out Apprentice.

Just to speed things up, can you share in the ExtUpdate function, how do I access the current brick values in the Renko indicator stream? I can attempt to build the strategy myself then.


Thanks
Satej
satejchaudhary
 
Posts: 11
Joined: Fri Jul 13, 2012 12:29 pm

Re: Renko Strategy created using Strategy Wizard does not wo

Postby moomoofx » Sun Jun 01, 2014 4:09 am

I created this strategy for you here: viewtopic.php?f=31&t=60750

Cheers,
MooMooFX
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 19 guests