it’s still giving syntax error
c1 = (100 * (Close – Close[1]) / Close[1]) >=8
c2 = Volume >3000
c3 = (100 * Volume / Average[100] Volume) >=300
x = c1 and c2 and c3
SCREENER[x]
It’s still giving error on average volume row:
c1 = (100 * (Close – Close[1]) / Close[1]) >=8
c2 = Volume >3000
c3 = (100 * Volume / Average[100] Volume) >=300
x = c1 and c2 and c3
SCREENER[x]
You did not write the way I did, there must be parentheses before AND after VOLUME.
You dropped both.
It’s working perfect now. Thank you so much.
I am trying to create one Anticipation Bearish Scan with following condition – c>c1 and o>c1 and c1.1 and c>1 and minv3.1>=100000 and (h-c)>2*abs(c-o) and (C-L)/(H-L)<.4.
Could you please check if my code below is fine? I am getting error at following line - c4 = High = Maximum High[9]
c1 = Close>Close[1]
c2 = Open > Close[1]
c3 = Close < High
c4 = High = Maximum High[9]
c5 = Close/Close[10] >1.1
c6 = Close > 1
c7 = Lowest[3](Volume) >= 100000
c8 = (High-Close) >2*abs(Close-Open)
c9 = (Close-Low)/(High-Low)<.4
x = c1 and c2 and c3 and c4 and c5 and c6 and c7 and c8 and c9
SCREENER[x]
You have to study the PRT manual and read examples throughout the forum for the correct keywords.
Errors:
- you are combining two lines, c4 snd c1
- as to c4, Maximum is not a valid keyword, replace it with HIGHEST as highest[9](high).
Thanks a lot. It’s working fine now:
c1 = Close>Close[1]
c2 = Open > Close[1]
c3 = Close < High
c4 = highest[9](high)
c5 = Close/Close[10] >1.1
c6 = Close > .50
c7 = Lowest[3](Volume) >= 100000
c8 = (High-Close) >2*abs(Close-Open)
c9 = (Close-Low)/(High-Low)<.4
x = c1 and c2 and c3 and c4 and c5 and c6 and c7 and c8 and c9
SCREENER[x]
How could I add following condition –
Price % change Today between 1 to -1%
I assume you mean today compared to yesterday:
Timeframe(Daily)
Difference = close / close[1] //Difference is the %
It may be compared to yesterday or past average 7/65 >= 1.05 days as per complete requirement. Here is the complete scan criteria:
c1 = average[7]/average[65] >=1.05
c2 = Lowest[3](Volume) >= 100000
Price % change Today between 1 to -1%
Compare DIFFERENCE with that percentages.
I have used the following code and it’s working fine. thanks.
c1 = average[7]/average[65] >=1.05
c2 = Lowest[3](Volume) >= 100000
Timeframe(Daily)
Difference = 1 > -0.01
c3 = close > .50
x = c1 and c2 and c3 and Difference
SCREENER[x]
I did not use DIFFERENCE in that way, comparing if 1 is greater than -0.01 will always be TRUE no matter what.
It seems you need to get some more kniowledge about programming in general, which is impossible to do post by post.
I can help you only on specific trading questions related to strategies, screeners and indicators.
Learning why and how to use conditional constructs, iterations, relational operators and parentheses is beyond our scope, sorry.
that’s fine. you have helped me so much. Thank you.
The following formula identify the today’s range:
MyRange = Range
Calcul = (MyRange / MyRange[1] – 1) * 100
How can I enhance this “Range” function to check if Price % change Today between 1 to -1%, select only those records?
Thanks for your help
There you go:
MyRange = Range
c1 = close >= (close[1] * 0.99)
c2 = close <= (close[1] * 1.01)
Calcul = (MyRange / MyRange[1] – 1) * 100
then add C1 AND C2 to your current conditions.