For example:
If I loaded a chart at 1 minute timeframe i have in
protected override void Initialize()
{
Add(PeriodType.Minute, 3);
}
but if I have a 5 mins chart i need to have :
Add(PeriodType.Minute, 15);
and if i have a 15 seconds charts i need to have:
Add(PeriodType.Seconds, 45);
The constant is 3 X loaded timeframe charts.
How can I build a script to do this?
Thanks in advance.
Comment