protectedoverridevoid OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
if (Close[0] > SMA(3)[2])
{
UpSMA3disp2.Set(2);
}
if (Close[0] < SMA(3)[2])
{
DownSMA3disp2.Set(2);
}
if (Close[0] == SMA(3)[2])
{
NeutralSMA3disp2.Set(2);
}
Comment