thanks in advance
{
// Condition set 1
if (CrossAbove(Close, DonchianChannel(Period).Upper, 1))
{
EnterLong(DefaultQuantity, "");
}
// Condition set 2
if (CrossBelow(Close, DonchianChannel(Period).Lower, 1))
{
EnterShort(DefaultQuantity, "");
}
// Condition set 3
if (CrossBelow(Close, DonchianChannel(Period).Lower, 1))
{
ExitLong("", "");
}
// Condition set 4
if (CrossAbove(Close, DonchianChannel(Period).Upper, 1))
{
ExitShort("", "");
}
}
Comment