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

Apply ATM and StopLoss to Existing Position via AddOn

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

    Apply ATM and StopLoss to Existing Position via AddOn

    Hello!

    How can we apply an ATM Strategy to an existing position from an Addon?

    Also how can we set a StopLoss for that same position?

    We have an addon that is submitting orders and managing them via an Addon with a custom user window with specific settings not allowed in a Strategy. We need to be able to do the "apply ATM strategy" and "Set Stoploss" functions via the AddOn logic automatically (via code).

    Thanks,

    Nick Lamb

    #2
    Hello Nick,

    There is not a supported method to add an ATM to a position from NinjaScript after the position has been opened.

    It is possible to submit an order with an Atm attached.
    http://ninjatrader.com/support/forum...555#post515555

    It would also be possible to create an Add-on that would submit a stop and limit order as a stop loss and profit target by either checking the account position after a button press or automatically from monitoring an account position update.
    https://ninjatrader.com/support/help...ns_account.htm
    https://ninjatrader.com/support/help...tionupdate.htm
    https://ninjatrader.com/support/foru...720#post820720
    Last edited by NinjaTrader_ChelseaB; 01-19-2021, 03:45 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea,

      Would the addon require a button to be pushed? Or could it submit the stop and limit orders automatically via the addon?

      Comment


        #4
        Hello outcodenick,

        This could be automatic by monitoring the account position update, or could by button click. The choice is yours.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by futtrader, 04-21-2024, 01:50 AM
        6 responses
        57 views
        0 likes
        Last Post futtrader  
        Started by sgordet, Today, 11:48 AM
        0 responses
        2 views
        0 likes
        Last Post sgordet
        by sgordet
         
        Started by Trader146, Today, 11:41 AM
        0 responses
        4 views
        0 likes
        Last Post Trader146  
        Started by jpapa, 04-23-2024, 07:22 AM
        2 responses
        18 views
        0 likes
        Last Post rene69851  
        Started by funk10101, Today, 11:35 AM
        0 responses
        1 view
        0 likes
        Last Post funk10101  
        Working...
        X