3month percentage change
Forums › ProRealTime English forum › ProRealTime platform support › 3month percentage change
- This topic has 8 replies, 3 voices, and was last updated 1 year ago by JS.
-
-
10/18/2023 at 8:29 AM #22258510/18/2023 at 10:40 AM #222594
You can use the RULER to draw it between two points to know those data.
My pics show a 3-month and a 6-month difference.
I used the MONTHLY timeframe to shrink it amd make it easier, but you can use it on any timeframe.
10/18/2023 at 10:50 AM #22259810/18/2023 at 11:17 AM #222604Do you want a screener?
10/18/2023 at 11:50 AM #22260510/18/2023 at 12:49 PM #222608This is a screener:
12345N = 3myVAR = high[2] - lowmyVAR = high[max(1,N-1)] - lowPC = myVAR * 100 / high[max(1,N-1)]SCREENER[PC](PC AS "% Variation")N is the number of months.
10/18/2023 at 1:20 PM #22260910/18/2023 at 4:03 PM #222621That’s not the percentage, that’s just a ratio.
The % must be calculated on the older price. If today a price is 90 and 3 months ago it was 100, there’s been a drop of 10 points, which is 10% calculated on the starting price, while it’s (incorrectly) 11.11% if calculated on todays’s price.
Anyway, if you prefer the calculation on today’s price, there you go:
1234N = 3myVAR = high[max(1,N-1)] - lowPC = high[max(1,N-1)] * 100 / myVARSCREENER[PC](PC AS "% Variation")You can safely remove line 2 from my previous code, it’s useless as it is overridden in line 3. I just used it to make some tests.
10/19/2023 at 5:02 PM #222651Hi Sarus,
A screener based on your formula looks like this…
You can apply this screener to your lists and when you work in V12 you can add multiple columns with your criteria…
% Change1234TimeFrame(Monthly)ProChange3M=((Close-Close[3])/Close[3])*100ProChange6M=((Close-Close[6])/Close[6])*100Screener[1](ProChange3M as "%3M", ProChange6M as "%6M") -
AuthorPosts
Find exclusive trading pro-tools on