I made a copy of VOL (standard ninja indicator) to test this.
I called this copy VOLTest1604 so the header of indicator looks like :
public class VOLTest1604 : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = "VOLNameInside";
}
}
etc...
I put some code in the OnBarUpdate()
which iterates over the indicator collection on the chart and prints out the
Name & DisplayName of each indicator it finds.
Prior to changing the Label parameter in the indicator parameters BOTH the
Name and DisplayName show as VOLNameInside
If i delete the Label so there is nothing there :
the Name shows as null (empty) and the DisplayName reverts to VOLTest1604 ie the name of the file & header of indicator.
Is this expected behaviour ? I would have expected the DisplayName to be null and perhaps the Name to remain as it is VOLNameInside or as VOLTest1604 ?
Please advise.
thanks
Comment