How to get bid, ask volume and total volume for each price in bar?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Price bid, ask volume
Collapse
X
-
Hello zhiga,
One way would be to add a bid and ask series with AddDataSeries().
AddDataSeries(null, BarsPeriodType.Minute, 1, MarketDataType.Ask)
AddDataSeries(string instrumentName, BarsPeriodType periodType, int period, MarketDataType marketDataType)
https://ninjatrader.com/support/help...dataseries.htm
https://ninjatrader.com/support/helpGuides/nt8/iseries_volumes.htm
Alternately, you could have a set of variables to collect the ask and bid and volume from OnMarketData().
https://ninjatrader.com/support/help...marketdata.htm
http://ninjatrader.com/support/forum...265#post503265Chelsea B.NinjaTrader Customer Service
-
Thank you, Chelsea.Originally posted by NinjaTrader_ChelseaB View PostHello zhiga,
One way would be to add a bid and ask series with AddDataSeries().
AddDataSeries(null, BarsPeriodType.Minute, 1, MarketDataType.Ask)
AddDataSeries(string instrumentName, BarsPeriodType periodType, int period, MarketDataType marketDataType)
https://ninjatrader.com/support/help...dataseries.htm
https://ninjatrader.com/support/helpGuides/nt8/iseries_volumes.htm
Alternately, you could have a set of variables to collect the ask and bid and volume from OnMarketData().
https://ninjatrader.com/support/help...marketdata.htm
http://ninjatrader.com/support/forum...265#post503265
I have a more two questions:
1) Why does the custom indicator disappear from the chart after exiting the NT8? I have to reattach it.
2) After reinstalling NT8, it began to shut out. I returned to an earlier version of the NT8, but an error began to appear for another custom indicator (this is a different indicator, not from question 1):
"Error on Calling 'OnRender' method on bar 4388: Attempted to read or write protected memory. This is often an indicator that other memoru is corrupt "
Regards,
Comment
-
Hello zhiga,
If an indicator hits a run time error, it will disable and will no longer render.
Please check the Control Center for errors regarding the error. If these are scripts written by a third party, please reach out to that party to inform them of the errors received.
If this is a script you have written, please use the information given in the Control Center regarding the error so you can take debugging steps to add prints to see the last line of code that is processed before the error is hit.
Debugging Tips - https://ninjatrader.com/support/help...script_cod.htm
Errors from OnRender generally involve advanced custom rendering routines. To get more acquainted with SharpDX rendering, please see the Help Guide article below, and please see the SampleCustomRender indicator that comes with NinjaTrader.
https://ninjatrader.com/support/help..._rendering.htm
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment