Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM number of Stops and Targets

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

    ATM number of Stops and Targets

    I'm using ATM templates in my Strategy. One ATM template has 5 targes, another - 2 targets, another - 10. How can I get programably the amount of targets in a specific ATM template?

    #2
    Hello webus,

    There is not a specific ATM method that would return the number of active orders from the ATM template. The easiest way to determine that would be after the entry order fills, the position quantity should represent the amount of targets you have assuming you have a profit and a stop for each quantity in the position. You could store that quantity to a variable and once a target fills you could subtract 1 from the quantity to keep track of how many may be active.

    https://ninjatrader.com/support/helpGuides/nt8/getatmstrategystoptargetorders.htm
    https://ninjatrader.com/support/helpGuides/nt8/getatmstrategypositionquantity.htm
    Last edited by NinjaTrader_Jesse; 05-29-2024, 12:58 PM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X