• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars Since Entry for 2nd Entry

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

    Bars Since Entry for 2nd Entry

    Working on an exit criteria that uses BarsSinceEntry but does not work on my 2nd entry. Example
    I enter one position long, 15 bars later I enter another position
    My criteria 4 bars later is met for exit from my second entry (if BarsSinceEntry < 7, exit if unrealized P&L drops 1.5%), however my second position is not exited.
    This criteria does work on my first entry when met
    Please advise if the BarsSinceEntry filter only looks at the first entry and how you would enable it to look at each entry individually

    Thank you

    #2
    titleistbb22, BarsSinceEntry() is supposed to look at every single entry, not just the first one. If you are specifying a signal name, does the name change for each entry? Could you perhaps post the code you're using so we can see if something looks out of place?
    AustinNinjaTrader Customer Service

    Comment


      #3
      I figured this out - my criteria simply wasnt being met. Thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Nat11, Today, 04:30 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Option Whisperer, Yesterday, 11:50 AM
      2 responses
      10 views
      0 likes
      Last Post Option Whisperer  
      Started by TraderJim618, Yesterday, 01:20 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by drpapp, 01-24-2019, 06:57 AM
      6 responses
      72 views
      1 like
      Last Post brucerobinson  
      Started by ttodua, 12-06-2019, 11:40 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X