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
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.
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
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]
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
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.
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