if (CrossAbove(LinReg1, VWMA1, 1))
{
SetStopLoss("LongEntry", CalculationMode.Ticks, stopLossTicks, false);
SetProfitTarget("LongEntry", CalculationMode.Ticks, takeProfitTicks);
EnterLongLimit(1, Close[0] + 30 * TickSize, "LongEntry");
//EnterLong(Convert.ToInt32(DefaultQuantity), "LongEntry");
}
// Set 2
if (CrossBelow(LinReg1, VWMA1, 1))
{
SetStopLoss("ShortEntry", CalculationMode.Ticks, stopLossTicks, false);
SetProfitTarget("ShortEntry", CalculationMode.Ticks, takeProfitTicks);
EnterShortLimit(1, Close[0] + 30 * TickSize, "ShortEntry");
//EnterShort(Convert.ToInt32(DefaultQuantity), "ShortEntry");
}

Comment