• 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 jshapen, Yesterday, 06:35 PM
    0 responses
    9 views
    0 likes
    Last Post jshapen
    by jshapen
     
    Started by leocrespo, 11-06-2015, 01:48 AM
    5 responses
    1,767 views
    0 likes
    Last Post nkhoi
    by nkhoi
     
    Started by NT8Newbie, Yesterday, 12:49 PM
    0 responses
    16 views
    0 likes
    Last Post NT8Newbie  
    Started by pdennis, Yesterday, 11:43 AM
    0 responses
    5 views
    0 likes
    Last Post pdennis
    by pdennis
     
    Started by Duval, Yesterday, 08:38 AM
    0 responses
    17 views
    0 likes
    Last Post Duval
    by Duval
     
    Working...
    X