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

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.
    Chris L.NinjaTrader Customer Service

    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 Belfortbucks, Today, 09:29 PM
        0 responses
        6 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Working...
        X