Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lookback for conditions other than crossovers?

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

    Lookback for conditions other than crossovers?

    Can lookback be added to Strategy Builder as an operator? I see it for crossovers only, I want to have a lookback for a Bullish or Bearish engulfing within a range of bars.

    #2
    Hello Tradarr,

    A lookback period is used for CrossAbove and CrossBelow in the center.

    A Period is used for indicators for a number of bars for the calculation and for MAX() and MIN() for the range (also under indicators).

    For 'Bullish or Bearish engulfing' you might be referring to an indicator that has that as a parameter.
    Are you referring to an indicator with that as a parameter?
    If so, what is the indicator name?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello Tradarr,

      A lookback period is used for CrossAbove and CrossBelow in the center.

      A Period is used for indicators for a number of bars for the calculation and for MAX() and MIN() for the range (also under indicators).

      For 'Bullish or Bearish engulfing' you might be referring to an indicator that has that as a parameter.
      Are you referring to an indicator with that as a parameter?
      If so, what is the indicator name?
      Yes, I am referring to the candlestick patterns indicator. Trying to use engulfing within past 10 bars as a condition in Strategy Builder, there is only bars ago and no range option.

      Comment


        #4
        Hello Tradarr,

        The CandleStickPattern will have a CandlestickPatternFound plot that will be equal to 1 when a pattern is found and 0 when no pattern is found for the selected pattern type.

        This does not have a period and a custom indicator would have to be created to implement a Period input.

        However, peaking at the logic for indicator, it uses a specific number of bars ago, and does not accumulate values that would be averaged like a moving average similar to the SMA. In other words, this script never uses bar data from more than 4 bars ago that I can see.

        You are free to copy this indicator is open source, and customize the logic for this indicator how you would like if you want to add a Period input and change the logic to use more bars of historical data.
        Last edited by NinjaTrader_ChelseaB; 10-12-2020, 02:20 PM.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X