Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

having problems with several nt7/nt8 properties

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

    having problems with several nt7/nt8 properties

    I am having problems to replicate these codes (coming from custom BarType) into NT8 and your help will be appreciated:

    i.e. within:
    Code:
    public override void Add(Bars bars, ......., bool isRealtime)
    i want alternatives for NT8:

    isRealtime
    bars.Session.NextBeginTime
    bars.Session.NextEndTime
    bars.Session.SessionsOfDay

    #2
    Hello TazoTadua,

    Thanks for your post.

    NinjaTrader 7's Add in BarsTypes is handled by OnDataPoint in NinjaTrader 8.

    bars.Session.NextBeginTime and bars.Session.NextEndTime is now controlled by a SessionIterator.

    bars.Session.SessionsOfDay can be replaced with bars.TradingHours.Sessions.Count

    isRealtime is no longer used and has been switched for isBar which tells us if the timestamp in OnDataPoint is for an already built bar or for an intraday timestamp. Functionality is slightly different, so you may wish to reference the existing NT7 BarsTypes in the bin/Custom/Types/@BarsType.cs file against the existing NT8 BarsTypes for implementation.

    OnDataPoint - https://ninjatrader.com/support/help...ndatapoint.htm

    SessionIterator - https://ninjatrader.com/support/help...oniterator.htm

    Bars.TradingHours.Sessions - https://ninjatrader.com/support/help...s_sessions.htm

    We look forward to being of further assistance.

    Comment


      #3
      thanks for help. I missed, there was "public override Gui.Chart.ChartStyleType[] ChartStyleTypesSupported" which restricted the selctable bar types. In NT8 i couldnt find alternative.

      Comment


        #4
        Hello TazoTodua,

        Thanks for your question.

        ChartStyleTypesSupported is not supported in NinjaTrader 8. We are tracking interest in this functionality in SFT-3002. I have added a vote on your behalf.

        Please let me know if I can be of further assistance.

        Comment


          #5
          Originally posted by NinjaTrader_Jim View Post
          Hello TazoTodua,

          Thanks for your question.

          ChartStyleTypesSupported is not supported in NinjaTrader 8. We are tracking interest in this functionality in SFT-3002. I have added a vote on your behalf.

          Please let me know if I can be of further assistance.
          I would like to see that too.

          Comment


            #6
            Thanks koganam,

            Your vote has been added.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            580 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            336 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            552 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X