Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trade not taken

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

    Trade not taken

    I'm trading a breakout system. Yesterday the first trade of the day (09:30AM) was taken correctly (as you can see), the Stop Loss kicked in at 14:00 as expected, but at 14:30 the second trade in the opposite direction was not taken.
    In my log attached you can see Time, Min, Max, Close, (other values not meaningful here). You can see in to bars the conditions are satisfied (i.e., Close < Min), but the trade doesn't kick in.
    26/11/2008 14.00.00 145,31 146,93 145,28 1,62 63677,42 123806,45 0
    26/11/2008 14.30.00 145,31 146,93 145,08 1,62 63677,42 123806,45 0
    The executions are always at market EnterLong/EnterShort, so I don't see where the problem is.
    Thank you
    Attached Files

    #2
    In Initialize() set "TraceOrders = true" and inspect the data in the Output window, if your 2nd signal really was triggered and an Enter()... method called, it will tell you why it was ignored.
    RayNinjaTrader Customer Service

    Comment


      #3
      I used TraceOrders = true already in the log attached.
      The Enter Method was not triggered at all, but yet, the condition is very simple: Close[0] < Min, where Min is the first price in the column, so as per my log:
      145.28 < 145.31 = true
      so, the order should kick in at the next bar (14:30).
      This does not happen.
      I cannot understand why.
      Thank you

      Comment


        #4
        From your log there was no second "Entered internal PlaceOrder". That means your conditions were never triggered. What you want to do is use Print() on all of your variables and conditions at every single step to evaluate out exactly what is going on with your code. If your conditions are truly correct then you will see a trigger. Otherwise you will not. Computers do not lie so it is just a matter of debugging. Please see this tip: http://www.ninjatrader-support2.com/...ead.php?t=3418
        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
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X