// BARINDEX : Return the number of bars since the beginning of data loaded
ifbarindex<2then
SCREENER[close](barindexas"Bar Count")
endif
I have live data for the ASX (Australian market..)
I am trying to scan for an IPO that listed today code “ART”. That means on a daily timeframe, there should be one bar of data. I have checked and there is one bar of data.
I would have thought the above code would have picked it up, but it doesnt. Why hasn’t it ?
The scan returned 4 results. (attached) I expected to see no more than 2 bars, but 1, 2,3 and 4 bars were returned.
It seems I have misunderstood barindex. Can someone help? Thanks.
No it didnt work, the result was exaclty the same as mine.
It is interesting to note that ERTH & VLUE return a barcount of 1, when the charts returned show 3 bars each. Similarly, FRB & HYGG return a barcount of 0, when the charts returned show 4 & 1 bars respectively.
I take it when barindex = 0, there should be just one bar of data.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue