// Bollinger Cross Below Lower Band Bear Zone
if ((Times[0][0].TimeOfDay >= new TimeSpan(9, 38, 0))
&& (Times[0][0].TimeOfDay <= new TimeSpan(15, 20, 0)))
{
}
// need an input for spread amount to replace the 16 cents or ticks SPREAD IN TICKS
// if ((GetCurrentAsk(0) - 0.16) <= GetCurrentBid(0))
// {
// }
if ((CrossBelow(Close, Bollinger1.Lower, 1))
&& (Bollinger1.Upper[1] > Bollinger1.Upper[2])
&& (UseBollingerCross == true))
{
if (AttachATM == true)
CreateUniqueATMStrategy((int)Signals.BollingerShor t);
else if (Position.MarketPosition != MarketPosition.Long)
EnterShort(Convert.ToInt32(DefaultQuantity));
}
****************************
my thinking is the IF needs to be removed and replaced with &&
if ((CrossBelow(Close, Bollinger1.Lower, 1))
***********************************
i was really hoping to place the timeofday and the GetCurrentAsk part into the script only once instead of at every conditional part
thanks
Comment