I am developing a MTF indicator that I want to use to collect info on a few different TFs. I've done this many times before, but never trying to add a 'weekly' period.
Adding onto a minute chart, it doesn't seem to want to recognize the added bar series.
Just starting, plotting a line at bar close of each added TF. It works fine for the two minute periods, but doesn't seem to do so for the weekly period.
At this link below, I see 'weekly' isn't one of the listed items, although there is a weekly period type.
Since this is for FX, I also thought about adding a 7200 minute series, but it only adds a daily. Can a weekly series be added?
protected override void Initialize() { Overlay = true; Add(PeriodType.Minute, 360); //INdex of 1 CurrentBars[1] Add(PeriodType.Minute, 1440); //INdex of 2 CurrentBars[2] Add(PeriodType.Week, 1); //INdex of 3 CurrentBars[3] } protected override void OnBarUpdate() { if (BarsInProgress ==1 ) //EOD DrawVerticalLine("TF1"+CurrentBar,0,Color.Orange,DashStyle.Dot,1); if (BarsInProgress ==2 ) //EOD DrawVerticalLine("TF2"+CurrentBar,0,Color.Cyan,DashStyle.Dot,2); if (BarsInProgress ==3 ) //EOD DrawVerticalLine("TF3"+CurrentBar,0,Color.Purple,DashStyle.Dot,4); }
Comment