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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    48 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X