Understanding Barindex constant

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #165142 quote
    qigley
    Participant
    Junior
    // BARINDEX : Return the number of bars since the beginning of data loaded
    
    if barindex < 2 then 
    SCREENER [close] (barindex as  "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.

    PRT01.jpg PRT01.jpg
    #165163 quote
    Nicolas
    Keymaster
    Master

    Something like this should work:

    SCREENER [barindex<2] (barindex as  "Bar Count")
    #165240 quote
    qigley
    Participant
    Junior

    Hi Nicolas,

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Understanding Barindex constant


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
qigley @qigley Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by qigley
4 years, 11 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/24/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...