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

Problem with Trailing Stops and Interactive Brokers

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

    Problem with Trailing Stops and Interactive Brokers

    Hello,

    I am using a strategy that adjusts the trailing stops for a currency pair once i am in the position. However, on my first use of this strategy non of my trailing stop adjustment orders got accepted by IB.

    After calling them i learned that with IB and currency pair trailing the minimum bid or ask that could be submitted was half a pip.

    Eg.. my trailing stop math was moving my stops (or so i though) to:

    1.24176 then to
    1.24173
    1.24169 etc..

    but all orders were rejected by the IB api.

    So as a result, i need a way to modify the instrument in Ninja Trader 7 so that the only orders it will allow the strategy to genera would be..

    in this case:

    1.24175 or 1.24170 etc..

    Thanks in advance for the help.

    #2
    Hello RAFTRADER,

    Thank you for your note.

    You could use the following to round your computation to the nearest ticksize,

    Please see MasterInstrument.Round2TickSize() section of our helpguide,


    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      clarification..

      Maybe my question was not fully clear. Sorry.

      What i need to figure out is how do I change the tick size for spot FX instuments. IB is requiring half-pip increments, and my platform is set for tenth of a pip increments.

      Thanks,

      Comment


        #4
        Hello RAFTRADER,

        To change this you would go to Control Center>Tools>Options>Data Tab. Then select Pip for Quote Currencies (FX).

        See the attached screen shot.

        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        23 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        22 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X