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:	162
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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        85 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        143 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        83 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        256 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        334 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X