NexusFi: Find Your Edge


Home Menu

 





Backtesting range bars - problem?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one TimeTrade with 2 posts (1 thanks)
    2. looks_two patbateman with 2 posts (0 thanks)
    3. looks_3 cory with 1 posts (1 thanks)
    4. looks_4 EDGE with 1 posts (0 thanks)
    1. trending_up 4,502 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Backtesting range bars - problem?

  #1 (permalink)
 
patbateman's Avatar
 patbateman 
NY, NY
 
Experience: None
Platform: T4, NinjaTrader
Trading: All!
Posts: 235 since Mar 2012
Thanks Given: 113
Thanks Received: 200

I understand NT Renko bars are un-backtestable, however I was wondering if NT is plagued with the same problem in range bars... thanks for the insight

"A Jedi's strength flows from the force."
-Yoda
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
OrderFlow-Based Support/Resistance Levels
Emini and Emicro Index
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
Funded Trader platforms
21 thanks
Trading with Intuition
17 thanks
ApexTraderFunding.com experience and review
12 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #2 (permalink)
 TimeTrade 
Erfurt Germany
 
Experience: Master
Platform: rtMagic, NinjaTrader
Broker: AMP/CQG, IAB
Trading: ES, 6E, FDAX, FGBL
Posts: 338 since Aug 2011
Thanks Given: 54
Thanks Received: 461


patbateman View Post
I understand NT Renko bars are un-backtestable, however I was wondering if NT is plagued with the same problem in range bars... thanks for the insight

simple "True" Range bars you can use for any backtests !
- NoGap range bars you can not secure use for backtests, while the virtual bars used to fill any gaps have no/wrong volume and never real traded price levels
- test with range bars can give poor results, when the logic is ATR and/or vola based. The concept of rangbars is a fix HiLo delta... many strategies well detect vola or ATR changes based on different candle sizes... this well not work with range bars.

=> a good extension is the use of ChangeBars (on NT7 this is published as "MomentumBars")... this mine the range between Open and Close is constant and the candles can have a little shadow...

=> any renko bars can also use for backtest, you NEED a addon for a alternate "FillMode". JAM has written a simple variant as "FillWithCurrentClosePrice", the better and full backtestable way is programming a 2tick delayed fill price.
Now any bartypes with change virtual Open/Close of a candle can nearly exact work.
-> On RealLive you also never become the next(first) orderbook tick, if you trade with signals calculated bar on close... INET delay, NT7 delay, BrokerDelay,... if you not have a PC in the exchange IT building, 2 ticks fill delay is not poor, its is more realistic as any "FillOnOpen"

Reply With Quote
Thanked by:
  #3 (permalink)
 
patbateman's Avatar
 patbateman 
NY, NY
 
Experience: None
Platform: T4, NinjaTrader
Trading: All!
Posts: 235 since Mar 2012
Thanks Given: 113
Thanks Received: 200


Thanks very much for the insight!

Is the same with NT volume bars in backtesting?

"A Jedi's strength flows from the force."
-Yoda
Started this thread Reply With Quote
  #4 (permalink)
 TimeTrade 
Erfurt Germany
 
Experience: Master
Platform: rtMagic, NinjaTrader
Broker: AMP/CQG, IAB
Trading: ES, 6E, FDAX, FGBL
Posts: 338 since Aug 2011
Thanks Given: 54
Thanks Received: 461


patbateman View Post
Thanks very much for the insight!

Is the same with NT volume bars in backtesting?

any volume bar types with correct partial split a current trade volume to prevent a "overfill" of a bar can normal use for any backtest. Very high volume trades on small volume charts well produce many doji candles. This is the only little problem, if you have a doji sensitiv trade logic

Reply With Quote
  #5 (permalink)
 
EDGE's Avatar
 EDGE 
Saint Louis, Mo., USA
 
Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker: Amp/CQG, Velocity/TT, Kinetick, TS
Trading: Anything That Moves..
Frequency: Daily
Duration: Minutes
Posts: 209 since Aug 2010
Thanks Given: 98
Thanks Received: 392


TimeTrade View Post
the better and full backtestable way is programming a 2tick delayed fill price.

@TimeTrade -- Could you possibly point me in the direction of some sample/reference code for this method.


Quoting 
you NEED a addon for a alternate "FillMode". JAM has written a simple variant as "FillWithCurrentClosePrice

I'd also like to see this if you'd happen to have a link...





Reply With Quote
  #6 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

Jam backtest script

Reply With Quote
Thanked by:




Last Updated on April 16, 2012


© 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