Introducing the Price Moving Average Ratio & Percentile indicator
A simple indicator which calculates :
The ratio between a chosen source price and a user defined moving average ( PMAR ) or
The percentile of the ratio between the chosen source price and a user defined moving average over an adjustable lookback period ( PMARP )
It then displays either the PMAR or PMARP as a line plot with optional user defined signal moving average. It also plots an optional Visual Alert Level line and background signal bars.
Indicator Settings
Main Properties :
Source Price .. choice of price values or external value from another indicator ( default [ close ] )
Line Plot Type .. choice between PMAR or PMARP ( default PMAR )
Price Moving Average Ratio Settings :
PMAR Length ..The time period to be used in calculating the Moving Average for the Price Moving Average Ratio and the PMAR component of the PMARP. ( default [ 140 ] )
PMAR Type ..The type of Moving Average which creates the MA for the Price Moving Average Ratio and the PMAR component of the PMARP. ( default [ VWMA ] )
Price Moving Average Ratio Percentile Settings :
PMARP Lookback .. The lookback period to be used in calculating the Price Moving Average Ratio Percentile.
Line Plot Color Settings :
Gives a choice between a user defined solid color, and a choice of "Blue Green Red", or "Blue Red" spectrum palettes.
Signal Moving Average Settings :
Signal MA Length ..The time period to be used in calculating the Signal Moving Average for the Line Plot ( default [ 20 ] )
Signal MA Type ..The type of Moving Average which creates the Signal Moving Average for the Line Plot ( default [ SMA ] )
Signal Moving Average Color Settings :
Gives a choice between a user defined solid color, and a choice of "Blue Green Red", or "Blue Red" spectrum palettes.
Visual Alert Level Settings :
Alert level .. Level which activates the background signal bars ( default [ 0.7 ] )
Typical Use case for the Price Moving Average Ratio
Traders and Technical Analysts will typically use the PMAR as an accumulation signal generator. To do this....
Set a level below 1 where it has been historically profitable to accumulate the asset in question on the chosen timeframe.
Typical Use case for the Price Moving Average Ratio Percentile
Traders and Technical Analysts will look at the PMARP to judge how far away current PA is away from the defined MA based on a statistical measure of the lookback period in a percentile format. Traders and Technical Analysts will typically use the PMAR as an accumulation signal generator. To do this...
Set a low level where it has been historically profitable to accumulate the asset in question on the chosen timeframe.
Note : The default settings are specifically set up for use on the daily timeframe with a MA of 140 equating (approximately) to the 20 week moving average.
This is not a stand alone indicator and should be used in combination with volatility and momentum indicators for a more effective trading edge.
Sürüm Notları
⋅
Updated to Pinescript version 5 Improved calculation method which gives sensible early historical results sooner. Added separate high and low visual alert levels for both PMAR and PMARP which are chosen and displayed automatically with indicator selection. Added new plot for highest historical PMAR.
Sürüm Notları
⋅
Improved visualization of PMAR function with added centerline and historical low plots
Sürüm Notları
⋅
Code tidy up
Sürüm Notları
⋅
Added signal bar transparency user adjustable setting
the pmar colors like red and green, what do they mean? sometimes pmar is below 1 but its red
The_Caretaker
⋅
@muddy7, I have switched up the color change logic to be more intuitive, PMAR will give far lower readings than PMARP which was messing up my color selection logic.
Dreadlocks_eth
⋅
Beautiful, as always. Adding to the tool bag.
Thanks @The_Caretaker Much love!
andy5868
⋅
Great indicator, my only suggestion would also be to have the option for a top line to the indicator for overbought conditions. Nice job!
The_Caretaker
⋅
@andy5868, added high and low visual alerts, hope that helps.
TraderHalai
⋅
Nice one caretaker, big fan of your work
tildeath
⋅
Your indicators are amazing! Thank you for sharing them! About this one being default for the daily, what settings would you use to maximize it efficacy for use on a 1h time frame?
RingTheAlarm
⋅
Nice work Mate!
saeedmech
⋅
And I think there is an scaling issue for the PMAR. I need to manually fix the scale in order to see the chart!
saeedmech
⋅
Thanks for this nice Indicator. It would have been great if it also had reverse values for the price action. That makes it my ultimate dream Indicator!