From d1dac67908b95647b746ae21ef4359b8bd153443 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Mon, 16 Dec 2024 13:02:53 -0800 Subject: [PATCH] Remove unnecessary parameters for Bearish Engulfing strategy --- .../bearish-engulfing/BearishEngulfingBot.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/strategies/bearish-engulfing/BearishEngulfingBot.cs b/strategies/bearish-engulfing/BearishEngulfingBot.cs index a57b78f..ecd819a 100644 --- a/strategies/bearish-engulfing/BearishEngulfingBot.cs +++ b/strategies/bearish-engulfing/BearishEngulfingBot.cs @@ -1,6 +1,5 @@ #region Using declarations using NinjaTrader.Cbi; -using System; #endregion namespace NinjaTrader.NinjaScript.Strategies @@ -11,24 +10,10 @@ namespace NinjaTrader.NinjaScript.Strategies { if (State == State.SetDefaults) { - Description = @""; Name = "Bearish Engulfing Bot"; + Description = @"Simple strategy based on the bearish engulfing candle pattern"; Calculate = Calculate.OnBarClose; EntriesPerDirection = 1; - EntryHandling = EntryHandling.AllEntries; - IsExitOnSessionCloseStrategy = true; - ExitOnSessionCloseSeconds = 30; - IsFillLimitOnTouch = false; - MaximumBarsLookBack = MaximumBarsLookBack.TwoHundredFiftySix; - OrderFillResolution = OrderFillResolution.Standard; - Slippage = 0; - StartBehavior = StartBehavior.WaitUntilFlat; - TimeInForce = TimeInForce.Gtc; - TraceOrders = false; - RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose; - StopTargetHandling = StopTargetHandling.PerEntryExecution; - BarsRequiredToTrade = 20; - IsInstantiatedOnEachOptimizationIteration = true; } else if (State == State.Configure) {