Any help would be appreciated.
Regards
protected override void OnBarUpdate()
{
// Condition set 1
if (CrossBelow(xxx(4, 8, 40).Signal, xxx(4, 8, 40).Main, 1)
&& Rising(yyy(6, 10, 0)) == true
&& yyy(6, 10, 0)[0] <= 50
&& Rising(Stoch(3, 14, 3).K) == true)
{
EnterLong(DefaultQuantity, "Long");
}
// Condition set 2
if (CrossAbove(xxx(4, 8, 40).Signal, xxx(4, 8, 40).Main, 1)
&& Falling(yyy(8, 14, 0)) == true
&& yyy(8, 14, 0)[0] >= 50
&& Falling(Stoch(3, 14, 3).K) == true)
{
EnterShort(DefaultQuantity, "Short");
}
// Condition set 3
if (CrossBelow(Exxx(4, 8, 40).Signal, xxx(4, 8, 40).Main, 1)
&& yyy(8, 14, 0)[0] == 100)
{
EnterLong(DefaultQuantity, "Long T2");
}
// Condition set 4
if (CrossAbove(xxx(4, 8, 40).Signal, xxx(4, 8, 40).Main, 1)
&& yyy(8, 14, 0)[0] == 0)
{
EnterShort(DefaultQuantity, "Short T2");
}
}

Comment