My code includes this:
if (!Bars.BarsType.IsIntraday) { DrawTextFixed("error msg", "TGNPrevHiLo only works on intraday intervals", TextPosition.BottomRight); return; }
PS - Might be useful to include an example of my Properties declaration:
[Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove public DataSeries PrevHi { get { return Values[0]; } }
Comment