Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get the Settlement Price if calculation on each tick

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

    How to get the Settlement Price if calculation on each tick

    Hi,

    I know that when the Calculation is set to on Bar Close, I can get the settlement from Daily Bar dataseries.

    However, if I set the Calculation to on each tick, I can't use the same way to get the settlement price, just give me the last day close. So how can I get what I want?

    Thanks.

    #2
    I am using NT8 and using continuum as the data provider, thanks.

    Comment


      #3
      Hello kelefei,

      Thank you for writing in.

      With Calculate.OnEachTick, Close[0] would be referring to the price of the currently building bar.

      If you wish to obtain the price from the day before, you will want to use Close[1].
      Zachary G.NinjaTrader Customer Service

      Comment


        #4
        Hi, ZacharyG,

        I do know that I should use close[1] if I am in tick mode, but I think this is not the issue on that.

        May be I use the chart to show the problem. As I found that, the chart with "tick replay" checked and without checked, they give me the results are not the same.

        I have attached the example, the pic1 is checked "tick replay" and the pic2 is not. You can see the daily close on 24/8 is not the same.

        Usually the daily bar close without "tick replay" gives me the correct settlement price of the market.

        So how can my strategy using "calc on each tick mode" can retrieve the correct bar close of daily bar close of "calc on bar close mode"? or how can my strategy access the correct settlement price?

        Thanks.
        Attached Files

        Comment


          #5
          Hello kelefei,

          Thank you for providing the additional information.

          The settlement price comes directly from the data provider itself and is not generated by NinjaTrader. When using tick replay on a daily chart, each bar's close price would be the actual close price rather than the settlement price. You wouldn't be able to pull the settlement price when using tick replay. You'll need to disable tick replay to obtain the settlement price on those daily bars.

          There is a Market Analyzer column called Settlement that does show the settlement price of the previous session, however, the data provider itself will need to flag the incoming market data type as settlement. Unfortunately, Continuum does not do this.

          The code for this column is viewable in the NinjaScript Editor.

          Please, let us know if we may be of further assistance.
          Last edited by NinjaTrader_ZacharyG; 08-25-2016, 10:24 AM.
          Zachary G.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by frankthearm, Today, 09:08 AM
          5 responses
          10 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          43 views
          0 likes
          Last Post jeronymite  
          Started by yertle, Today, 08:38 AM
          5 responses
          15 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by adeelshahzad, Today, 03:54 AM
          3 responses
          18 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by bill2023, Yesterday, 08:51 AM
          6 responses
          27 views
          0 likes
          Last Post NinjaTrader_Erick  
          Working...
          X