Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AtmStrategyCreate()

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

    AtmStrategyCreate()

    Strategy I am developing generates entry order using AtmStrategyCreate(), which calls existing ATM strategy. It generate entry order fine and place target and stop orders fine it entry order is filled according to predefined ATM strategy fine.

    It executes target order fine. Only thing it doesn't do well is executing
    stop order. Even if stop is hit, it is not executed. Any idea what is wrong here?

    Thanks

    #2
    badasan,

    Please test your ATM strategy manually in the SuperDOM. It should work there. All the NinjaScript strategy does is call the ATM strategy and it then "hands over" control to the ATM strategy.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Here is what I found.

      When I start Ninja fresh and test ATM manually on DOM, it works fine.
      Once this working ATM is called by strategy code,
      stop doesn't work. Once this happened when I try
      ATM on DOM manually, it doesn't work properly.

      If I close Ninja and restart, ATM works fine on DOM again.
      Any idea what is causing this weird behavior?

      Thanks

      Comment


        #4
        badasan,

        Please try using the SampleAtmStrategy installed in your NinjaTrader and see if you can still reproduce this behavior.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Okay,

          I created ATM strategy called AtmStrageyTemplate and
          checked manually in the SuperDOM and verified it is working
          fine the way I want.

          Now I started strategy called @SampleAtmStrategy which
          calls AtmStrageyTemplate. It works fine also.

          I am not sure what is causing my problem since I copied and
          modifed @SampleAtmStrategy to create my own strategy
          to call proven ATM.

          I attached my code if you want to take a look at what the problem is

          Thanks
          Attached Files

          Comment


            #6
            badasan,

            Recommend you simplify it down to one condition with one call to the ATM strategy. Try and isolate the issue.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            558 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X