NexusFi: Find Your Edge


Home Menu

 





Using NT Volume Indicators??? Better Read This !!!!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one RJay with 11 posts (16 thanks)
    2. looks_two tarantino with 3 posts (0 thanks)
    3. looks_3 Zondor with 2 posts (1 thanks)
    4. looks_4 eDanny with 2 posts (2 thanks)
      Best Posters
    1. looks_one gomi with 4 thanks per post
    2. looks_two RJay with 1.5 thanks per post
    3. looks_3 eDanny with 1 thanks per post
    4. looks_4 Zondor with 0.5 thanks per post
    1. trending_up 11,107 views
    2. thumb_up 24 thanks given
    3. group 6 followers
    1. forum 23 posts
    2. attach_file 7 attachments




 
Search this Thread

Using NT Volume Indicators??? Better Read This !!!!

  #1 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787

Thanks for stopping by!!!!

I was just doing my favorite thing, Volume Research !!!

Here is what I just found. If you are using volume indicators that employ volume counters in

protected override void OnMarketData(MarketDataEventArgs e) section of code,

If you are using if (FirstTickOfBar) or a CurrentBar comparator like if (CurrentBar < activeBar)

to reset the volume totals from the prior bar to 0, you may be loosing the volume from the first tick of the current bar.


The first attached chart is a two tick chart with three volume indicators.

Top indicator uses Volume[0]. My version of NT's VOL indicator.

Middle indicator is a corrected indicator that collects data from OnMarketData(MarketDataEventArgs e).

Bottom indicator has not been corrected using old if (FirstTickOfBar) / if (CurrentBar < activeBar) code.

Note: the bottom indicator always lags behind the other two indicators.


Second chart is on a one tick chart. As you can see, It shows no volume at all for bottom indicator.

First tick of bar is not being counted at all.

Also attached is a sample indicator with code showing how to overcome this problem. Just drop this indicator directly into the indicator folder.

Enjoy,

RJay


P.S. NT 7 Beta 22 Bug report has been posted on NT Forum.

Attached Thumbnails
Click image for larger version

Name:	TF 12-10 (2 Tick)  10_11_2010.jpg
Views:	396
Size:	229.0 KB
ID:	22388   Click image for larger version

Name:	TF 12-10 (1 Tick)  10_11_2010.jpg
Views:	325
Size:	192.6 KB
ID:	22395  
Attached Files
Elite Membership required to download: AAA_Total_Market_Volume.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
56 thanks
Funded Trader platforms
44 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #3 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


If anyone is concerned that their indicators may have this problem, you can test them by putting them on a 1 tick chart.

No indicator display means your indicator may need updating.


If your counting ticks in your indicators, test those indicators as well.

RJay

Started this thread Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,177
Thanks Received: 101,541

What does NT say about this? Bug? Design-flaw? Working as intended, no problem, cannot reproduce, ... ?

If you use a Volume bar, at set the volume bar to 'xxx' vol, does your indicator match what NT is showing as the volume on the bar?

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


Big Mike View Post
What does NT say about this? Bug? Design-flaw? Working as intended, no problem, cannot reproduce, ... ?

If you use a Volume bar, at set the volume bar to 'xxx' vol, does your indicator match what NT is showing as the volume on the bar?

Mike

Since NT's VOL indicator as well as any indicator using only the Volume[0] series in the OnBarUpdate section are not having a problem, the problem only shows up when collecting data from the market feed in the OnMarketData section.

The problem is stark on a 1 tick chart. Match indicator to be tested with VOL. See pic in prior post.

Started this thread Reply With Quote
  #6 (permalink)
tarantino
Willowbrook, IL
 
Posts: 32 since Sep 2010
Thanks Given: 71
Thanks Received: 39


Big Mike View Post
What does NT say about this? Bug? Design-flaw? Working as intended, no problem, cannot reproduce, ... ?

If you use a Volume bar, at set the volume bar to 'xxx' vol, does your indicator match what NT is showing as the volume on the bar?

Mike

Each tick fires OnMarketData and OnBarUpdate(if COBC = false) as well.

OnMarketData is fired before OnBarUpdate.
if you are using same variables in both event handlers - be careful - you might set it in one and reset in another.

I would not use CurrentBar in OnMarketData

Reply With Quote
  #7 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787

Update: This fix is for NT 7.0 .

eDanny says fix is acting funny in NT 6.5.


Second Update:

Further investigation shows problem is in NT7 only.

Started this thread Reply With Quote
  #8 (permalink)
 MetalTrade 
 
Posts: 1,055 since May 2010

are perry indicators affected ?

Reply With Quote
  #9 (permalink)
 
LukeGeniol's Avatar
 LukeGeniol 
Italy (IT) Italy
 
Experience: Advanced
Platform: ATAS, R|Trader, NT8
Broker: Rithmic
Trading: CL, Brent, GC, TF
Frequency: Daily
Duration: Minutes
Posts: 1,499 since Apr 2010
Thanks Given: 408
Thanks Received: 985


MetalTrade View Post
are perry indicators affected ?

NO, cos they not use OnMarketData(), this is only for real time indicators that don't plot historical data.
(Since I'm not an expert, someone correct me if I'm wrong).

Take your Pips, go out and Live.
Luke.
Reply With Quote
Thanked by:
  #10 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


Posted NT 7 Beta 22 Bug Report on NT Forum.

Version 7 beta22 Dropping Ticks??? - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Started this thread Reply With Quote
Thanked by:




Last Updated on November 1, 2010


© 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