Remove unnecessary parameters for Bearish Engulfing strategy

This commit is contained in:
moshferatu 2024-12-16 13:02:53 -08:00
parent 46f36ea46e
commit d1dac67908

View File

@ -1,6 +1,5 @@
#region Using declarations #region Using declarations
using NinjaTrader.Cbi; using NinjaTrader.Cbi;
using System;
#endregion #endregion
namespace NinjaTrader.NinjaScript.Strategies namespace NinjaTrader.NinjaScript.Strategies
@ -11,24 +10,10 @@ namespace NinjaTrader.NinjaScript.Strategies
{ {
if (State == State.SetDefaults) if (State == State.SetDefaults)
{ {
Description = @"";
Name = "Bearish Engulfing Bot"; Name = "Bearish Engulfing Bot";
Description = @"Simple strategy based on the bearish engulfing candle pattern";
Calculate = Calculate.OnBarClose; Calculate = Calculate.OnBarClose;
EntriesPerDirection = 1; 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) else if (State == State.Configure)
{ {