The way I did it below, it only draws the second plot, and it omits the first plot;
privatedouble LongSum = 0;
privatedouble ShortSum = 0;
protectedoverridevoid OnBarUpdate()
{
if(CurrentBar < 21)return;
LongSum = SMA(8)[0];
ShortSum = SMA(13)[0];
if(LongSum > ShortSum)
{
Plot1.Set(LongSum-ShortSum);
}
else
{
Plot0.Set(LongSum-ShortSum);
}
}

Comment