Question on Highest[BarIndex – lastWeekBarIndex](Price)

Forums ProRealTime English forum ProOrder support Question on Highest[BarIndex – lastWeekBarIndex](Price)

  • This topic has 2 replies, 2 voices, and was last updated 7 years ago by avatarCKW.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #24467
    CKW

    Hi Nicholas,
    Could you please advise what’s different for X by using DailyHigh and High in “Highest[BarIndex – lastWeekBarIndex](X)”?
    I observed some weeks having different result but I couldn’t explain why?

    Which parameter is correct? I tried it on 4hours time frame.

     

    Thanks

    br,
    khin wong

    #24487

    Hi,

    to be sure, a screen capture of what was observed (what instrument and when) would help to answer, but without it, the only thing I can think of when reading this piece of code is:

    if dailyhigh has been defined as Dhigh(1) (previous day) then

    would only include highs from day before lasttweekbarindex until previous day when searching the highest of this selection, but not today’s high.

    would include all highs from lastweekbarindex until today when searching the highest (but not high from day before lastweekbarindex).

    So not knowing if it matches what you observed, I can only guess it is possible the differences you saw occured when current day high read by code was higher than any high from lastweekbarindex until previous day, or when a high the day before lastweekbarindex was higher than any high between lastweekbarindex and current day.

    1 user thanked author for this post.
    #24986
    CKW

    Hi Noobywan,

    Thanks for your explanation. It seems by using Dailyhigh should be more realistic.

    br,

    CKW

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login