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 martin70, 03-24-2023, 04:58 AM
      14 responses
      105 views
      0 likes
      Last Post martin70  
      Started by TraderBCL, Today, 04:38 AM
      0 responses
      4 views
      0 likes
      Last Post TraderBCL  
      Started by Radano, 06-10-2021, 01:40 AM
      19 responses
      606 views
      0 likes
      Last Post Radano
      by Radano
       
      Started by KenneGaray, Today, 03:48 AM
      0 responses
      4 views
      0 likes
      Last Post KenneGaray  
      Started by thanajo, 05-04-2021, 02:11 AM
      4 responses
      470 views
      0 likes
      Last Post tradingnasdaqprueba  
      Working...
      X