Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
accessing the cumulative volume in t&s window?
Collapse
X
-
is this statistic available through/with ZenFire? I get an error trying to access it...
Comment
-
Found Error
Thanks for the rapid response,
After your response-I revisited this and discovered the error was in the syntax I was using (imagine that-a user error!!)...for those looking for the same thing I was, the working code is something similar to the following:
if (e.MarketDataType == MarketDataType.Last )
{
dvolume = e.MarketData.DailyVolume.Volume;
}
Can you verify this is the best way to get this statistic? Specifically, is it best to use the "last" event to get this?
J.
Comment
-
Keep volume value persistent
Hi,
I display the running volume on the chart. However, after cash close, the volume value resets to ETH volume. I need to keep the RTH value persistent after close and not show the ETH volume at all. How do I do that?
Here is my code (but fails to achieve the above)
Code:protected override void OnMarketData(MarketDataEventArgs e) { if (e.MarketDataType == MarketDataType.DailyVolume) { if (Instrument.MasterInstrument.Name == "ES") { if (ToTime(Time[0]) < 083000) ETHsession = e.Volume; else if (ToTime(Time[0]) >= 083000 && ToTime(Time[0]) < 151459) { RTHsession = e.Volume - ETHsession; tempVol = RTHsession; } else if (ToTime(Time[0]) > 151500) RTHsession = tempVol; } }
Last edited by kashter; 08-30-2011, 07:59 PM.
Comment
-
BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
11 responses
39 views
0 likes
|
Last Post Today, 11:40 AM | ||
Started by FrazMann, Today, 11:21 AM
|
0 responses
5 views
0 likes
|
Last Post
by FrazMann
Today, 11:21 AM
|
||
Started by geddyisodin, Yesterday, 05:20 AM
|
8 responses
52 views
0 likes
|
Last Post Today, 10:45 AM | ||
Started by DayTradingDEMON, Today, 09:28 AM
|
4 responses
26 views
0 likes
|
Last Post Today, 10:47 AM | ||
Started by George21, Today, 10:07 AM
|
1 response
22 views
0 likes
|
Last Post Today, 10:43 AM |
Comment