Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

run Strategy script in replay

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

    run Strategy script in replay

    Hi,

    When I try to run the strategy in a replay, it seems the order will be in pending, then accepted, then cancelled.
    But I dont see any error, is it normal? Or in replay I cant do any orders?

    #2
    Could be may reasons ... Orders will get canceled e.g. as you press cancel or you close your ATM strategy or your NinjaScript strategy fails to resubmit order on next bar. You need to analyze your setup in order to understand what's going on.

    Comment


      #3
      I have no idea, it seems the order never filled, and cancelled.

      I only have a simple condition, and all I tell it to do is open LONG/SHORT for the oposite situation.

      Also the order is always active until filled, and order is market order. There is no oposite situation of this order.

      I cant think of any reason why it would cancelled very soon.

      I am thinking strategy is not working in replay.

      Comment


        #4
        I suggest debugging your strategy as per here

        Comment


          #5
          I found out the issue.

          I thought the Enter Long by a Stop Order means Enter a LONG order & enter a stop order for this LONG order at the same time.

          And I think the so-call stop in this specific order means the maximum this order will go up to fill till that stop order price.

          Am I right?

          So if I want to submit LONG order && a Stop Sell order, I need to use Enter Long position && Exit Long by a Stop order(stop lose), so 2 to-dos in the conditions. Am I correct on this?

          I dont see any information about the rest order types in the manual.

          Comment


            #6
            Sorry I don't follow. Not sure what problems you keep experiencing.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            117 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            166 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            85 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            130 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            88 views
            0 likes
            Last Post PaulMohn  
            Working...
            X