• 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

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 epitoma, Today, 05:21 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by BatBart, Today, 01:24 PM
      1 response
      22 views
      0 likes
      Last Post NinjaTrader_Melissa  
      Started by ezrakoper, Today, 03:05 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by asmmbillah, Today, 02:23 PM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by steveg, Today, 02:44 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Heath  
      Working...
      X