Using NT Volume Indicators??? Better Read This !!!! - NinjaTrader Programming | futures io social day trading
futures io futures trading


Using NT Volume Indicators??? Better Read This !!!!
Updated: Views / Replies:6,121 / 23
Created: by RJay Attachments:7

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 7  
 
Thread Tools Search this Thread
 

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

  #11 (permalink)
Trading Apprentice
Willowbrook, IL
 
Futures Experience: None
Platform: Windows 7, Android
Favorite Futures: Mouse and Keyboard
 
tarantino's Avatar
 
Posts: 32 since Sep 2010
Thanks: 71 given, 39 received


RJay View Post

I don't understand where you see a bug?

You set volume to zero and expect it not to be a zero? You better check your logic before reporting bugs.
 
Code
 
protectedoverridevoid OnBarUpdate()
{
 
if (FirstTickOfBar)
{
netVolUp = 0;
}
VolumeUp.Set(netVolUp);
}

Reply With Quote
 
  #12 (permalink)
 Vendor: www.integrity-traders.com 
East Rochester, NY
 
Futures Experience: Intermediate
Platform: NT
 
eDanny's Avatar
 
Posts: 327 since Jul 2009
Thanks: 17 given, 419 received

I'm having the same problem with NT7 code. Code that works fine with NT6.5 will always show one less trade per bar in NT7. For example if VOL says 300 my indicator says 299 in NT7 and 300 in 6.5. This is a tough nut to crack.

Dan

Reply With Quote
The following user says Thank You to eDanny for this post:
 
  #13 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received



tarantino View Post
I don't understand where you see a bug?

You set volume to zero and expect it not to be a zero? You better check your logic before reporting bugs.
 
Code
 
protectedoverridevoid OnBarUpdate()
{
 
if (FirstTickOfBar)
{
netVolUp = 0;
}
VolumeUp.Set(netVolUp);
}

Dear tarantino,

Thank you for taking the time to look at my code. You are absolutely correct. The line of code you indicated does indeed set the variable to "0".

This line of code you refer to is correct coding in NT 6.5 and hopefully will soon be in NT 7.

If you look at the other indicator I posted along with this one, you will see the code with the patch to temporarily fix the problem,

 
Code
if (FirstTickOfBar)
            {
                
                netVolUp = 0;
                netVolUp = netVolNewBar;

            }
In this indicator, you will see that the next line in the code, is the same variable being assigned a non zero value.

This is part of the temporary patch until NT can fix their code.

I'm sorry that you got confused.

RJay

Reply With Quote
 
  #14 (permalink)
Trading Apprentice
Willowbrook, IL
 
Futures Experience: None
Platform: Windows 7, Android
Favorite Futures: Mouse and Keyboard
 
tarantino's Avatar
 
Posts: 32 since Sep 2010
Thanks: 71 given, 39 received

Once again.
protectedoverridevoid OnBarUpdate()
{

if (FirstTickOfBar)
{
netVolUp = 0;
}
VolumeUp.Set(netVolUp);
}

If you are expecting that VolumeUp[0] at this stage (if firsttickofbar) is non zero, then I am crazy perhaps.

I would report a bug if VolumeUp[0] != 0

Reply With Quote
 
  #15 (permalink)
 Vendor: www.integrity-traders.com 
East Rochester, NY
 
Futures Experience: Intermediate
Platform: NT
 
eDanny's Avatar
 
Posts: 327 since Jul 2009
Thanks: 17 given, 419 received

I can attest to the fact that I see the first tick volume being dropped at FirstTickOfBar in NT7. What I am seeing is the total volume is off by the volume of the first tick. If I add that volume back in my totals will be correct but there is another problem with plotting. If the next bar sits there with only the first tick, visible in a very slow period, the previous plot is carried forward and shows the result of the last bar with the added volume from the first tick. It is replaced with the correct plot if there is another trade during that bar period. If not the plot disappears and shows no volume when the next bar starts. This is unacceptable to me. Remember this will not be noticeable during regular hours with volume but can be seen using something like the TF on a 30 second chart during after hours when volume is very low. So, to recap.

Problem one: Volume of first tick is dropped but can be added back using additional code but should be unnecessary.

Problem two: Plotting has a problem which is only visible under the right conditions. This is not a problem with NT6.5 and I cannot find a way to fix it in NT7.

Dan

Reply With Quote
The following user says Thank You to eDanny for this post:
 
  #16 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received

OK Folks,

After working with NT as well as other programmers here at futures.io (formerly BMT) this week, Here are my findings.

NT has confirmed that there may be a issue using OnMarketData data with privately constructed indicator.

Since NT does not construct any of their indicators in this way, They have stated that no changes are planned to resolve the differences between NT 6.5 and NT 7.



Here's the problem.


In NT 6.5, CurrentBar and FirstTickOfBar can be used to capture all price/volume ticks for each bar from OnMarketData in real time.

In NT 7 , CurrentBar and FirstTickOfBar can be used to capture all price/volume ticks for each bar from OnMarketData except the first tick of the bar in real time.


This means that compiling accurate data from OnMarketData in NT 7 is going to be more complicated than NT 6.5.

All data from the "Bid, Ask, and Last" need to be collected, at every tick, and temporarily saved.


At FirstTickOfBar, The previous "Last"tick and the current "Last" tick are going to both get processed at the same time and updated to the chart together.

This means Indicators from NT 6.5, just because they compile in NT 7, does not mean they are working properly.

I am putting together some working samples to show you what the new coding should look like.


Stay Tuned,


RJay


P.S. Same problem is in OnMarketDepth for all counting indicators as well. jtRealStats indicators are not affected by this problem.


Last edited by RJay; October 23rd, 2010 at 03:30 PM.
Reply With Quote
The following 3 users say Thank You to RJay for this post:
 
  #17 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received

Well,

I have good news and bad news.

The good news is that these indicators work really well on every chart type I tested them on except Volume.

The bad news... reread the previous line!!!

Doubling up the first two ticks results in an equal to volume bar plus the volume of the unsplit ticks.

You may not even notice.

Attached are a Total Volume Indicator sample code and a Delta Volume Indicator sample code.

Attached image compares them with the VOL indicator.

Note, A perfect match between VOL and The Total Volume Indicator.


Let me know what you think,


RJay

Update: There is a problem with the delta indicator . I just updated to a new indicator with the same name.

Attached Thumbnails
Using NT Volume Indicators??? Better Read This !!!!-tf-12-10-5-tick-10_21_2010.jpg  
Attached Files
Register to download File Type: cs Sample_NT7_OnMarketData_Total_Volume_Indicator_With_Patch.cs (8.3 KB, 31 views)
Register to download File Type: cs Sample_NT7_OnMarketData_Delta_Volume_Indicator_With_Patch.cs (9.3 KB, 41 views)

Last edited by RJay; October 25th, 2010 at 11:38 AM.
Reply With Quote
The following 2 users say Thank You to RJay for this post:
 
  #18 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Can the indicators be coded so that they would work correctly if it IS a volume chart?

If so, you can put in a code switch since we can programatically detect whether the periodtype is Volume.

if(Bars.Period.Id == PeriodType.Volume)

... execute code suitable for volume chart

else

... execute code with FirstTickOfBar workaround



Note: My new version of BuySellVolume that includes the FirstTickOfBar fix gives perfect match so that buyvolume + sellvolume from GomRecorder equals Volume[0], on tick charts, anyway.


Last edited by Zondor; October 24th, 2010 at 09:42 PM.
Reply With Quote
 
  #19 (permalink)
Elite Member
CA
 
Futures Experience: Master
Platform: Marketdelta and Ninja
Broker/Data: Velocity
Favorite Futures: NQ
 
Posts: 670 since Apr 2010
Thanks: 64 given, 521 received

Ok.. so if i have GOMcd indicator loaded up on a volume chqrt, i'm gonna have problems? You saying that volume charts are not correct to begin with? or is it the indicators loaded up on volume charts?

Reply With Quote
 
  #20 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received



Zondor View Post
Can the indicators be coded so that they would work correctly if it IS a volume chart?

If so, you can put in a code switch since we can programatically detect whether the periodtype is Volume.

if(Bars.Period.Id == PeriodType.Volume)

... execute code suitable for volume chart

else

... execute code with FirstTickOfBar workaround



Note: My new version of BuySellVolume that includes the FirstTickOfBar fix gives perfect match so that buyvolume + sellvolume from GomRecorder equals Volume[0], on tick charts, anyway.

Hi Zondor,

There may be a way to load the first and second ticks separately but it involves altering the chart programs.

I seriously doubt that NT would even consider it.

On the bright side, The GomIndicatorRecorder might be altered to compensate.

problem could also be fixed at the Indicator for non Gom indicators. I'll have to think about it.

RJay

Reply With Quote

Reply



futures io > > > > > Using NT Volume Indicators??? Better Read This !!!!

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Volume Ladder for NT (Gomi) gomi The Elite Circle 1390 December 8th, 2017 09:44 AM
Volume Indicators Michael.H The Elite Circle 2 October 18th, 2010 02:25 AM
trade without any indicators just price and volume cjstrader5 Traders Hideout 2 September 29th, 2010 10:45 PM
Volume Indicators and NT 6.5 TraderJesse NinjaTrader 1 December 21st, 2009 12:49 PM
Volume Watch Indicators RJay Traders Hideout 9 October 17th, 2009 05:05 PM


All times are GMT -4. The time now is 01:27 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-14 in 0.14 seconds with 20 queries on phoenix via your IP 54.234.255.29