55 Day Hi previous day

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #6319 quote
    Penny Cohen
    Participant
    New

    Hello all

    How i find by code the 55 Day Hi for previous day , is there any builtin function or something i can use.

    Thank you

    Penny

    #6321 quote
    Nicolas
    Keymaster
    Master

    Hello Penny,

    You can use the HIGHEST instruction for that :

    lasthigh = HIGHEST[55](high)

    It returns the previous high over the last 55 periods over the current timeframe.

    #6339 quote
    Penny Cohen
    Participant
    New

    Thank you Nicolas

    and if i want to compare the last 55 bar of 55 day hi is there any way to do it.

    Thanks

    #6341 quote
    Nicolas
    Keymaster
    Master

    Hmm sorry… that is not clear 🙂

    But, if your request is just a simple comparison between the current bar high and the 55 days highest, here is the code :

    lasthigh = HIGHEST[55](high)
    
    muchhigher = high>lasthigh[1]

    Then use this boolean result in your condition :

    if muchhigher then
    ...
    endif

    or directly into your SCREENER instruction :

    SCREENER [muchhigher]
    #6342 quote
    Penny Cohen
    Participant
    New

    Thank you Nicola

    I mean if i needed to compare the value of the current 55 day hi to the previous 5  – 55 day hi 

    is it possible ?

    Thank you

    #6375 quote
    Nicolas
    Keymaster
    Master

    Yes you can!

    If your variable is:

    lasthigh = HIGHEST[55](high)

    Then you can catch what was its value 5 days before with:

    5daysbefore = lasthigh[5]

    Then you can make your conditional statement with this 2 variables.

    #6475 quote
    Penny Cohen
    Participant
    New

    Thank you Nicola

    #6555 quote
    Penny Cohen
    Participant
    New

    Thank you Nicola

    I have last question in this issue – in weekly time frame how i can find the  value of the last bar of low ?

    I mean the last weekly bar today in the system is from May 2 2016, i need to retrieve this value.

    Thanks

    Penny

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

55 Day Hi previous day


ProScreener support

New Reply
Author
Summary

This topic contains 7 replies,
has 2 voices, and was last updated by Penny Cohen
9 years, 8 months ago.

Topic Details
Forum: ProScreener support
Language: English
Started: 05/02/2016
Status: Active
Attachments: No files
Logo Logo
Loading...