Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Programatically pick up result of ATM trade

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

    Programatically pick up result of ATM trade

    Is there a way of coding an indicator to pick up the result of an ATM trade? I'm thinking something similar to OnOrderUpdate() in a strategy?

    -thanks

    #2
    Hello laparker,

    Results of an ATM strategy can only be accessed from within Strategy. You'll then use the GetATM() functions like the one below:



    There is a built in Strategy you can use for help on accessing an ATM strategy within a NinjaScript strategy. See the SampleATMStrategy as well as the reference sample below for help with this:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply. It's not quite what I want to do. I want to enter trades manually and exit with an ATM strat. My ideal right now would be:

      1 Trade right off the chart using Chart Trader
      2 Use an ATM strategy
      3 Update the strat parameters from an indicator
      4 Pick up the trade performance and write it to a file.

      1 and 2 I can do. 3 I have read is not possible. 4 the GetATM() methods look like they only work in a strategy, not an indicator.

      Is there another way of attacking this?

      -thanks

      Comment


        #4
        Hello,


        It sound like you're trying a combination of discretionary entries and automatic exits. The system is not setup for this except for the standard ATM settings that you can modify within the GUI.

        You can definitely code in logic that can change the profit targets and stop losses based on an indicator, but combining this with the discretionary entries isn't possible.

        You're right that the GetATM() functions can only be used in a strategy.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X