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 NullPointStrategies, Today, 05:17 AM
        0 responses
        53 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X