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

How to determine whether an instrument is dealable or not

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

    How to determine whether an instrument is dealable or not

    Is there a way to determine whether an instrument is dealable or not? Something like Instrument.MasterInstrument.IsDealable? If there's no such property, what's the best practice to determine this value?

    Regards,
    Daniel

    #2
    Daniel, are you referring to tradable on the current connection you use? Generally you could check for the type of instrument and excludes indices then - http://www.ninjatrader-support.com/H...umentType.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hello Bertrand,

      yes I mean tradable on the current connection. I have a multi instrument strategy that analyzes several currency pairs, but some of them are not tradeable, so I get wrong results. For example: The last bar for $SGDJPY appeared today 06:00am; obviously this pair will not be tradable until next week.

      Regards,
      Daniel

      Comment


        #4
        Daniel, unfortunately there's no property returning this - I would limit the strategy via time filters for each symbol you intend trading with it.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Ok, thanks. Maybe for future Versions of NT: There's a flag in Gains API "D=Status, Dealable or Referred". It would be great if this flag will become available in NinjaScripts.

          Regards,
          Daniel

          Comment


            #6
            Daniel, thanks for this suggestion, appreciated.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              It's me again.

              I've contacted Gain to ask them for a time table. The short answer: "There is no such table". The problem was that I was not subscribed to this pair, so NT loaded the historical data, but got no updates from the rates service.

              Isn't it possible to change the subscriptions at runtime depending on which pairs are used (in charts, strategies and whatever)?

              Regards,
              Daniel

              Comment


                #8
                Unfortunately not Daniel, those would be managed at Gain directly for your login.
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by algospoke, Today, 06:53 PM
                0 responses
                2 views
                0 likes
                Last Post algospoke  
                Started by mlprice12, 12-21-2021, 04:55 PM
                3 responses
                291 views
                0 likes
                Last Post paypachaysa  
                Started by lorem, 04-25-2024, 09:18 AM
                20 responses
                85 views
                0 likes
                Last Post lorem
                by lorem
                 
                Started by xepher101, 05-10-2024, 12:19 PM
                4 responses
                52 views
                0 likes
                Last Post xepher101  
                Started by DawnTreader, 05-08-2024, 05:58 PM
                22 responses
                82 views
                0 likes
                Last Post DawnTreader  
                Working...
                X