RS for VPAThis is a supporting Indicator for the Volume Price Analysis Script VPA 5.0.
Purpose
To indicate the performance of the stock compared to an Index or any other selected stock. It also provides an idea about the strength of the Reference Index as well.
Description
The indicator is an unbound oscillator moving around a zero line. If the stock is strong then the values are positive and if it is weak the values are negative. If the stock is performing better (Stronger) than the Index the indicator is positive and colored green. If the stock is weaker than the Index it is negative and is colored Red.
The background indicates the strength of the Reference Index/Stock. Bullishness/up trend of the Index/Stock is indicated by yellow colour. Short term uptrend, Mid term uptrend and Long term trends are indicated by different shades of yellow varying from light to Dark. The bearishness / down trend is indicated by blue back ground.
How it Works
The relative strength is calculated by using the formula
RS = Gain of the stock / (Gain of the Ref. Index -1)
= (Stock Price today / Stock Price (N period ago)) /
(Index Price today / Index price (N period ago)) – 1
The Index strength is calculated as below
Short term trend up = 5 ema > 22 ema
Mid Term trend up = 22 ema > 60 ema
Long term trend up = 60 ema > 130 ema
Trend down = 5 ema < 22 ema
How to use
Use this indicator to assist your Price Action Analysis using VPA 5.0. When the Price action and volume indicates Bullishness, you can check if the relative strength is also supporting (Positive and in green Territory). This adds credibility to the Price action. Also check if the index is also positive (the Back ground is yellow). This makes the Price action even stronger. Ideally both the stock and index should be strong. Many time you would find the that the stock is in green territory but the index is in blue territory. This calls for some caution in evaluating the Price Action.
When the price action is positive but the relative strength is negative then one should be cautious and wait for the relative strength to turn positive before any entry decision.
Option for the Indicator
One can select the following from the setting for the indicator
1. Index or reference stock – Default is CNX 500
2. Relative Strength Calculation period – Default is 22
3. The EMA periods for the Index/Reference stock strength calculation
Karthikmarar
VPA - 5.0 This is a upgraded version of the vpa analysis script which basically implements Volume Spread Analysis (aka Volume Price analysis). It has been rechristened as VPA 5.0 to be inline with version released for Amiboker package so that all future upgrades will go hand in hand. All most all featured of the Amibroker version has been incorporated in this version. Some important additions are as follows
1. A status window for the bar and Trend Description added. No need to plot the trend bands or additional trend Indicator any more.
2. The most important upgrade would be the addition of a Alert window which provides description of the VSA signals. It is also a log window which provides up to 10 last signals
(Credits to Quantnomad for this wonderful piece of code. This feature is an adaptation of his public code)
3. Added facility to plot EMAs / PEMAs with changable parameters
4. Added facility to plot VWAP
5. Facility to switch on and Off the VSA signals. Also tool tip provides description of the signals
6. Facility to plot Resistance and Volume Lines (Credits to @margepadu)
Hope this script will be helpful to everyone. Please do provide your feedback and suggestions for improvements
Price Wave V.1.0The Price Wave Indicator is very good add-on to the Volume wave which is an important tool in the Wyckoffian Analysis of the stocks. Along with the Volume wave it helps to understand the effort and result ratios and the consequent effect on the stocks. It has to be used in conjunction with the Volume wave and not useful on a standalone basis