Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

If I manually submit an AMT strategy order

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

    If I manually submit an AMT strategy order

    If I manually submit an AMT strategy order and want to move the target order after the ATM strategy is executed through ATM strategy automation, but I must have an ATM id, how can I get the ATM id? Or is there another way?

    I've looked at GetOwnerStrategy().Id and it's not the atmid​
    Last edited by jetheil2; 07-17-2023, 12:51 AM.

    #2
    Hello jetheil2,

    Thank you for your post.

    There is currently no supported way to track the atmStrategyId from a manually placed order with an ATM strategy. This has been discussed in other threads, such as the following:
    If the entry with the ATM strategy is placed programmatically, then you would use the AtmStrategyCreate() method to create the order with your own atmStrategyId (typically generated via GetAtmStrategyUniqueId() to generate a random ID) and then keep track of that atmStrategyId to be able to control the ATM strategy with NinjaScript. The following help guide page is an overview of using ATM strategies in NinjaScript:
    Here is a page that lists the ATM strategy methods:
    If your main concern is placing the ATM strategy manually to begin with, you could use logic within your NinjaScript strategy that detects key presses, mouse clicks, or add buttons for order placement that will then result in an order placed by AtmStrategyCreate() so you have that NinjaScript access to the resulting entry order.

    Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    87 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    66 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    59 views
    0 likes
    Last Post CarlTrading  
    Working...
    X