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:	177
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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        54 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        25 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        17 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        24 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X