Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Building an ATM Strategy... getting error

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

    Building an ATM Strategy... getting error

    I get this error in the log and the strategy is not submitting orders in replay:

    Missing atmStrategyId parameter

    The ATM strategy does exist as a valid ATM strategy.

    Here is my ATM code:

    // ATM LONG ENTRY CODE HERE
    if (Close[0]>ub && mp[0]!=1 && orderId.Length == 0 && atmStrategyId.Length == 0)

    atmStrategyId = GetAtmStrategyUniqueId();
    orderId = GetAtmStrategyUniqueId();
    AtmStrategyCreate(Action.Buy, OrderType.Limit, ub, 0, TimeInForce.Day, orderId, "ZB10AMGrabber", atmStrategyId);



    Brian

    #2
    Brian,

    You will need to have an actual ATM strategy template created in the DOM or some other order entry window that is titled "ZB10AMGrabber".
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Yea... it is.

      Comment


        #4
        Please try SampleAtmStrategy and see if that works for you.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Carolscogginsi, Yesterday, 10:45 PM
        0 responses
        6 views
        0 likes
        Last Post Carolscogginsi  
        Started by RaddiFX, Yesterday, 10:15 AM
        2 responses
        15 views
        0 likes
        Last Post RaddiFX
        by RaddiFX
         
        Started by patrickmlee007, Yesterday, 09:33 AM
        2 responses
        18 views
        0 likes
        Last Post patrickmlee007  
        Started by magnatauren, 08-15-2020, 02:12 PM
        5 responses
        208 views
        0 likes
        Last Post RaddiFX
        by RaddiFX
         
        Started by rene69851, 05-02-2024, 03:25 PM
        1 response
        24 views
        0 likes
        Last Post rene69851  
        Working...
        X