Can anyone explain what this message actually means. I’m calling an indicator for its current value from a screener (0, 1 or -1). Then I want to list which securities have an indicator value of 1 or -1.
I appreciate it is not always possible to return a line number but a better description with examples of what would produce this error would be helpful.
If you are looking about Highest or Lowest values in the past than more 254 bars, this code will certainly help you :
1
2
3
4
5
6
7
8
9
10
11
oncepreviousbar=0
oncehh=0
oncell=low
if(barindex>previousbar)then
previousbar=barindex
hh=MAX(hh[1],high)
ll=MIN(ll[1],low)
endif
RETURNhh,ll
This is an indicator to store the Highest and Lowest values from the beginning of your chart. In a screener you should call “hh” and “ll” to make conditionnal test for what you are looking for.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue