Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Strategy with Playback

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

    ATM Strategy with Playback

    Hello,

    I am trying to compare two ATM strategies running in Playback. Is there any way to get the Realized & Unrealized Profit & Number of Trades displayed in the Strategy Tab? The Playback Account shows a figure but it would be nice to see how the two strategies compared.

    Thank you for any help.
    Attached Files

    #2
    Hello JohnS52,

    When using ATM templates from a NinjaScript strategy those values will be blank because the strategy doesn't actually do any of the order submissions or know about the ATM position. The strategy is only managing the external atm so its performance won't collect any information. To see the PnL you would need to use the chart or control center to view the order/position/account information.

    Comment


      #3
      Hello NinjaTrader_Jesse,

      Thank you for the information. I have created an Atm strategy based on the SampleAtmPnL strategy which only gives the PnL for one day. I am trying to modify this strategy to give the PnL for a week or a month. I see in the guide there is a ProfitPerMonth value but I can't seem to access it.

      Starting at line 210 in the strategy I have entered:
      / Draw.TextFixed(this, "PrAtm4", "Profit/Month " + System.Performance.AllTrades.TradePerformance.Curr ency.ProfitPerMonth + "\n" , TextPosition.BottomRight);
      Draw.TextFixed(this, "PrAtm5", "CumProfit " + System.Performance.RealTimeTrades.TradePerformance .Currency.CumProfit, TextPosition.BottomRight);​
      However, this gives me the Error Message: Performance does not exist in the namespace 'System' (are you missing an Assembly Reference?)

      Is there a simple way to solve this?

      Thank you for any assistance.

      Attached Files

      Comment


        #4
        Hello JohnS52,

        ATM strategies only work in realtime so you would need to run the strategy in realtime to read the live atms values using the ATM strategy methods that are available.



        The SystemPerformance that strategies use is only used for managed or unmanaged strategy orders, that does not collect ATM information. To be able to use the strategies normal performance information you would need to stop using an ATM and use managed or unmanaged orders in the strategy instead.





        Comment

        Latest Posts

        Collapse

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