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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      56 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X