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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          663 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          376 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          110 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          575 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          580 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X