Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating ATM Strategy in NinjaScript against a dynamic account

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

    Creating ATM Strategy in NinjaScript against a dynamic account

    Hi,

    I have written an "account protection strategy" which allows me to submit orders via custom buttons and which runs a range of checks against the orders placed. If the checks fail no order is submitted. If the check is successful an ATM Strategy is created based on the selected ATMStrategy.

    Now in case the checks fail: Instead of not submitting the order, I'd like to go ahead and "redirect" the order to be placed on the Sim101 account. Is this possible?
    Essentially I am looking for:

    Account a = chartTraderAccountSelector.GetAccount("Sim101")
    a.AtmStrategyCreate(....)

    How would I be able to implement this?
    This is for my discretionary trading, so looking to use an ATMStrategy rather than a fully automated strategy setup.

    Kind regards
    Frank

    #2
    Hello Frank,

    You can find an account with:
    Code:
    // Find our Sim101 account
    lock (Account.All) myAccount = Account.All.FirstOrDefault(a => a.Name == "Sim101");
    Below is a link to the help guide.
    https://ninjatrader.com/support/help...ount_class.htm

    As well as a link to an example that submits an order with an Atm attached through the addon approach.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 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
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X