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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    409 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    272 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    230 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    318 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    279 views
    0 likes
    Last Post CarlTrading  
    Working...
    X