Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Proper way to close an ATM Strategy launched by a Strategy

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

    Proper way to close an ATM Strategy launched by a Strategy

    Hi Ninja gurus...

    What's the proper way to close a running ATM strategy that was launched by a Strategy? For example your strat went long, fired an ATM strat, and the ATM strat is long when you realize you want to flatten. It seems if I close it in the DOM, it gets closed but the strategy stops running, while if I stop the ATM strategy in the strategy tab, it closes the position, says the main strategy is running... when in fact it is not.

    I'm a bit thick and the User Guide wasn't very clear to me on the best way to do this .

    Suggestions?

    I'm also keen to code the "I was wrong. Flatten!" decision using code similar to the "You can change the Stop" section of your sampleATMstrategy to instead buy/sell market based on a condition or two going against my trade instead of waiting for the inevitable stop loss... so if you can point me in the right direction to achieve that it would be great.

    BTW your product rocks.

    #2
    MXASJ,

    To close an ATM strategy you would need to use AtmStrategyClose() in your code somewhere.

    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh. That indeed points me in the right direction for the second question! Thanks!

      For the first question I've just tried moving my stops in the DOM (mouse in the center column) and that appears to allow me to exit a position (when hit using the tighter, manually-moved stop) without ending the strat, making my P&L go out of sync, or making my strat position go out of sync.

      Is that a fair statement and a "safe" way to get of of an ATM strat initiated by a strategy?

      Thanks for your time.

      Comment


        #4
        You should be fine with that operation.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by arvidvanstaey, Today, 02:19 PM
        4 responses
        11 views
        0 likes
        Last Post arvidvanstaey  
        Started by samish18, 04-17-2024, 08:57 AM
        16 responses
        61 views
        0 likes
        Last Post samish18  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        9 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        48 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X