OnBarUpdate()
{
if (set1)
{
if (conditions for set1 long)
EnterLong()
if (conditions for set1 short)
EnterShort()
}
else if (set2 - conditions for set2 long)
{
if (conditions for set2 long)
EnterLong()
}
else if (set2 - conditions for set2short)
{
if (conditions for set2 short)
EnterShort()
}
}
Comment