• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Applying ATM Strategy Programmatically upon existing Position.

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

    Applying ATM Strategy Programmatically upon existing Position.

    Hi there,

    I see there is an option on Positions Tab to Apply ATM Strategy to a Position, in which case it creates the Limit and Stop Orders as per the Strategy. Is there a way to do that programmatically ?
    i.e.
    Iterate through the Positions for the Account and check if there is no ATM Strategy running on the position then apply certain ATM Strategy upon it.

    thanks

    #2
    Hello vivekniwas,

    Thank you for your reply.

    This would not be possible with an ATM Strategy as there's not a supported method to add an ATM to a position from NinjaScript after the position has been opened, but it would be theoretically possible to create an Add-on that would monitor an account and automatically submit a stop loss and profit target.

    https://ninjatrader.com/support/help...ount_class.htm

    https://ninjatrader.com/support/help...tionupdate.htm

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bumbledbee, Today, 04:28 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by Tmaninc, Today, 02:13 AM
    3 responses
    12 views
    0 likes
    Last Post Tmaninc
    by Tmaninc
     
    Started by rexmie888, Yesterday, 09:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by larkmail, Yesterday, 06:19 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by jvanelli, Yesterday, 09:23 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Marco  
    Working...
    X