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 PaulMohn, Today, 05:00 AM
    0 responses
    1 view
    0 likes
    Last Post PaulMohn  
    Started by ZenCortexAuCost, Today, 04:24 AM
    0 responses
    5 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by ZenCortexAuCost, Today, 04:22 AM
    0 responses
    2 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by SantoshXX, Today, 03:09 AM
    0 responses
    15 views
    0 likes
    Last Post SantoshXX  
    Started by DanielTynera, Today, 01:14 AM
    0 responses
    3 views
    0 likes
    Last Post DanielTynera  
    Working...
    X