Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

All conditions not following order

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

    All conditions not following order

    Hi,
    I have a strategy that fires orders in a set order and to a criteria. The problem is that thier are 3 condition sets per side. THe first 2 condition sets work fine, but when i get to the third condition set it does not follow the sequence and just enters the next bar. I assume i have missed some thing so your thoughts are appreciated.
    As you can see from the attachment the 3rd order fires directly after the second one. And as you can see from the code below the 3rd order should be XXX amount away from the previous orders. I have put the strategy criteria in order in relation to conditions, so the condition 1-3 is the same just in reverse.This is the simplified version but the problem is the same.
    Last edited by IISSG; 06-10-2011, 10:53 PM.

    #2
    IISSG, please try using the specific signal name for doing the bars since entry check. For example, if you are trying to wait 1000 bars from the first entry, you could do:
    Code:
    if (BarsSinceEntry("Long") > 1000)
    { // do third long entry }
    The reference page for BarsSinceEntry() can be found here.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thanks i have it working.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      574 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X