Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Historical bid And Ask Minute Series

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Historical bid And Ask Minute Series

    h, i try to plot Historica Volume bid and ask..but
    the result is displays the spread ask and bid :

    Code:
    	if ((State==State.Historical) && (BarsInProgress==1))
    			{
    								
    				Ask[0]=BarsArray[0].GetAsk(CurrentBars[0]);
    				Bid[0]=BarsArray[0].GetBid(CurrentBars[0]);
    How do I display the volume bid-ask ?

    Thanks a lot of..,

    #2
    Hello esignal,

    You can either add a secondary series of ask and secondary series of bid and call the volume of that data series.

    Or you can use GetCurrentAskVolume() and GetCurrentBidVolume().
    http://ninjatrader.com/support/helpG...taskvolume.htm
    http://ninjatrader.com/support/helpG...tbidvolume.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      i don't underestand......i'm refer to Historical DataSeries...Not realtime series



      Definition
      Returns the current ask volume.


      I try to plot

      Code:
      	Ask[0]=GetCurrentAskVolume(CurrentBars[0]);
             Bid[0]=GetCurrentBidVolume(CurrentBars[0]);
      I see empty chart

      Comment


        #4
        Hello esignal,

        You will need to add a secondary data series of ask and a secondary series of bid and check the volume on each data series.

        AddDataSeries(Instrument.FullName, BarsPeriodType.Minute, 1, MarketDataType.Ask)
        AddDataSeries(string instrumentName, BarsPeriodType periodType, int period, MarketDataType marketDataType)


        Then use Volumes[1][0] to check the volume on each minute bar.

        If you want each ticks volume, add a tick series instead of a minute series.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by FrancisMorro, Today, 03:24 AM
        0 responses
        1 view
        0 likes
        Last Post FrancisMorro  
        Started by Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,769 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        30 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        943 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        10 views
        0 likes
        Last Post Max238
        by Max238
         
        Working...
        X