
-----------------------------------
DoubleX
Fri Mar 03, 2017 10:49 pm

Bar counting for TOS
-----------------------------------
Hello

I use a simple .script which plots numbers below the bars. 

# plot bar number using seconds since open at 0930 EST
input show_bars_divisable_by = 2;
plot barNum = 1 + (SecondsFromTime(0930) / 300);
barNum.SetPaintingStrategy(PaintingStrategy.VALUES_BELOW);

Since show_bars_divisable_by = 2; it should plot the number on only every second bar. Like Al Brooks it does. But it shows it on every bar. 

Some ideas what is wrong?

It would also be nice if the numbers which get plotted are a little bit lower. Now they are just at the low of the bar.

Would be nice if someone could help.

Thank you.
