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 vitalpilot, Today, 11:14 PM
        1 response
        2 views
        0 likes
        Last Post ezrollin  
        Started by PaulMohn, 09-15-2021, 05:25 AM
        21 responses
        106 views
        0 likes
        Last Post omololu
        by omololu
         
        Started by mcosta72, Today, 04:09 PM
        0 responses
        17 views
        1 like
        Last Post mcosta72  
        Started by Quanto, Today, 02:50 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by Trader108, Today, 01:45 PM
        2 responses
        16 views
        0 likes
        Last Post Trader108  
        Working...
        X