• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time and sales information

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

    Time and sales information

    Does Ninjatrader keep track of time and sales information or is it just and ouptut on the time and sales window?

    #2
    Hello ballboy11,

    Thank you for the post.

    The T&S data is aggregated tick market data. To aggregate your own, add a one tick Ask and one tick Bid data series to the script. Then get the time stamp of each of those ticks.

    Initalize(){
    //
    //Add(string instrumentName, PeriodType periodType, int period, MarketDataType marketDataType)
    Add("ES 12-17", PeriodType.Tick, 1, MarketDataType.Ask);
    Add("ES 12-17", PeriodType.Tick, 1, MarketDataType.Bid);

    }

    protected override void OnBarUpdate()
    {

    if (BarsInProgress == 1)
    {
    Print("Ask" + Close[0]);
    }

    if (BarsInProgress == 2)
    {
    Print("Bid" + Close[0]);
    }
    }

    Please see the following links for more information:

    BarsInProgress:
    https://ninjatrader.com/support/help...inprogress.htm

    Please let us know if we may be of any further assistance.
    https://ninjatrader.com/support/foru...390#post522390
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Bluebeep, Today, 12:26 PM
    0 responses
    3 views
    0 likes
    Last Post Bluebeep  
    Started by Johnny90, Today, 12:12 PM
    0 responses
    1 view
    0 likes
    Last Post Johnny90  
    Started by login_dejavu, Today, 10:55 AM
    0 responses
    5 views
    0 likes
    Last Post login_dejavu  
    Started by learningnt, Today, 08:47 AM
    0 responses
    205 views
    0 likes
    Last Post learningnt  
    Started by alikair, 12-08-2016, 07:28 AM
    4 responses
    1,555 views
    0 likes
    Last Post vjsworld  
    Working...
    X