Hi,
I'm trying to get all the closing price bars for the current day, and I'm using the following script:
Close() is returning the closing price of every other bar, and I'm not sure why. Using getInterval() I see that the interval is correct. Please help!!!
Thanks in advance,
Norm
I'm trying to get all the closing price bars for the current day, and I'm using the following script:
Code:
function main(){ var firstIndexOfDay = getFirstBarIndexOfDay( new Date() ); if ( getCurrentBarIndex() >= firstIndexOfDay ) debugPrintln(getCurrentBarIndex() + " : " + close(getCurrentBarIndex())); }
Thanks in advance,
Norm
Comment