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 trilliantrader, 04-18-2024, 08:16 AM
        7 responses
        27 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by samish18, 04-17-2024, 08:57 AM
        17 responses
        64 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by rocketman7, Today, 02:12 AM
        2 responses
        17 views
        0 likes
        Last Post rocketman7  
        Started by briansaul, Today, 05:31 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by PaulMohn, Today, 03:49 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X