Understanding Barindex constant

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #165142 quote
    qigleyqigley
    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
    NicolasNicolas
    Keymaster
    Legend

    Something like this should work:

    SCREENER [barindex<2] (barindex as  "Bar Count")
    #165240 quote
    qigleyqigley
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 qigleyqigley
5 years, 5 months ago.

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