Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter/Exit Parameters

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

    Enter/Exit Parameters

    I currently have an issue with the parameters of the Enter/Exit command within
    NinjaScript: Strategy.

    My indicator is searching towards the most recent candle to the Right and when it finds a successful pattern, it prints at CurrentBar, which is further to the Left, (Where it started.)

    Is there a way to Enter/Exit at the Candles to the Right of the CurrentBar,
    rather than having it Enter/Exit at CurrentBar?

    Note: I will be working on the indicator to search in the inverse manner, when no viable answer is able.

    Thank you.

    #2
    Hello Timothy_Miller,

    Thank you for your post.

    Are you using CalculateOnBarClose set to true or false for this search?

    If you use true for this, the current bar will be the last completed bar on the right side, I.E. the bar to the left of the bar being built.

    If you use false for this, the current bar will be the bar being built.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thank you Cal,

      I was using...
      CalculateOnBarClose = false

      My method will be to use false, because I am searching specific prices and want to catch them early.

      In the Strategy Analyzer tool, I have tried both ways and they Enter/Exit on the same Bars, with true and false. They both still provide CurrentBar Entry rather than the most right Bar.

      Any other ideas would be much appreciated. Thank you. ^_^
      Last edited by Timothy_Miller; 01-10-2015, 03:59 AM.

      Comment


        #4
        Timothy_miller,

        Strategy Analyzer will always use CalculateOnBarClose set to true, there is no way to override this in the backtest.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X