CBOC is set to false. What is wrong with the code?
if(
(
(Math.Abs(latestTickTBC4LongSignal - latestTickBV3DownExhaustion) <= tickTBBVLEDVicinity &&
Math.Max(latestTickTBC4LongSignal,latestTickBV3Dow nExhaustion) == (CurrentBars[0]-stratTBBVLEDEnterBar) &&
latestTickTBC4LongSignal > latestTickBV3DownExhaustion) ||
(Math.Abs(latestTickTBC4LongSignal - latestTickBV3LongSignal) <= tickTBBVLEDVicinity &&
Math.Max(latestTickTBC4LongSignal,latestTickBV3Lon gSignal) == (CurrentBars[0]-stratTBBVLEDEnterBar) &&
latestTickTBC4LongSignal > latestTickBV3LongSignal)
)
&&
stratBiasSetting > -1 &&
lastBVLEDLongSignal !=CurrentBars[0]-stratTBBVLEDEnterBar
)
{
int i = CurrentBars[0] - latestTickBV3DownExhaustion;
int j = CurrentBars[0] - latestTickTBC4LongSignal;
string timestamp1 = Convert.ToString(Times[0][i]);
string timestamp2 = Convert.ToString(Times[0][j]);
double pricestamp = Closes[0][0];
int trendAge = tB.IndTBTrendDuration[0];
double currentLowOfDay = CurrentDayOHL().CurrentLow[0];
Print("BIPLongBV3 "+timestamp1+" LED "+timestamp2+" Price "+pricestamp+" trendAge "+trendAge+" CurrentDLow "+currentLowOfDay);
stratBVLEDInternalBias = 1;
lastBVLEDLongSignal = CurrentBars[0]-stratTBBVLEDEnterBar;
}

Comment