Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Quote currencies (FX) in

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

    Quote currencies (FX) in

    Hello!

    How can I find out within a NinjaScript strategy if the "Quote currencies" is set to "HalfPip"?

    Thank you.

    #2
    Unfortunately you can't access this from within a NinjaScript strategy.

    Comment


      #3
      In this case it is not possible to find out the "normal/default" tick size aside from the quoted pip size?

      Lets say I have a strategy with a GUI parameter "stop loss" set to 10 pips. How do I calculate the 10 pips if every client is using different data providers and settings?

      Thanks, DH

      Comment


        #4
        In this case you would go with different variants of your strategy, if IB uses halfPip for example - you multiply by 2 to arrive at the ticks needed for your 10 pip target (20 ticks or min moves).

        Comment


          #5
          Thank you for your quick reply.

          I am developing strategies for a lot of clients, very often, I don't even know which real-time data provider they use. Even if I would know it, I wouldn't know which settings they are using.

          So it 1) makes no sense and 2) would be unpossible for me anyway to program different variants for all providers.

          Maybe you can put this issue into your todo list.
          Thank you
          DH

          Comment


            #6
            You're welcome - thanks for the suggestions, I just add a user input so I can change this on the fly depending on which provider I'm using. You could even add an enum and then your customers select for example on which technology they are working at runtime...

            Comment


              #7
              Are you suggesting to add an additional parameter to the strategy do define sonething what is already defined?

              Comment


                #8
                Yes, this was my idea for a workaround - your suggestion to add access has been noted through.

                Comment


                  #9
                  Ok, thats fine, thank you.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  636 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  366 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  107 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  568 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  571 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X