This script explains how an Oscillator along with Moving Average & Deviation can be used to catch "Reversal Points (Highest points above Overbought & Lowest points below Oversold)".
What is an Oscillator:-
An oscillator is a technical analysis tool that constructs high and low bands between two extreme values and then builds a trend indicator that fluctuates within these bounds. Traders use the trend indicator to discover short-term overbought or oversold conditions. An oscillator with MA & Deviation is used along with minor calculations (maths) in this Oscillator for generating Long (Green Triangles) and Short signals (Red Triangles).
Moving Average (MA):-
A moving average (MA) is used in technical analysis, used to help smooth out price data by creating a constantly updated average price. A rising moving average indicates that the security is in an uptrend, while a declining moving average indicates a downtrend.
Standard Deviation:-
It is a statistical measure of the amount of variation or dispersion in a set of values. It is used to measure the volatility of an asset's price. It is used to measure how much the price varies from its average price over a certain period of time. A higher standard deviation indicates that the prices are more spread out from the mean, suggesting higher volatility, while a lower standard deviation indicates more stable prices.
Calculation of Standard Deviation
- Find the average value of the data set.
- Find the difference between each data point and the mean.
- Square each of these differences.
- Find the average of the squared differences.
- Take the square root of the variance.
Logic of this indicator:-
This indicator calculates the average price using the formula (high + low + close * 2)/4.
Moving Average & its standard deviation is calculated over a period of 5.
It calculates an oscillator value using a special formula which includes MA & Deviation with Price Action over a period of 5. after that :-
- It determines the highest points for Bearish Red Triangles (Bearish Reversal) and
- It also determines the lowest points for Bullish Green Triangle (Bullish Reversal).
These Triangle signals are based on the calculations of the oscillator values and their MAs & Deviation, and they aim to identify potential reversal points in the price action, when goes above (Bearish Reversal) and when goes below (Bullish Reversal). An oscillator that fluctuates between zero and 100 makes it easy to use for many traders. Its easy to identify extremes because an Oscillator is range-bound.
"Green Triangles" signal in is Long Signal and also exit Short signal. (Bullish Entry/Bearish Exit)
"Red Triangles" signal is Short Signal and also exit Long signal. (Bearish Entry/Bullish Exit)
Caution:-
But remember that Oscillators works best in range bound market and is less trustworthy in trending markets. (caution)
A new trader need to be cautious because during strong trends in the market/security, An oscillator may remain in overbought or oversold condition for extended periods.
Chart Timeframe:-
This Indicator works on all timeframes.
Traders should set stop loss and take profit levels as per risk reward ratio.
Note:-
Like other technical indicators, This indicator also is not a holy grail. It can only assist you in building a good strategy. You can only succeed with proper position sizing, risk management and following correct trading Psychology (No overtrade, No greed, No revenge trade etc).
THIS INDICATOR IS FOR EDUCATIONAL PURPOSE AND PAPER TRADING ONLY. YOU MAY PAPER TRADE TO GAIN CONFIDENCE AND BUILD FURTHER ON THESE. PLEASE CONSULT YOUR FINANCIAL ADVISOR BEFORE INVESTING. WE ARE NOT SEBI REGISTERED.
Hope you all like it
happy learning.