Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Update ATM Strategy Template parameters programmatically

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

    Update ATM Strategy Template parameters programmatically

    How can i update an existing ATM Strategy Template parameters from within a custom DrawingTool?
    Template name TestATM for example.

    I want to access programmatically to:
    1) Order quantity
    2) Parameter type (Currency)
    3) Target 1 - Quantity, Stop loss, Profit
    4) Target 2 - Quantity, Stop loss, Profit

    And update them before order (buy or sell) is sent by the user.

    Screenshot attached.

    Click image for larger version

Name:	Screenshot 2023-12-30 at 21.57.37.png
Views:	154
Size:	28.1 KB
ID:	1284261

    #2
    Hello xfactscout,

    Thanks for your post.

    There are no supported or documented NinjaScript methods or properties to update an existing ATM Strategy Template through code.

    This forum thread will be open for other community members to share their insights on possible unsupported code you could use.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thanks BrandonH.

      Is there a way to switch Templates in ChartTrader programmatically then? (selecting by AtmStrategy Template name I mean)

      Happy New Year.

      Comment


        #4
        Hello xfactscout,

        Thanks for your note.

        There are no documented/supported NinjaScript methods or properties available for changing the Atm Strategy Template drop-down menu in Chart Trader to select a specific ATM Strategy Template.

        The ATM Strategy Template would need to be manually selected in Chart Trader.

        This forum thread will be open for other community members to share their insights on possible unsupported code to accomplish this.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        94 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        140 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        74 views
        0 likes
        Last Post PaulMohn  
        Working...
        X