Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy Builder - Re-Entry Rule

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

    Strategy Builder - Re-Entry Rule

    Want to set a Re-Entry Rule with Strategy Builder, but don´t get the right comparison.

    var = days at least has to be passed to get again into the market. = 3

    Tried the

    Bars since Exit with Exit Executions Ago ( 3 ) equal or bigger var

    nothing happens

    means

    a condition "if" the strategy has exited, then I want to wait at least 3 days

    #2
    Hello pmmkm,

    Thanks for your post.

    With reference to the helpguide on the BarsSinceExitExecution() you would need to test for both a -1 value (when there is no previous exit) as well as the 3 bars when there has been an exit. https://ninjatrader.com/support/help...texecution.htm

    In the strategy builder you would want to build a "group" where you test for the -1 OR the Bars >= 3. You can achieve the OR function by making sure the Group is set to "If any" meaning if any of the conditions in the group are true, to proceed. For your convenience, I've attached an example of the conditions group.
    Attached Files
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by pmmkm View Post
      Want to set a Re-Entry Rule with Strategy Builder, but don´t get the right comparison.

      var = days at least has to be passed to get again into the market. = 3

      Tried the

      Bars since Exit with Exit Executions Ago ( 3 ) equal or bigger var

      nothing happens

      means

      a condition "if" the strategy has exited, then I want to wait at least 3 days

      works :-)
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      3 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      6 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Working...
      X