Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Futures vs Currency Symbol

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

    Futures vs Currency Symbol

    How can I determine if the Symbol is a futures or a currency symbol?

    also, how can I determine if the 10th of pip property is set or if it is a whole pip or a half pip?
    Last edited by NinjaCustomer; 11-21-2014, 12:58 PM.

    #2
    Hello NinjaCustomer,

    Thank you for your post.

    The code sample below will show how check the instrument market type -
    Code:
    if(Instrument.MasterInstrument.InstrumentType == InstrumentType.Currency)
    {
    	// Do something here
    }
    The latter part is unsupported programming but you can check the SubPipSupport by using this -
    Code:
    if(Cbi.SubPipSupport == SubPipSupport.TenthPip)
    {
        // Do something here
    }
    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Cal View Post
      Hello NinjaCustomer,

      The latter part is unsupported programming but you can check the SubPipSupport by using this -
      Code:
      if(Cbi.SubPipSupport == SubPipSupport.TenthPip)
      {
          // Do something here
      }
      Let me know if I can be of further assistance.
      Thanks, it didn't work though.. but put me on the right track to finding the correct code

      Cbi.MasterInstrument.SubPipSupport is needed, otherwise it won't compile

      Comment


        #4
        NinjaCustomer,

        Thanks for that note!
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          How to do this in NT8?

          Originally posted by NinjaTrader_Cal View Post
          Code:
          if(Cbi.SubPipSupport == SubPipSupport.TenthPip)
          {
              // Do something here
          }
          How do I do this in NT8? I am transfering something from NT7 and NT8 and it gives an error in NT8.

          Thanks,
          -Stearno

          Comment


            #6
            Hello stearno,

            Thank you for writing in.

            NinjaTrader 8 does not have an option to change pip size. Under the hood, everything will be TenthPip. So, there would be no need for a check like this.

            Please, let us know if we may be of further assistance.
            Zachary G.NinjaTrader Customer Service

            Comment


              #7
              Thank you. That is helpful information.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by 2inthebush, Today, 03:29 PM
              2 responses
              7 views
              0 likes
              Last Post 2inthebush  
              Started by forrestang, Today, 02:17 PM
              5 responses
              23 views
              0 likes
              Last Post NinjaTrader_ChrisL  
              Started by Bobbybattles, Today, 01:31 PM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_ChrisL  
              Started by papaoutai, Today, 12:43 PM
              2 responses
              8 views
              0 likes
              Last Post papaoutai  
              Started by sdauteuil, Today, 12:16 PM
              0 responses
              7 views
              0 likes
              Last Post sdauteuil  
              Working...
              X