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 Pattontje, Yesterday, 02:10 PM
        2 responses
        14 views
        0 likes
        Last Post Pattontje  
        Started by flybuzz, 04-21-2024, 04:07 PM
        17 responses
        229 views
        0 likes
        Last Post TradingLoss  
        Started by agclub, 04-21-2024, 08:57 PM
        3 responses
        17 views
        0 likes
        Last Post TradingLoss  
        Started by TradingLoss, 04-21-2024, 04:32 PM
        4 responses
        44 views
        2 likes
        Last Post TradingLoss  
        Started by cre8able, 04-17-2024, 04:16 PM
        6 responses
        56 views
        0 likes
        Last Post cre8able  
        Working...
        X