Hello,
I am looking for a screener that will detect the pivot point monthly r3 and s3 (support and resistance)
These two pivot points being very psychological, offer very good profitability in integration and rebound in the first pass .
The purpose of the screener would be to detect when the price is 15% or less of the pivot point either upwards or downwards.
example:
Current price: 10 €
R3: 11.50 €
Detecting activated (15%)
If someone could help me I would be grateful.
Matt
Please do not double post! Choose the language you prefer and use that one only. Thank you.
Do you prefer keeping the french or the english post?
That code will detect proximity of 5% of monthly R3 or S3 pivot points:
Percent = 1.5 //percentage %
If Month<>Month[1] then
monthlyHigh = Highest[max(1,BarIndex - lastMonthBarIndex)](High)[1]
monthlyLow = Lowest[max(1,BarIndex - lastMonthBarIndex)](Low)[1]
lastMonthBarIndex = BarIndex
monthlyPivot = (monthlyHigh + monthlyLow + Close[1]) / 3
monthlyR1 = 2*monthlyPivot - monthlyLow
monthlyS1 = 2*monthlyPivot - monthlyHigh
//monthlyR2 = monthlyPivot + (monthlyHigh - monthlyLow)
//monthlyS2 = monthlyPivot - (monthlyHigh - monthlyLow)
monthlyR3 = monthlyR1 + (monthlyHigh - monthlyLow)
monthlyS3 = monthlyS1 - (monthlyHigh - monthlyLow)
Endif
data = min(abs(close-monthlyR3),abs(close-monthlys3))
c1 = (data/close*100)<=Percent/100
screener [c1](data/close*100)