3994 vizualizações
An interesting implementation of mine to measure an asset changes based on asset price velocity and volume velocity. The indicator acts as asset value calculator. Long and Short.
==Points System Rules==
UPTRENDING
If Current Close is higher than previous Close and Current Volume is bigger than previous Volume: Adds Close Points and Volume Points
Otherwise check
If Current Close is higher than previous Close: Adds Only Close Points
DOWNTRENDING
If Current Close is lower than previous Close and Current Volume is bigger than previous Volume: Reduces Close Points and Volume Points
Otherwise check
If Current Close is lower than previous Close: Reduces Only Close Points
==Plotting==
Result of the values are summed up to a histogram.
Obviously on increasing prices and volume the histogram will be above zero line and on the Bullish side (green color), otherwise, on the Bearish side (red color).
You can't cheat the price movement, it's just what it is.
Optional to smooth it by EMA (set to true by default).
Like if you Like and Enjoy!
Follow for upcoming indicators.
==Points System Rules==
UPTRENDING
If Current Close is higher than previous Close and Current Volume is bigger than previous Volume: Adds Close Points and Volume Points
Otherwise check
If Current Close is higher than previous Close: Adds Only Close Points
DOWNTRENDING
If Current Close is lower than previous Close and Current Volume is bigger than previous Volume: Reduces Close Points and Volume Points
Otherwise check
If Current Close is lower than previous Close: Reduces Only Close Points
==Plotting==
Result of the values are summed up to a histogram.
Obviously on increasing prices and volume the histogram will be above zero line and on the Bullish side (green color), otherwise, on the Bearish side (red color).
You can't cheat the price movement, it's just what it is.
Optional to smooth it by EMA (set to true by default).
Like if you Like and Enjoy!
Follow for upcoming indicators.
Notas de Lançamento:
Updated description.
Notas de Lançamento:
Added volume percentage factor - higher the value the less volume will affect histogram (0- normal, 100 - disable volume effect)
Fixed bug when high volume would cause an histogram peek.
Fixed bug when high volume would cause an histogram peek.
Notas de Lançamento:
Bug fix for lower histogram value.
Appreciation of my work: https://paypal.me/drorriov
Comentários
but i wonder why you needed to use arrays here.
If so, downtrend means current close is below previous candle close and indicator volume bar closes below the previous indicator volume bar?
A bit confused by instructions and some clarification would be appreciated
Hey there, I refer to volume as the volume of each candle. Personally, I don't call it an indicator :)
You are almost correct. Just In downtrend we want to see volume increasing (you wrote decreasing) to detect selling pressure.
If current candle close is above previous candle close: It increases indicator by a factor of current close divided by previous close.
if current candle close is below previous candle close: it decreases indicator by factor of previous close divided by current close.
Volume can also affect the indicator, for example if we find the volume is increasing (current candle volume is bigger than previous candle volume) we also increase or decrease the indicator depending on what stated previously about current close and previous close.
Try to look at the code where it says: "//Positive" for uptrend and "//Negative" for downtrend calculations.
Does the red bars increasing in length mean that volume is increasing just in terms of selling pressure? Or does the red bar increasing in length mean that volume is decreasing?
Yes, red (below 0) usually indicates downtrend of the asset and the lower it is the more deep the downtrend is. When indicators goes below zero (red) it means asset prices are declining and volume can helps boost the indicator decline or not, if price is declining and volume is also dropping, in that condition, it won't take the volume into calculations, but just calculate the close prices ignoring the volume.