&& RegressionChannel(35, 2).Upper[0] > RegressionChannel(35, 2).Upper[34])
{
EnterLong(1, "");
&& RegressionChannel(35, 2).Lower[0] < RegressionChannel(35, 2).Lower[34])
{
EnterShort(1, "");
These 2 entries seem to stop my strategy from opening trades. The strategy works fine before placing these conditions but still falls victim to whipsaws. I am reading the Regression Channel from 34 bars ago and comparing to the present bar. For long orders the present bar should be higher. For short orders the present bar should be lower. This to me would indicate at least somewhat of a trend. What am I missing here?
Best regards,
Dolfan
Comment