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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            81 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            41 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            64 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            66 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            54 views
            0 likes
            Last Post CarlTrading  
            Working...
            X