Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to use trade limiter with ATM

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

    How to use trade limiter with ATM

    I am trying to use a trade limiter to shut my strategy down after 3 consecutive losers. I have used the "SampleTradeobjects" example to do this with a regular strategy but since I have changed the strategy to calling ATM templates the trade limiter no longer works. How do I change the "SampleTradeobjects" example to work with ATM?

    #2
    ninjablanks, once each ATM strategy is finished (position closed), you can get the realized profit for it with GetATMStrategyRealizedProfitLoss() and then use some sort of counter to keep track of how many winners and losers you've had in a row.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    77 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    27 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X