How to get bid, ask volume and total volume for each price in bar?
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
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
-
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
JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ETFVoyageur, Today, 05:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by ETFVoyageur
Today, 05:26 AM
|
||
Started by thegeniuswavebyt, Today, 03:40 AM
|
1 response
10 views
0 likes
|
Last Post
by marcus2300
Today, 05:12 AM
|
||
Started by wuannetraam, Yesterday, 07:43 AM
|
2 responses
26 views
0 likes
|
Last Post
by wuannetraam
Today, 03:57 AM
|
||
Started by hsammons87, Yesterday, 05:21 PM
|
1 response
16 views
0 likes
|
Last Post
by peter629
Today, 03:51 AM
|
||
Started by David Hill, Today, 02:57 AM
|
0 responses
22 views
0 likes
|
Last Post
by David Hill
Today, 02:57 AM
|
Comment