Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with Orders , are not executed

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

    Problem with Orders , are not executed

    Hello,
    in the system attached, I use Limit orders to enter when position is flat or reverse position when position is long or short.
    In sim account they are executed, but when I use this strategy in my real account they are not executed.
    Why??
    Range2SMA.zip

    #2
    send again the exported file.
    Attached Files

    Comment


      #3
      Sorry, I forgot to say that I use that strategy in a chart of mNQ 9-22, with range bars of 60 ticks

      Comment


        #4
        Hello Parmenides48,

        Thanks for your post.

        Do you see any errors appear in the Log tab of the Control Center?

        Have you added debugging prints to your script to determine how the strategy is behaving?

        If the expected trade(s) are not appearing, this would indicate that the condition to place the order is not evaluating as true or the order is being ignored for other reasons.

        To understand why the script is behaving as it is, such as placing orders or not placing orders or drawing objects when expected, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.

        In the strategy add prints (outside of any conditions) that print the values of every variable used in every condition that places an order along with the time of that bar. Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).

        Also, enable TraceOrders which will let us know if any orders are being ignored and not being submitted when the condition to place the orders is evaluating as true.

        Let me know if I may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        67 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        142 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        76 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        47 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        51 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X