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:	148
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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        42 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        29 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        46 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Working...
        X