Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Using NT Volume Indicators??? Better Read This !!!!
Updated November 1, 2010
Top Posters
looks_one
RJay
with 11 posts (16 thanks)
looks_two
tarantino
with 3 posts (0 thanks)
looks_3
eDanny
with 2 posts (2 thanks)
looks_4
Zondor
with 2 posts (1 thanks)
Best Posters
looks_one
gomi
with 4 thanks per post
looks_two
RJay
with 1.5 thanks per post
looks_3
eDanny
with 1 thanks per post
looks_4
Zondor
with 0.5 thanks per post
trending_up
11,409 views
thumb_up
24 thanks given
group
6 followers
forum
23 posts
attach_file
7 attachments
Using NT Volume Indicators??? Better Read This !!!!
October 11th, 2010, 11:05 AM
Hartford, CT. USA
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 759
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
Attached Files
Elite Membership required to download: AAA_Total_Market_Volume.cs
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
October 11th, 2010, 01:32 PM
Hartford, CT. USA
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 759
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
October 11th, 2010, 01:39 PM
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,492 since Jun 2009
Thanks Given: 33,257
Thanks Received: 101,703
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
October 11th, 2010, 01:52 PM
Hartford, CT. USA
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 759
Thanks Received: 787
Big Mike
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.
October 11th, 2010, 03:27 PM
Willowbrook, IL
Posts: 32 since Sep 2010
Thanks Given: 71
Thanks Received: 39
Big Mike
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
October 11th, 2010, 04:34 PM
Hartford, CT. USA
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 759
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.
October 11th, 2010, 05:24 PM
Posts: 1,055 since May 2010
are perry indicators affected ?
October 11th, 2010, 07:20 PM
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
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.
October 12th, 2010, 09:01 AM
Hartford, CT. USA
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 759
Thanks Received: 787
Last Updated on November 1, 2010