Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is ATM position closed?

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

    Is ATM position closed?

    I am executing an ATM strategy from a strategy. What is the definitive way to determine when my position is closed? When I run the strategy, and don't touch the stop/target manually, the strategy works fine. but, if I cancel the stop/target manually, then the ATM methods no longer can track the open position. if I cancelled the target/stop orders during the trade:

    userGetAtmStrategyEntryOrderStatus still says 'Filled' after the trade exits GetAtmStrategyMarketPosition still says 'Long' after trade exits, GetAtmStrategyStopTargetOrderStatus still says 'Working'.

    Shouldn't these methods return nulls if the ATM goes away? Is this expected behavior? Or is the answer 'Don't do that' ???

    #2
    Don't do that!

    Its expected since its the last state of the terminated strategy. What you could try is checking the status of all stop and target orders, if they are cancelled maybe that could signal that you terminated the strategy?

    GetAtmStrategyStopTargetOrderStatus()
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    60 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X