NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 07-27-2010, 03:56 PM   #1
aviat72
Senior Member
 
Join Date: Jul 2009
Location: San Francisco Bay Area
Posts: 216
Thanks: 0
Thanked 4 times in 3 posts
Default How to add an indicator based on time-based bars to a tick chart?

I want to trade on a tick chart but have some indicators available which are based on time-based bars. Unfortunately this requires a chart which also has the time-based bars added, since that is the only way you can add the indicator.

But this messes up the tick-chart since the time-based bar becomes the bar used to define the axis.

Is there a way to workaround this limitation and have the tick chart have equidistant bars with the time bar based indicator plotted on the tick-chart? I do realize that the spacing will be messed up on the indicator plot, but that is fine.
aviat72 is offline  
Old 07-27-2010, 04:10 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

aviat72,

The only workaround for this is to instead of relying on the primary series you attach the indicator to you add a secondary series of the series you want to use for the indicator and run it that way. Your code would need to skip all BarsInProgress = 0 events and only process BarsInProgress = 1 events.
NinjaTrader_Josh is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate tick-based indicators on historical bars JangoFolly Suggestions And Feedback 11 04-02-2010 11:37 PM
x number bars back, based on time ctrlbrk Strategy Development 2 03-29-2009 01:31 PM
Add new DataSeries based on Chart bar period ch33ch Strategy Development 5 10-01-2008 09:23 PM
Alternative to tick based/bar based strategy calculation? (i.e every minute/X ticks) Elliott Wave Strategy Development 9 07-11-2008 03:11 AM


All times are GMT -6. The time now is 10:05 PM.