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 Mindset, 04-21-2026, 06:46 AM
            0 responses
            44 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            58 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            35 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            95 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            59 views
            0 likes
            Last Post PaulMohn  
            Working...
            X