Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM from script

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

    ATM from script

    Hi Ninja
    I am trying to initiate an ATM strategy from a script without any luck. Below is the code for the action after a long condition is met. The action does not execute. Is there something wrong with this code? There is an ATM template called "ES scale out". I am not sure what the "GetATMStrategyUniqueId()" is. Do I have to put something in there? I have studied the help section on the "Get ATM Strategy" topic but it is lacking in detail. I would really appreciate some help.

    Thanks

    Richard Neal





    AtmStrategyCreate(Action.Buy, OrderType.Limit, 0, 0,
    TimeInForce.Day, GetAtmStrategyUniqueId(), "ES scale out",
    GetAtmStrategyUniqueId());

    #2
    Hi Richard,

    Please see the pre-installed reference sample titled SampleAtmStrategy for an example of how to get it working.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, Yesterday, 02:41 AM
    0 responses
    14 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    22 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X