• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 GMiller64, Today, 01:13 PM
    3 responses
    7 views
    0 likes
    Last Post GMiller64  
    Started by itrader46, Today, 12:51 PM
    4 responses
    33 views
    0 likes
    Last Post itrader46  
    Started by hemlock, Today, 11:45 AM
    3 responses
    9 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by gbulle, Today, 11:31 AM
    2 responses
    7 views
    0 likes
    Last Post gbulle
    by gbulle
     
    Started by JPPoulin, Today, 10:43 AM
    6 responses
    23 views
    0 likes
    Last Post JPPoulin  
    Working...
    X