• 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

Strategy Script To Invoke an ATM Strategy that uses OCO

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

    Strategy Script To Invoke an ATM Strategy that uses OCO

    I have searched and searched but have not found this exact question.

    I am wanting to place bracket OCO orders on a chart, have the PT/SL/TS all managed by an ATM, and have all of this being within a strategy.

    So, I want to build a strategy that invokes an ATM strategy (I know how this part is done)--but I want to use OCO order(s) to submit a bracket order --to mirror what is possible in the "manual" use of an ATM to set a bracket order on a chart.

    Is this possible?

    If "not possible", is there a way to program a button or whatever to apply the ATM strategy selected on Chart Trader to whatever orders are on the chart (from a strategy that put them there)?

    #2
    Hello EminiTrader,

    This is possible but I'm not aware of a script that demonstrates this complexity.

    The AtmStrategyCreate() method does not have a OCO ID so you would need to use logic to submit the orders, or use the Addon approach.
    https://ninjatrader.com/support/help...tegycreate.htm

    Below is a link to an example with the addon approach.
    SubmitOrderWithAtmAddonExample - Saving AtmStrategy Templates - NinjaTrader Support Forum
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bumbledbee, Today, 04:28 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by Tmaninc, Today, 02:13 AM
    3 responses
    11 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
    10 views
    0 likes
    Last Post NinjaTrader_Marco  
    Working...
    X