I made a simple indicator of the formation time of bars in seconds, as I was prompted by the guys from the forum.
if(CurrentBar < 5) return;
T = (Time[0] - Time[1]).TotalSeconds;
Plot0.Set(T);
Everything works fine, but then there was a need to divide 1 by the values of this indicator.
if(CurrentBar < 5) return;
A = 1/ATimer().Plot0[0];
After the start of the indicator an error occurred Error on setting indicator plot for indicator '***'. Value outside of valid range.
Comment