NexusFi: Find Your Edge


Home Menu

 





Tip for backtesting on Renko charts


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one cpi65 with 10 posts (0 thanks)
    2. looks_two Zoethecus with 7 posts (1 thanks)
    3. looks_3 gregid with 6 posts (11 thanks)
    4. looks_4 aslan with 6 posts (9 thanks)
      Best Posters
    1. looks_one traderlange with 7 thanks per post
    2. looks_two Seberbach with 2.3 thanks per post
    3. looks_3 gregid with 1.8 thanks per post
    4. looks_4 aslan with 1.5 thanks per post
    1. trending_up 35,141 views
    2. thumb_up 43 thanks given
    3. group 18 followers
    1. forum 44 posts
    2. attach_file 2 attachments




 
Search this Thread

Tip for backtesting on Renko charts

  #11 (permalink)
 cpi65 
UK
 
Experience: None
Platform: -
Posts: 154 since Aug 2010
Thanks Given: 12
Thanks Received: 75

Yo!

I asked a question but Big Mike closed it and told me to ask it here, so here goes:

Before we start, a few things I'd like to point out:

- I know how renko bars are formed, I am not an idiot. Please don't just say that they can't be used in real time, because they can under most market conditions.

- I will not execute any strategy that evolves in NinjaTrader, so any Limit/Market order problems in the NinjaTrader backtesting language are not applicable. I have slippage under wraps too.

- As I mentiond in the original question, I will be (or at least try to) using tick (trade, Bid X Ask) data for a significant period (say 1yr backtest, 5yr out of sample). In all liklihood I will be doing this in Matlab. Any stategy that does evolve will work from Matlab througbh to TT (after I have trded it live for a while for sanity).

So, the question is "has anybody tried this?".

CPI

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
 
  #12 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009

I have not tried it.

What language are you using for this strat?

Reply With Quote
  #13 (permalink)
 cpi65 
UK
 
Experience: None
Platform: -
Posts: 154 since Aug 2010
Thanks Given: 12
Thanks Received: 75


Sorry Dude I don't understand - "what language"

??

Reply With Quote
  #14 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009

Programming. Code.

Reply With Quote
  #15 (permalink)
 cpi65 
UK
 
Experience: None
Platform: -
Posts: 154 since Aug 2010
Thanks Given: 12
Thanks Received: 75

Then it'll all be in Matlab I guess (that should be fun eh!)...

Oh wait, you mean like C#, Jave etc?

I'll probably get someone else to do all the TT / Matlab integration stuff. I'm not a programmer, see. I just want the data in renko so I can do all my trader-stuff before handing it over to the boffins!

Reply With Quote
  #16 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009


cpi65 View Post
Then it'll all be in Matlab I guess (that should be fun eh!)...


So, TT is the datafeed. What is the platform? Which ones support Matlab?

Reply With Quote
  #17 (permalink)
 cpi65 
UK
 
Experience: None
Platform: -
Posts: 154 since Aug 2010
Thanks Given: 12
Thanks Received: 75


Zoethecus View Post
You planning on doing this yourself or hiring a consultant?

So, TT is the datafeed. What is the platform? Which ones support Matlab?

The basics I will do myself, because it is just a case of getting the data into matlab (I say that now, I have only really used matlab for econometrics etc so far, so I expect it to be a bit of a challenge).

Initially I will be using tick data so that won't come from TT, probably tickdataplus or somewhere. Then if I get somewhere I will get someone (mates of mine) to build up some simple program that uses TT data from Excel (i.e TT -> Excel (via RTD) -> Matlab based application -> My mince pies -> back into TT)

Then if we are still GOGOGO it'll go tt -> matlab -> Autotrader via COM (I think, I'm not a computer boff).

The computer bits of it I am not worried about, I've seen it done loads - its the strategy thats the important bit!!

Platform is X_Trader Pro

Reply With Quote
  #18 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009

Is the strategy depended on Renko for success, or are you going to test other data series?

Reply With Quote
  #19 (permalink)
 Seberbach 
Midland, Michigan USA
 
Experience: Advanced
Platform: TradeStation, Biocomp
Trading: TF
Posts: 21 since Aug 2010
Thanks Given: 71
Thanks Received: 22

I have coded strategies for Renko Bars in Easy language, but the bottom line is that what you have to code, tick by tick, is a series of "bars" which extend up to one brick-size above and below the bricks shown on your chart, so they really are not "Renko" bricks which are to be intercepted by your "set target" and "set stops" but TICKS! You can plot the renko bricks, but where the price actually moves can be in the open spaced above and below the "open" and "close" (until triggering a new brick by exceeding or touching as well one level past the "high" or "low" of the prior bricks. Since a backtester built using "reserved words" gets wrong information given said highs and lows, it cannot "see" those phantom non-defined price moves above and below the plotted "bricks", and it will give outrageously wrong estimates of your actual real time trades. It is more a matter of the stop orders (stop loss) and target orders (limit) which will execute outside of the bricks in real time that make your actual coding have little to do with those simplified visual "bricks" on the chart.

So, my little programming adventure with Renko ran way overtime, and was really a tick based strategy which happened to use renko construction retrace and continuation "rules" to give trading bar close setups only, and tick by tick monitoring between those new setups for the stop and target hits, and the cancelling or resetting of the stop and limit orders whenever each new brick closed out and the new brick started forming. That "forming" could finish, or close, one size above the prior high, or one size below the prior low before it completed, and was ambiguous the entire time in between. The chart may look like Renko, but reality will not look like Renko. And the profit will not look like renko profit ...at least it was a big disappointment for me in the end, but not a total waste of time, either. Since I do not know the programming of Ninja Trader, I do not know how it handles "look inside bars". I do know that EasyLanguage does NOT do it at all, let alone properly with Renko charts, Point and figure charts, and line break charts and TradeStation says it (back testing properly) is not supported for those chart types..

So to sum it up, if your renko strategy is working properly in the back test, your hypothetical executions, if they involve stops or targets, can occur, as they would in real time, anywhere in a three brick range before you see one little completed setup brick appear on the chart.

Reply With Quote
Thanked by:
  #20 (permalink)
 cpi65 
UK
 
Experience: None
Platform: -
Posts: 154 since Aug 2010
Thanks Given: 12
Thanks Received: 75



Zoethecus View Post
Is the strategy depended on Renko for success, or are you going to test other data series?

Yeah, I need the renko data.

Reply With Quote




Last Updated on March 8, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts