250 Day High Indicator
- This topic has 6 replies, 2 voices, and was last updated 7 years ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
Forums › ProRealTime English forum › ProBuilder support › 250 Day High Indicator
Wondering if anyone could help out with code for an indicator that tells you the number of bars between 250 day highs?
Many thanks
Hi Nicolas
Yes, highest high or highest close.
Many thanks
This is the code, change “price” variable with either Close or High or anything else 🙂
|
1 2 3 4 5 6 7 8 9 10 11 |
price = high hh = highest[250](price) if hh<>hh[1] then count=0 else count=count+1 endif return count |
That’s great Nicolas. Thank you very much.
Hi Nicolas,
Any idea why Prorealtime won’t let me use the indicator as my sorting criteria in a screener? It just puts 255 for every security.
Many thanks