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 Javierw.ok, Today, 04:12 PM
    0 responses
    2 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    40 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    15 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X