Go Back   NinjaTrader Support Forum > NinjaTrader 7 > Platform Technical Support

Platform Technical Support General platform technical support for NinjaTrader 7.

Reply
 
Thread Tools Display Modes
Old 03-30-2012, 12:25 PM   #1
RichardTodd
Member
 
Join Date: Jul 2008
Location: Dallas, TX
Posts: 30
Thanks: 5
Thanked 4 times in 4 posts
Default Range Bar Volume

Since I've started using Ninja for stock data I've noticed an issue with the way Range bars report their volume. You rarely if ever see this with futures data, but on stocks it's common to have a tick now and then which is far removed from the current action. When this happens, Ninja has to build a string of range bars leading to the new location. So far so good, but the problem is that Ninja puts the volume from this trade on the _first_ bar it builds, instead of the last one. It's the last bar it has to build where the trading volume took place.

The logic in @BarTypes picks the volume for AddBar() like so:
isFirstNewBar ? volume : 1,

... and I guess using 1 for all the empty bars is to avoid poorly-written indicators crashing on 0-volume bars? I don't really care about that part... but "volume" should really not go to the firstNewBar, and I think the logic should change so that it goes to the last bar Ninja has to build.

The screenshot shows an example of the issue if the description above is not clear. Let me know if there's any other information you need. As you can see in my example, the misplaced volume can be sizeable, so people that track volume by price on range bars would appreciate it if this were addressed.

Thanks!

Richard
Attached Images
File Type: png priceVolume.PNG (56.0 KB, 27 views)
RichardTodd is offline  
Reply With Quote
Old 03-30-2012, 02:14 PM   #2
NinjaTrader_Matthew
NinjaTrader Product Management
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 6,957
Thanks: 268
Thanked 1,331 times in 1,132 posts
Default

Hello,

Thanks for the detailed report.

I will need to write this into development for the expected and defined behavior.

Please let us know if you have anything else you wish to add.
NinjaTrader_Matthew is offline  
Reply With Quote
Old 04-03-2012, 10:03 AM   #3
NinjaTrader_Matthew
NinjaTrader Product Management
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 6,957
Thanks: 268
Thanked 1,331 times in 1,132 posts
Default

Thank you for bringing this to our attention. As it currently exists, the volume will be associated with the first bar, however we understand how it would be expected for this to show up on the last bar.

We highly value feedback from users like you and genuinely appreciate you spending the time to provide us the details you contributed in this thread and this will be considered in our feature discussion for a future NinjaTrader release. Your input has been entered into our tracking system and assigned ID # 1676

Please let me know if there is anything we can do for you.
NinjaTrader_Matthew is offline  
Reply With Quote
Reply

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
Range Bar volume/time in seconds WES107 Indicator Development 4 05-03-2011 05:23 PM
Problem with Volume UpDn indicator with "range Charts" over 11 range klineal Platform Technical Support 11 07-20-2010 01:58 PM
No range bar volume for ranges 5 and higher jmneale Platform Technical Support 5 03-11-2010 01:01 PM
Change volume bar color based on price and volume range TiP2012 Indicator Development 5 05-26-2008 08:09 AM


All times are GMT -6. The time now is 04:13 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content. Visit the CFTC resources for education regarding the industry and signs of fraud.