NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 01-06-2011, 05:44 PM   #1
MikeInMA
Senior Member
 
Join Date: Jul 2007
Location: Taunton, MA
Posts: 202
Thanks: 1
Thanked 0 times in 0 posts
Default Suggestion: Open[], High[], Low[] and Close[] should always contains price data

When the input series selected for an indicator via the Indicators windows is associated with price data, Open[], High[], Low[] and Close[] are also derived from the price data, as expected. But if the selected input series is another indicator, Open[], High[], Low[] and Close[] (as well as Input[]) will all contain the value returned by the subordinate indicator and, for any given price bar, will be identical. In other words, we get the output of the subordinate indicator five different times! And meanwhile access to price data is lost. I would submit that it is more than sufficient to have the value returned by the subordinate indicator in Input[], and Open[], High[], Low[] and Close[] should always contain price data.
MikeInMA is offline  
Reply With Quote
Old 01-07-2011, 06:04 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Hi Mike, thanks for submitting this suggestion - I can understand your points made.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-07-2011, 07:04 AM   #3
MikeInMA
Senior Member
 
Join Date: Jul 2007
Location: Taunton, MA
Posts: 202
Thanks: 1
Thanked 0 times in 0 posts
Default

I realize there are probably quite a few indicators written against Close[] rather than Input[] – heck, even the stub for OnBarUpdate() generated by the indicator wizard sets plots to Close[0] instead of Input[0] (which, come to think of it, ought to be changed, too!) – so my suggestion represents something of a code-breaking change. But I still don't think protecting the use of Close[] justifies the loss of access to price data when indicator-on-indicator is used.

Another interesting way to approach this would be to have Close[0][] hold data from the indicator's input, Close[1][] hold data from the input's input, etc., and in that way an indicator would be able to retrieve data from every link in an indicator-on-indicator chain, culminating with being able to retrieve price data. This would impact the subscripts used to access added data series, so it would still break some code. However, this is a more comprehensive approach than above that would actually break less code. Add a variable that contains the length of the chain and we're all set!
MikeInMA is offline  
Reply With Quote
Old 01-07-2011, 07:54 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Thank you for the extended suggestions, I'll forward them - the current approch is that you only get access to the main input series, in the case of indicator on indicator this is not going to be the price data series the base indicator would then be running on.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-11-2011, 11:17 AM   #5
echoeversky
Junior Member
 
Join Date: Sep 2009
Location: Seattle
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Hey Mike, there is a way, and Richard over at movethemarkets found a funny way out of the box work around. Make a Bar Type!

It has its follies, and its an initial run at the issue without having to use a recorder. (recompiling is a pain but hey, I'll take it)

Ninjatrader might get the historical data sorted out say by v8.0.0.0.

http://www.youtube.com/watch?v=V2q6SD6PBCk
echoeversky is offline  
Reply With Quote
Reply

Tags
bid/ask, extendeddata

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
Plotting High, Low, Open, Close. They all overlaps, Bug? loxics Indicator Development 2 09-06-2010 03:51 AM
How can I get the High, Low, Open, Close from BarsArray? atrader General Programming 2 04-24-2009 08:47 AM
Charting high/low/close and open/close widths gluebunny Charting 11 09-29-2008 10:47 AM
Plotting Open, High, Low, and Close. strategy1 General Programming 1 07-22-2008 03:20 PM
Trouble with Open, High, Low, Close SuzyG Indicator Development 4 03-05-2007 04:03 AM


All times are GMT -6. The time now is 01:52 PM.