Please help me how can write code in proreal time in this condition
condition- 52 week high volume in any of days in last 30 days
Quantshare code for above condition
a= (volume ==hhv(volume,240))
b= hhv(a,30)
filter=b
Thanks
Condition to find if a new highest high Volume of the last 240 days has occurred in the last 30 days:
new52WhighVol = Volume>highest[240](volume)[1]
filter = summation[30](new52WhighVol)>0
Not tested, please give feedback!
Nicolas,
thanks for your prompt reply ….I am not getting result…i added some more conditions …please test from your side..Looks some error in the code
sample screener code
new52WhighVol = Volume>highest[240](volume)[1]
c3 = summation[30](new52WhighVol)>0
hh = highest[52](high)
c = Close>=0.85*hh
c1= CLOSE > 10 AND AVERAGE[21](VOLUME) > 200000
EMA1 = average[20](close)
EMA2 = average[50](close)
c2 = Close>EMA1 AND Close>EMA2 AND EMA1>EMA2
SCREENER(c3 and c and c2 and c1)
ahaha! did not test the code myself, but:
firstly:
> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
Then, (and I’m sure I’m pointing this error at least 3 times at week 🙂 ) , SCREENER instruction need conditions in square brackets, not parenthesis.
sorry,Will use insert button in the future
I am having trouble working out the difference between:
new52WhighVol = Volume>highest[240](volume)[1]
and
new52WhighVol = Volume>highest[240](volume[1])
Please help??
Not sure if this is it but screener works for me
new52WhighVol = Volume>highest[240](volume)[1]
c1 = new52WhighVol
c2 = summation[30](new52WhighVol)>0
SCREENER[c1 AND c2 ]
I am having trouble working out the difference between: new52WhighVol = Volume>highest[240](volume)[1] and new52WhighVol = Volume>highest[240](volume[1]) Please help??
I tried with HIGH and I couldn’t spot any difference:
GRAPH highest[240](high)[1]
GRAPH highest[240](high[1])
Roberto