From a25747bbb3c68b4a4a7391e970b1ee4ec81d1253 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sat, 13 Jul 2024 05:39:45 -0700 Subject: [PATCH] Add comment explaining the usage of the max patterns property --- indicators/ThreeCandleReversal.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indicators/ThreeCandleReversal.cs b/indicators/ThreeCandleReversal.cs index beb1c99..c18112e 100644 --- a/indicators/ThreeCandleReversal.cs +++ b/indicators/ThreeCandleReversal.cs @@ -45,6 +45,8 @@ namespace NinjaTrader.NinjaScript.Indicators BarLookback = 5; BullishLevelStroke = new Stroke(Brushes.LimeGreen, DashStyleHelper.Solid, 2); BearishLevelStroke = new Stroke(Brushes.Red, DashStyleHelper.Solid, 2); + + // For use when backtesting in order to limit the number of patterns processed. MaxPatterns = 0; } if (State == State.DataLoaded)