I would like selecting between Range and Renko bars types in a secondary serie in my strategy.
I have created a enum variable but it does not works, error compiling CS0117
public enum TypeOfBar
{
Range,
Renko
}
----------------------------------------------
[NinjaScriptProperty]
[Display(Name = "Type of Bar", GroupName = "Parameters", Order = 1)]
public TypeOfBar MyTypeOfBar { get; set; }
-----------------------------------------------
AddDataSeries(Data.BarsPeriodType.MyTypeOfBar, Bar_Size);
-----------------------------------------------
What would be a better approach to this issue?
Thanks
Comment