Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JimNinjaTrader Customer Service

    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.
        JimNinjaTrader Customer Service

        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.
            JimNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Perr0Grande, Today, 08:16 PM
            0 responses
            2 views
            0 likes
            Last Post Perr0Grande  
            Started by elderan, Today, 08:03 PM
            0 responses
            5 views
            0 likes
            Last Post elderan
            by elderan
             
            Started by algospoke, Today, 06:40 PM
            0 responses
            10 views
            0 likes
            Last Post algospoke  
            Started by maybeimnotrader, Today, 05:46 PM
            0 responses
            12 views
            0 likes
            Last Post maybeimnotrader  
            Started by quantismo, Today, 05:13 PM
            0 responses
            7 views
            0 likes
            Last Post quantismo  
            Working...
            X