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