BarNumber and CurrentBar question
Posted: Feb 11 2013
I insert 12 stock on Market Scanner, XLP, SPY, XLU, XLI, XLV, XLY, XLF, XLB, XLK, XLE, XRT, XHB. I wrote the following study and check close, currentbar and barnumber.
value1=close;
plot1(value1,"close");
value2=currentbar;
plot2(value2,"CurrentBar");
value3=BarNumber;
plot3(value3,"BarNumber");
Question1: I setup for 1000 Bars back on settings of Format Resolution(All Instruments), however, the CurrentBar and BarNumber for XL* is 994 and 767 for SPY. May I know why?
Question2: I could see the the barnumber is 1000 on the chart, why I see 994 and 767 on MarketScanner?
Thanks for your advice.
value1=close;
plot1(value1,"close");
value2=currentbar;
plot2(value2,"CurrentBar");
value3=BarNumber;
plot3(value3,"BarNumber");
Question1: I setup for 1000 Bars back on settings of Format Resolution(All Instruments), however, the CurrentBar and BarNumber for XL* is 994 and 767 for SPY. May I know why?
Question2: I could see the the barnumber is 1000 on the chart, why I see 994 and 767 on MarketScanner?
Thanks for your advice.