I am trying to create an Indicator which assigns values to the input data. Therefore I tried to build an if statement combined with an else if command. The code is correct but it does not show these values when I plot the Indicator on the chart. Can someone help me ?
the Code :
protected override void OnBarUpdate()
{
if (Close[0] < 27)
{return ;
Value[0]=3;
}
else if (Close[0] > 28)
{ return;
Value[0]= 4;
}
}

Comment