Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there an object to get the Fx quote size?

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

    Is there an object to get the Fx quote size?

    In Tools > Options > Data, you can set the "Quote currencies (FX) in:" value to Pip, HalfPip and TenthPip. I need to know how this is set for my strategy to correctly calculate stops and targets, since this setting will determine the number of "ticks" per "pip" on the chart.

    I have this code in my Initialize tag to deal with it, but I don't know how to get the Quote parameter:

    Code:
                if (Instrument.MasterInstrument.InstrumentType = InstrumentType.Currency && [B](Quotes are TenthPip || Quotes are HalfPip[/B])) ThisTicksize = TickSize * 10;
                else ThisTicksize = TickSize;

    #2
    Hello Cassb,

    Unfortunately access to this option programtically is not supported.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello Cassb,

      Unfortunately access to this option programtically is not supported.
      Is there another way to do what I'm trying to do then? What I need to know is whether the Fx ticksize is in pips or in tenths of pips.

      Thanks!

      Comment


        #4
        You could add this as input to your strategy and then set stop / target ticks accordingly.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          You could add this as input to your strategy and then set stop / target ticks accordingly.

          Ooh, hey good idea Bertrand, thanks!

          Bryan

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          63 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          35 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          54 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          61 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          48 views
          0 likes
          Last Post CarlTrading  
          Working...
          X