i want to create a multiple TimeFrame Indicator, wich plot various calculations depending of inputs. For example:
I want to plot a 5 min SMA in a 1 min chart. I create an Indicator where I can select type (Tick, min, day....) and value (5 for 5min...)
can I check this in protected override void initialize()?
for example:
protected override void initialize()
{
if(TimeFrame = "Minute")
Add(PeriodType.Minute, Value);
if(TimeFrame = "Tick")
Add(PeriodType.Tick, Value);
.......

Comment