From d15166af5b523f27e9537c6e5373dc05671cd83f Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 17 Jul 2024 11:10:06 -0700 Subject: [PATCH] Hide max patterns property from indicator settings as it is only meant to be used during strategy backtesting --- indicators/ThreeCandleReversal.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indicators/ThreeCandleReversal.cs b/indicators/ThreeCandleReversal.cs index c18112e..c5af967 100644 --- a/indicators/ThreeCandleReversal.cs +++ b/indicators/ThreeCandleReversal.cs @@ -2,6 +2,7 @@ using NinjaTrader.Gui; using NinjaTrader.Gui.Chart; using System.Collections.Generic; +using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Windows.Media; using System.Xml.Serialization; @@ -184,6 +185,7 @@ namespace NinjaTrader.NinjaScript.Indicators [Display(Name = "Bearish Level", Description = "Stroke for bearish level drawn on chart", Order = 3, GroupName = "3CR")] public Stroke BearishLevelStroke { get; set; } + [Browsable(false)] [Range(0, int.MaxValue)] public int MaxPatterns { get; set; } }