Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Moving Stop loss help..

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

    ATM Moving Stop loss help..

    Hello,

    I am looking to develop or use an existing strategy/tool that will allow me to make order changes based on last FX price. I understand that IB offers and adjusted Stop order with a trigger amount. However, i want to continuously set new triggers and keep moving the stop up based on last trade price.

    Eg..

    enter the market with:

    100,000 USD/CAD long position @ $1.25500

    I want to be able to place the following:

    Initial Stop loss order @ 1.25250

    Trigger that at 1.25700 my stop loss moves up to 1.25600

    Then...

    As the price goes up from 1.25700 each pip over will move the stop loss up by the same amount.

    Anyone develop this or can point me in a direction where i can build this using UI tools or light coding?

    Thanks,
    Rafael

    #2
    Hello Rafael,

    Thank you for the post and welcome to the NinjaTrader forum.

    You can use SetTrailStop to set up an auto trailing stop. Alternatively, you can use SetStopLoss and update the stop manually. The "SampleMultiInstruent" strategy uses this method. You can look at this code via Control Center> New> NinjaScript editor> Strategies folder.

    You can also update your trailing price in OnBarUpdate.

    Here is the help guide link to SetTrailStop, there is also a short example of its use on this page:



    Please let us know if we may be of any further assistance.

    Comment


      #3
      Thanks.

      I switched to NT7 for further testing.

      Comment


        #4
        You can set that kind of stop with ATM Strategy
        take a look

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X