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 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