I've forgotten how to make sure the script is only looking at the last completed bar, as opposed to seeing each bar as the current last bar while all of the bars are being loaded.
I tried using this, but it doesn't seem to work:
if ((Calculate == Calculate.OnBarClose) && (CurrentBar == Bars.Count-2))
Any takers on this one?
Thanks!
Comment