Tip for backtesting on Renko charts - NinjaTrader Programming | futures io social day trading
futures io futures trading


Tip for backtesting on Renko charts
Updated: Views / Replies:17,158 / 42
Created: by gregid Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

Tip for backtesting on Renko charts

  #41 (permalink)
Elite Member
NY NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp/CQG
Favorite Futures: Futures - CL/GC/YM
 
Posts: 42 since Aug 2011
Thanks: 31 given, 206 received

Market Replay

I use Renko bars religiously in all my strategies, and here is what I've found works for me after many many horrid automated trading experiences. Account killers and 10's of thousands of dollars of losses. But Keep reading, I do this for a living now.....

1. Write your strat - (I like the idea of limits orders mentioned above)

2. Back-test. (2 or 3) tick slippage so you don't get too excited.

3. Genetic Optimization

now here is where it really gets important -----

4. Learn how to properly do walk forward optimization. I cannot stress this enough. And not just once - learn your strategies' ratio of Optimization Period and Test Period. Especially with a strat involving a lot of parameters. And limit dynamic params as much as possible. Know what your indicators are doing as only optimize the absolutely necessary prams. This is the only chance you'll get an out of sample test without a live market.

5. If you are still happy - you MUST do Monte Carlo simulations. This is the most under utilized tool and prob the most important thing NT has for testing. You WANT your strategies to run in noisy unexpected markets and fail. Read everything you can about how this works behind the scenes so you do it properly. And ALWAYS remove at least 5-10% of your best and worse trades. If that probability curve if out of whack, go back to the drawing board.

6. If things still check out - download a couple years of market replay and let er rip all night. This is the closest thing you'll get to building the bars likea live feed does (it's not, but close).

7. Then test in realtime - as this is really the only way to make sure your logic is solid (other than with actual $$)

8. repeat #4-5 every Sunday in volatile markets if you have too. Especially if you're trading craziness like the GC.

Look, I may be completely wrong..lol. But the workflow above works for me financially (after losing for eh, 8 years now, I'm finally in the black). Again, 4 and 5 - are an absolute must.

Also, if you're new at this, learn that your risk management & exit strategy code is more important that your entry signal. And don't always use trails --- think bigger. Especially with Renkos. The options are endless, Depending on market conditions i utilize 6 exit strats (beyond a set tick or $$ profit take)

1. EMA Trail
2. https://futures.io/download/ninjatrader-7/indicators/1207-download.html?view Fat Tails awesome super trend trail.
3. I have a custom MA that adapts to fake reversals - and exit when the slope changes <- this is my prize winner
4. Fast markets i use the slope change of this beauty anaZeroLagHATEMA again thank you @Fat Tails
5. For longer holds i'll use the trend change of my Adaptive Laguerre filter <- this rocks.
6. and sometimes anaADXVMA. and again @Fat Tails you rock.

(I'm actually almost finished with a chart trader add on that utilizes these seamlessly - i'll post when finished but it's a ton of code and I'm finally testing on the live markets)

Of course, proper entries are important, but if you're not netting a 3+ profit factor, you'll eventually blow your account. I've done it too many times.

There is my 2 cents for the for the eve - time to grab a beer.

Mike

Reply With Quote
The following 7 users say Thank You to traderlange for this post:
 
  #42 (permalink)
Elite Member
houston, tx/usa
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: es
 
Posts: 1 since Mar 2014
Thanks: 2 given, 0 received


gregid View Post
All renko incarnations (NT Renko, MedianRenko, SBSRenko, WickedRenko) are unreliable for backtesting due to few issues. One of these issues is redrawing the "open" of the bar after the bar has formed.

In order to avoid the complications of the redraw:

Tip

Refrain from using Market Orders for backtesting purposes and replace all MARKET orders with LIMIT orders with LimitPrice = Close[0]
(this will simulate standard behaviour of market orders for CalculateOnBarClose = true)



Sample code:

 
Code
                            
//instead of using:

EnterLong("entry1");
//use:
EnterLongLimit(Close[0],"entry1");
 
 
//instead of using:
EnterShort("entry1");
//use:
EnterShortLimit(Close[0],"entry1"); 
Good luck backtesting!

I have found that submitting market orders, via EnterLong() or EnterShort() in backtesting yields a different result than EnterLongLimit(Close[0]),"Buy") on the same backtest. When the exit strategy is to exit on conditions on the Renko chart, these appear to be ignored; and the entry and exit appears on the same Renko bar. Using EnterLong(), however, these enter on the new bar, as highlighted by others in this thread, and the rules appear to be followed.

What is a work-around for this in live testing? Live testing with the EnterLong()- ExitLong() sees eventual order rejections due to market movements within the Renko bar (Buy stops below the market/ sell stops above the market)...How could one then submit market orders on Renko charts in live testing without this occurring? Otherwise, how could one submit limit orders in strategy testing without also exiting on the same entry Renko bar?


Reply With Quote
 
  #43 (permalink)
Elite Member
Wrocław, Poland
 
Futures Experience: Intermediate
Platform: NinjaTrader, Racket
Favorite Futures: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 321 given, 605 received



aaadetos View Post
I have found that submitting market orders, via EnterLong() or EnterShort() in backtesting yields a different result than EnterLongLimit(Close[0]),"Buy") on the same backtest. When the exit strategy is to exit on conditions on the Renko chart, these appear to be ignored; and the entry and exit appears on the same Renko bar. Using EnterLong(), however, these enter on the new bar, as highlighted by others in this thread, and the rules appear to be followed.

What is a work-around for this in live testing? Live testing with the EnterLong()- ExitLong() sees eventual order rejections due to market movements within the Renko bar (Buy stops below the market/ sell stops above the market)...How could one then submit market orders on Renko charts in live testing without this occurring? Otherwise, how could one submit limit orders in strategy testing without also exiting on the same entry Renko bar?


Quite a lot has changed since my original post - there have been many new renko implementations with real open and close - search for Beter Renko on this board.

Reply With Quote
The following user says Thank You to gregid for this post:

Reply



futures io > > > > > Tip for backtesting on Renko charts

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backtesting on Renko Charts diverdan MultiCharts 25 October 29th, 2017 07:12 PM
What is the difference in the regular Renko charts and the Median Renko charts PamH NinjaTrader 17 February 21st, 2012 08:16 PM
Better Renko Charts fballesteros NinjaTrader 2 April 12th, 2011 04:00 PM
Renko Tick Backtesting cpi65 Traders Hideout 8 August 5th, 2010 08:41 PM


All times are GMT -4. The time now is 05:04 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-11 in 0.11 seconds with 20 queries on phoenix via your IP 54.226.132.197