[co.n.g] - Simple CVD over MAThis Single Volume Delta (SVD), respectively Cumulative Volume Delta (CVD) is a really simple script computing the difference of the volume of the actual in comparison the the volume of the "Calculation Bars Threshold", calculated by smoothing through a simple moving average - the "CVD MA Smoothing".
Therefore, if the "Calculation Bars Threshold" and the "CVD MA Smoothing" are set to 1, the script will display the difference of the actual compared to the previous candle;
furthermore, if the "Calculation Bars Threshold" is set to 3 and the "CVD MA Smoothing" is set to 14, then the indicator will display the the summed difference of the past 3 values, smoothed over a period of 14 candles.
This indicator may also be set to a different time frame, allowing multi time frame analysis; f.e. if you're going to set a lower time frame than the actual, the deltas of the lower time frame will be displayed and will be showing the volume trend of the lower time frame; if you're going to set a higher time frame, this is respectively working as described.
To understand volume and price action, it is - imho - especially helpful to display the volume of higher time frames to visualize the "Where the heck am I and what are the big players doing?"
This indicator is coloring the histogram in green as positive, red as negative and gray as indecisive CVD.
Hopefully, this will be helpful in your VSA and your trading decisions.
Cheers,
Constantine
p.s.: I am also working on a far more sophisticated version of SVD/CVD, so stay tuned!
Trend
Simple Hurst Exponent [QuantNomad]This is a simplified version of the Hurst Exponent indicator.
In the meantime, I'm working on the full version. It's computationally intensive, so it's a challenge to squeeze it to PineScript limits. It will require some time to optimize it, so I decided to publish a simplified version for now.
The Hurst exponent is used as a measure of long-term memory of time series. It relates to the autocorrelations of the time series, and the rate at which these decrease as the lag between pairs of values increases
The Hurst exponent is referred to as the "index of dependence" or "index of long-range dependence". It quantifies the relative tendency of a time series either to regress strongly to the mean or to cluster in a direction.
In short depend on value you can spot trending / reversing market.
Values 0.5 to 1 - market trending
Values 0 to 0.5 - market tend to mean revert
####################
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
TradiKator 01 MATradiKator 01 MA is the a visual indicator that plots market capitalized cost following moving average (SMA and EMA) , based on LEI & LoneCapital defined metrology method and includes the TradiKator creative idea to help visualize the Price action in relation to the market capitalized cost.
Q&A
Q1.Why Moving Average ?
As LEI & LoneCapital explained moving average is indicating market capitalized cost moving.
If you are a trend following trader, you should participate in upside while sidestepping downside.
You need a indicator that help you to make money while prices are rising, then exit when they are falling.
A classical approach is the moving average strategy.
Nevertheless as efficient-market hypothesis (EMH) states that asset prices will reflect all available information.
The smart trader should focus on price moving i.s.o. reading all available information which is not practical.
Q2.What is Moving Average ?
As the name implies, the moving average is an average of a price's movement over time.
The simple moving average (SMA) is a just simple average over time.
The exponential moving average (EMA) on the other hand gives greater weight to more recent price action.
Q2.What are the Period Moving Average based on ?
The default Moving Average Period setting are based on LEI & LoneCapital defined Short term 20 (days in month), Mid term 60 (days in quarter), Long term 120 (days in half year).
We use 3 colors to represent these 3 periods. Black as Short term , Red as Mid term , Blue as Long term
You will see same color scheme in our indicators.
Of cause you can change the default setting to switch to your favorite Moving Average Period. How to do it is listed in setting.
Function and Setting
1.MA period setting
"Adjust All MA Period" --> Users can increase or decrease all 3 period in the same time. For example, input "-1" , you will have 3 periods as "19","59","119"
"Fix the M_MA=3*S_MA,L_MA = 6*S_MA (overwrite below 2 settings)" --> It will fix the Mid period as 3 times of short, Long period as 6 times of short. Meanwhile the separated setting for Mid and long will be ignored.
"3 period separated settings" --> Please disable the "fix ..." setting for individual 3 periods
"Source" --> Allow user switch used source from "close" to any other data source like"hl2","hlc3" and etc.
2.Deduction price Setting
"Show deduction price label (Pls disable the angle)" --> Will show 3 deduction price. Please disable the "Show Angle ..." before enable this switch.
"Arrow on Slope (Deduction vs Today Which is higher)" --> Will show 3 arrows aim to the higher price between Deduction and Today.
Also the dashed slope line will change to solid line. It helps when Deduction is very close to Today
3.Angle for slope line ---> Killer feature
"Show Angle ..." --> As LEI & LoneCapital explained current trend can be described as "o'clock direction wise" .
By measuring current trend's "angle" we can has a fuzzy image about current trend.
Note: In fact there is real 12 o'clock or 90 degree, therefore we define our "90 degree" and all called value of "angle" is based on our defined metric.
Also everyone has different opinion about the start point of current trend.
We choose the 3 MA periods as the start point to measure the angles.
There are 3 mod prepared for the angle measure metrology.
Abs % --> "90 deg" = increase 100% in 20 days. It is the most robust mod.
1Y rel % --> "90 deg" = increase 50% of 1Y Absolute price range in 20 days. It can't be used in case of minus price.(like CL future in 2020 Mar)
1Y rel log --> "90 deg" = increase 50% of 1Y log scaled price range in 20 days. Also it can't be used in case of minus price.
4.Deduction price trail and Background color
"Show Deduction price trail" --> Enable it to show the 3 Deduction prices' trail.
"Show trail in the coming days" --> Enable : the prices' trail is showed in the coming days. Disable : the prices' trail is showed on the MA period historical days.
"MA long term Trend Background Color" --> Similar to the "fill EMA with color", fill the Background with color which represent the EMA trend.
5.High volume and Show gap
"High volume label" --> Highlight the high volume with label.
We define the volume which is higher than percentile value of 3 MA historical volume statistical metrics.
So the black label means this volume is higher than 97 percentile value of 20 days' volume. Red 60 days and Blue 120 days.
The percentile can be set by user. Also the MA period can be adjusted by user.
"Show gap" --> Highlight the gap between close and next day open.
Note: We don't measure whether the gap is closed or not.
6.Forecast SMA ---> Killer feature
As you noticed the dashed line after today, it is our killer feature: forecast SMA.
Green Dashed line: The close price according to the assumption user input.
3 colors' Dashed lines: The SMA based on the Green Dashed line's close price.
"Days to plot forecast SMA (Max=14, SwitchOff=0)" --> Please decide how many days' SMA user would like to forecast.
"Mod1 Assumed chg ratio ‰ in the every days (10=1%)" --> Mod1: User should give the change rate in the coming every days. For example, user's assumption is that price will increase 10% everyday.
"Mod2 Assumed chg % in the ?th day (1=1%)(Pls set Mod1 to 0)" --> Mod2: User should give the change rate in the future ?th days. For example, user's assumption is that price will increase 30% in the 3rd day.
"Mod2 Need ? day to reach the chg % (tomorrow = 1 day)" --> Mod2: User should give the future ?th days.
note: While using Mod2, user has to disable Mod1 by set Mod1 to 0 (default setting)
TradiKator is Traders' indicator.
Please visit TraiKator for more free script.
We also support Chinese.
Moving Regression Prediction BandsIntroducing the Moving Regression Prediction Bands indicator.
Here I aimed to combine the principles of traditional band indicators (such as Bollinger Bands), regression channel and outlier detection methods. Its upper and lower bands define an interval in which the current price was expected to fall with a prescribed probability, as predicted by the previous-step result of the local polynomial regression (for the original Moving Regression script, see link below).
Algorithm
1. At every time step, the script performs local polynomial regression of the sample data within the lookback window specified by the Length input parameter.
2. The fitted polynomial is used to construct the Moving Regression time series as well as to extrapolate data, that is, to predict the next data point ( MRPrediction ).
3. The accuracy of local interpolation is estimated by means of the root-mean-square error ( RMSE ), that is, the deviation between the fitted polynomial and the observed values.
4. The MRPrediction and RMSE values calculated for the previous bar are then used to build the upper and lower bands , which I define as follows:
Upper Band = MRPrediction_prev + Multiplier *( RMSE_prev )
Lower Band = MRPrediction_prev - Multiplier *( RMSE_prev )
Here the Multiplier is a user-defined parameter that should be interpreted as a quantile in the standard normal distribution (the default value of 2.0 roughly corresponds to the 95% prediction interval).
To visualize the central line , the script offers the following options:
Previous-Period MR Prediction: MRPrediction_prev time series from the above equation.
MR: Conventional Moving Regression time series.
Ribbon: “Previous-Period MR Prediction” and “MR” curves plotted together and colored according to their relative value (green if MR > Previous MR Prediction; red otherwise).
Usage
My original idea was to use the band breakouts as potential trading signals. For example, the price crossing above the upper band is a bullish signal , being a potential sign that price is gaining momentum and is out of a previously predicted trend. The exit signal could be the crossing under the lower band or under the central line.
However, be aware that it is an experimental indicator, so you might fin some better strategies.
Feel free to play around!
Volume Treshold [UTS]Volume Treshold
Helps to identify periods of high and low volume.
This information can be used to evaluate market trends and to determine trade entries and exits.
Note: this only works on charts with volume information available
Treshold line changes color if a candle is more than x percent of the average volume of the last n candles
Treshold line changes color back to gray again if volume falls below the treshold
A lookback period defines how many bars should be taken into consideration
% that causes it to be triggered settable in decimals up to 3.5 where 1.0 equals to 100%
Colour to change the volume bar to can be set via menu
Ability to show the treshold as visualized drawing over the histogram as line or area
Ability to choose smoothing method for treshold calculation (SMA | EMA)
An optional Simple Moving Average of the volume data can be added to the chart.
Donchian Zig-Zag [LuxAlgo]The following indicator returns a line bouncing of the extremities of a Donchian channel, with the aim of replicating a "zig-zag" indicator. The indicator can both be lagging or lagging depending on the settings user uses.
Various extended lines are displayed in order to see if the peaks and troughs made by the Donchian zig-zag can act as potential support/resistance lines.
User Settings
Length : Period of the Donchian channel indicator, higher values will return fewer changes of directions from the zig-zag line
Bounce Speed : Determine the speed of bounces made by the zig-zag line, with higher values making the zig-zag line converge faster toward the extremities of the Donchian channel.
Gradient : Determine whether to use a gradient to color the area between each Donchian channel extremities, "On" by default.
Transparency : Transparency of the area between each Donchian channel extremities.
Usage
It is clear that this is not a very common indicator to see, as such usages can be limited and very hypothetical. Nonetheless, when a bounce speed value of 1 is used, the zig-zag line will have the tendency to lag behind the price, and as such can provides crosses with the prices which can provide potential entries.
The advantage of this approach against most indicators relying on crosses with the price is that the linear nature of the indicator allows avoiding retracements, thus potentially holding a position for the entirety of the trend.
Altho this indicator would not necessarily be the most adapted to this kind of usage.
When using a bounce speed superior to 1, we can see the predictive aspects of the indicator:
We can link the peaks/troughs made by the zig-zag with the precedent ones made to get potential support and resistance lines, while such a method is not necessarily accurate it still allows for an additional to interpret the indicator.
Conclusions
We presented an indicator aiming to replicate the behaviour of a zig-zag indicator. While somehow experimental, it has the benefits of being innovative and might inspire users in one way or another.
[L] MTF SSL ChannelThis indicator plots SSL Channel, ideally from an higher time frame. I couldn't find any SSL Channel script with this feature so I made one, hope that helps others.
Features:
No Repainting
The script does not repaint and follows Pinescripters' guidelines.
Other Time Frame
It is possible to select another (higher) time frame. If a lower one is selected the script warns to change it, since calling a lower time frame leads to unreliable data.
Alerts
It is possible to create alerts for trend changes (cross Up or Down).
It also shows simple labels to see trend status at glance.
Put Call OscillatorThis is a volume-based oscillator used for detecting market sentiment.
This plots two moving averages of the CBOE S&P500 PCR (put call ratio), and a histogram to measure the distance between them. The histogram will generate signals of green (bullish) or red (bearish), depending on whether put volume is decreasing or increasing.
The moving averages are adjustable. They are set at 4 and 16 by default. Increasing the moving averages will generate less signals, while decreasing them will generate more signals.
The background will change color from red to green depending on whether the PCR is above or below 1.
I used capriole_charles script "Put/Call Ratio (PCR)" to help me build this.
New Map For TradersUsing previous principles, This setup plots 60 moving averages on the chart. The averages are colored using a normalized oscillation technique (FFT).
To achieve the same display as above, put the same indicator twice and set the 'osx' parameter of one to 0 and the other to 2.
Feel free to play with the 'mul' parameter in ranges between 1-90. Most useful ranges will be 4-16 in my opinion.
Leave me a message if you'd like to explore the behaviors of the fractal dimension further ;)
ZenTrdr TRENDLong trend starts with a close higher than the previous local high. Short trend, of course, is the contrary. This indicator shows the trend on the Daily, H4 and H1.
Levels are the validation levels of the current trend on the specific time frame.
Bars are colored according to the H4/H1 trend showing the same direction.
Trend MagicTrend Magic is originally a MT platform (MetaTrader) indicator and it can be used with any forex trading systems / strategies for additional confirmation of trading entries or exits. Converted the MT platform code to TradingView Pine version 4. Also you can use Multiple Time Frame.
It also works well with Crypto and Stock Markets.
Trend Magic consists of two main calculation parts as momentum and volatility:
First part is ATR based (like ATR Trailing Stop) logic, second part is all about CCI which also determines the color of Trend Magic.
Blue: when CCI is positive
Red: when CCI is negative
Also added alert condition regarding price crosses :
when LOW CrossesAbove TM
and HIGH CrossesBelow TM
Enjoy
Kıvanç Özbilgiç
LordPepe Stochastic SignalsThis is the Lord Pepe. Howdy. Basic buy/sell indicator to accumulate along a downtrend and release your stack during the uptrend and oversold levels of the stochastic. The buys should be used to stack, and sells indicate levels of profit taking, they do not signal a long term reversal, only < 25% of stack should be released on "OB" signals.
OB - overbought (sell)
OS - oversold (buy)
Ravih Pro Trend BreakoutThis is a Trend Breakout Strategy on “DAILY Time-frame”
This Strategy is designed keeping in mind with Medium to Long Term traders. The strategy works only on Daily Time-frame and on Closing Price.
The concept here is to identify assets with potential change in trend. Primary focus is to position for the big move. There are times... trying to catch every trend, many of which can be unprofitable especially in side-way market. However, the primary purpose of this strategy is to catch all the major trend movements, which are much more profitable than minor market losses in all the side-way market.
I’ve simplified it to make it user-friendly.
How to use?
Set it to Daily Time-frame.
Buy, Take Profit 1,2,3 and Exit signals are included on chart based on the current Trend direction. The system shows an Exit signal if the system’s exit conditions are met. It works only on Daily Time-frame and on Closing Price.
Dark Blue Up Triangle denotes Buy at the Closing Price. Entry Price is Closing Price or with + or – 2% tolerance of the Closing Price for the following market day.
Purple Down Triangle denotes Exit to close any remaining position to free up capital.
Little Green Up Triangles denote the Bulls are in Control and Overpowering the Bears and represents minor Buying opportunities with strong probability of continuing up-moves.
Setting Up Alerts
The user has the option to Setup Alerts for all chart signals that is…
For Buy, for Exit, for Take Profit 1 set at 24%, for Take Profit 2 set at 48% and for Take Profit 3 set at 72%
The user also has the option to adjust the Take Profit as per their desire. However, the predetermined Take Profit set for this strategy does work reasonably well.
Remember...
This strategy is only built for stocks. It is Not for Indices neither for any other financial instruments.
No SHORT signals in this strategy.
Statistical and Financial MetricsGood morning traders!
This time I want to share with you a little script that, thanks to the use of arrays, allows you to have interesting statistical and financial insights taken from the symbol on chart and compared to those of another symbol you desire (in this case the metrics taken from the perpetual future ETHUSDT are compared to those taken from the perpetual future BTCUSDT, used as a proxy for the direction of cryptocurrency market)
By enabling "prevent repainting", the data retrieved from the compared symbol won't be on real time but they will static since they will belong to the previous closed candle
Here are the metrics you can have by storing data from a variable period of candles (by default 51):
✓ Variance (of the symbol on chart in GREEN; of the compared symbol in WHITE)
✓ Standard Deviation (of the symbol on chart in OLIVE; of the compared symbol in SILVER)
✓ Yelds (of the symbol on chart in LIME; of the compared symbol in GRAY) → yelds are referred to the previous close, so they would be calculated as the the difference between the current close and the previous one all divided by the previous close
✓ Covariance of the two datasets (in BLUE)
✓ Correlation coefficient of the two datasets (in AQUA)
✓ β (in RED) → this insight is calculated in three alternative ways for educational purpose (don't worry, the output would be the same).
WHAT IS BETA (β)?
The BETA of an asset can be interpretated as the representation (in relative terms) of the systematic risk of an asset: in other terms, it allows you to understand how big is the risk (not eliminable with portfolio diversification) of an asset based on the volatilty of its yelds.
We say that this representation is made in relative terms since it is expressed according to the market portfolio: this portfolio is hypothetically the portfolio which maximizes the diversification effects in order to kill all the specific risk of that portfolio; in this way the standard deviation calculated from the yelds of this portfolio will represent just the not-eliminable risk (the systematic risk), without including the eliminable risk (the specific risk).
The BETA of an asset is calculated as the volatilty of this asset around the volatilty of the market portfolio: being more precise, it is the covariance between the yelds of the current asset and those of the market portfolio all divided by the variance of the yelds of market portfolio.
Covariance is calculated as the product between correlation coefficient, standard deviation of the first dataset and standard deviation of the second asset.
So, as the correlation coefficient and the standard deviation of the yelds of our asset increase (it means that the yelds of our asset are very similiar to those of th market portfolio in terms of sign and intensity and that the volatility of these yelds is quite high), the value of BETA increases as well
According to the Capital Asset Pricing Model (CAPM) promoted by William Sharpe (the guy of the "Sharpe Ratio") and Harry Markowitz, in efficient markets the yeld of an asset can be calculated as the sum between the risk-free interest rate and the risk premium. The risk premium of the specific asset would be the risk premium of the market portfolio multiplied with the value of beta. It is simple: if the volatility of the yelds of an asset around the yelds of market protfolio are particularly high, investors would ask for a higher risk premium that would be translated in a higher yeld.
In this way the expected yeld of an asset would be calculated from the linear expression of the "Security Market Line": r_i = r_f + β*(r_m-r_f)
where:
r_i = expected yeld of the asset
r_f = risk free interest rate
β = beta
r_m = yeld of market portfolio
I know that considering Bitcoin as a proxy of the market portfolio involved in the calculation of Beta would be an inaccuracy since it doesn't have the property of maximum diversification (since it is a single asset), but there's no doubt that it's tying the prices of altcoins (upward and downward) thanks to the relevance of its dominance in the capitalization of cryptocurrency market. So, in the lack of a good index of cryptocurrencies (as the FTSE MIB for the italian stock market), and as long the dominance of Bitcoin will persist with this intensity, we can use Bitcoin as a proxy of the market portfolio
Rainbow Trend IndicatorThis is an indicator based on the MA rainbow concept. It is possible to choose between 15 or 20 MA's and if all 15 MA's is picked, the calculation will be calculated on 15 MA's and if 20 is picked the calculation is calculated on 20 MA's. The indicator will then be a line which is assigned a value from the calculation based on the MA's. If the line is above the dashed zero line, meaning the line's last value is a positive value, the price is in a uptrend and if the line is below the dashed zero line, meaning the line's last value is a negative value, the price is in a downtrend.
In short
If the line is green, the price is in a uptrend. If the line is red, the price is in a downtrend.
[TS] Trend MeterHOW IT WORKS
The meter consists of 5 Different Trend Indicators: Gann HILO Activator, ParabolicSAR, our custom TS Oscillator, our non-repainting/non-lagging Higher Timeframe Trend Indicator, plus our Market Sentiment Indicator
HOW TO USE
1. When the majority of the meters turn green, it is a sign the market is heading up.
2. When the majority of the meters turn red, it is a sign the market is going down.
- The user has the option to select how many meters must allign for a signal to show
- The indicator also has the ability to setup Alerts when the selected number of meters turn green or red. This feature is also signaled by the red or green vertical lines.
Linear Correlation OscillatorYou don't need loops to get the rolling correlation between an input series and a linear sequence of values, this can be obtained from the normalized difference between a WMA and an SMA of the input series.
The closed-form solutions for the moving average and standard deviation of a linear sequence can be easily calculated, while the same rolling statistics for the input series can be computed using cumulative sums. All these concepts were introduced in previous indicators posts long ago.
This approach can allow to efficiently compute the rolling R-Squared of a linear regression, as well as its SSE.
Using the rolling correlation as a trend indicator is often attributed to John Ehlers with the correlation trend indicator (Correlation As A Trend Indicator), but the applications of this precise method can be traced back quite a while ago by a wide variety of users, in fact, the LSMA can be computed using this precise indicator. You can see an example where the correlation oscillator appears below:
Hashrate to Securities RatioTMcV
HashSecRatio Original
January,30,2021
The Hashrate to securities ratio is a study to get a view on data flowing through the blockchain and can be applied to any asset available in Tradingview.
This indicator illustrates asset performance vs the moving average of BTC hash rate and accurately highlights price trend tops and bottoms allowing for excellent entry points in long and short trades highlighting overbought and oversold conditions in custom timeframes.
I will allow protected access for a short period of time to gather public opinion after that access will be limited to paid only.
For now if you would like to use this script please leave a comment and add to your favorite scripts.
SemaforHello Traders!
I have been away for a while but am recovering back gradually! Here is a gift to all of you.
It is based on the much loved ZigZag++ Script
The Semafor is used to spot future multi-level Supports and Resistance zones.
It is also useful to spot HL or LL or HH or LH zones at different Depth settings.
The red zones are the extreme places where the market has a higher chance of reversing while the green zones have the lowest setting with lower chances of the market reversal
To ease understanding of the code, I used the function `zigzag()` to show the simplicity in calculation
More will be coming this Year!
Volume Weighted SSL ChannelVolume-weighted SSl channel.
new concept of indicator that does not have in the entire library, different from SSL based on EMA or MA, this indicator can identify turns faster than a conventional indicator that only takes into account the price.
Enjoy and give the feedback.
On Balance Volume FieldsThe On Balance Volume (OBV) indicator was developed by Joseph E. Granville and published first in his book "New key to stock market profits" in 1963. It uses volume to determine momentum of an asset. The base concept of OBV is - in simple terms - you take a running total of the volume and either add or subtract the current timeframe volume if the market goes up or down. The simplest use cases only use the line build that way to confirm direction of price, but the possibilities and applications of OBV go far beyond that and are (at least to my knowledge) not found in existing indicators available on this platform.
If you are interested to get a deeper understanding of OBV, I recommend the lecture of the above mentioned book by Granville. All the features described below are taken directly from the book or are inspired by it (deviations will be marked accordingly). If you have no prior experience with OBV, I recommend to start simple and read an easy introduction (e.g. On-Balance Volume (OBV) Definition from Investopedia) and start applying the basic concepts first before heading into the more advanced analysis of OBV fields and trends.
Markets and Timeframes
As the OBV is "just" a momentum indicator, it should be applicable to any market and timeframe.
As a long term investor, my experience is limited to the longer timeframes (primarily daily), which is also how Granville applies it. But that is most likely due to the time it was developed and the lack of lower timeframe data at that point in time. I don't see why it wouldn't be applicable to any timeframe, but cannot speak from experience here so do your own research and let me know. Likewise, I invest in the crypto markets almost exclusively and hence this is where my experience with this indicator comes from.
Feature List
As a general note before starting into the description of the individual features: I use the colors and values of the default settings of the indicator to describe it. The general look and feel obviously can be customized (and I highly recommend doing so, as this is a very visual representation of volume, and it should suit your way of looking at a chart) and I also tried to make the individual features as customizable as possible.
Also, all additions to the OBV itself can be turned off so that you're left with just the OBV line (although if that's what you want, I recommend a version of the indicator with less overhead).
Fields
Fields are defined as successive UPs or DOWNs on the OBV. An UP is any OBV reading above the last high pivot and subsequently a DOWN is any reading below the last low pivot. An UP-field is the time from the first UP after a DOWN-field to the first DOWN (not including). The same goes for a DOWN field but vice versa.
The field serves the same purpose as the OBV itself. To indicate momentum direction. I haven't found much use for the fields themselves other than serving as a more smoothed view on the current momentum. The real power of the fields emerges when starting to determine larger trends of off them (as you will see soon).
Therefor the fields are displayed on the indicator as background colors (UP = green, DOWN = red), but only very faint to not distract too much from the other parts of the indicator.
Major Volume Trend
The major volume trend - from which Granville says, it's the one that tends to precede price - is determined as the succession of the highest highs and lowest lows of UP and DOWN fields. It is represented by the colors of the numbers printed on the highs and lows of the fields.
The trend to be "Rising" is defined as the highest high of an UP field being higher than the highest high of the last UP field and the lowest low of the last DOWN field being higher than the lowest low of the prior DOWN field. And vice versa for a "Falling" trend. If the trend does not have a rising or falling pattern, it is said to be "Doubtful". The colors are indicated as follows:
Rising = green
Falling = red
Doubtful = blue
ZigZag Swing count
The swing count is determined by counting the number of swings within a trend (as described above) and is represented by the numbers above the highs and lows of the fields. It determines the length and thus strength of a trend.
In general there are two ways to determine the count. The first one is by counting the swings between pivots and the second one by counting the swings between highs and lows of fields. This indicator represents the SECOND one as it represents the longer term trend (which I'm more interested in as it denotes a longer term perspective).
However, the ZigZag count has three applications on the OBV. The "simple ZigZag" is a count of three swings which mainly tells you that the shorter term momentum of the market has changed and the current trend is weakening. This doesn't mean it will reverse. A count of three downs is still healthy if it occurs on a strong uptrend (and vice versa) and it should primarily serve as a sign of caution. If the count increases beyond three, the last trend is weakening considerably, and you should probably take action.
The second count to look out for is five swings - the "compound ZigZag". If this goes hand in hand with breaking a major support/resistance on the OBV it can offer a buying/selling opportunity in the direction of the trend. Otherwise, there's a good chance that this is a reversal signal.
The third count is nine. To quote Granville directly: "there is a very strong tendency FOR MAJOR REVERSAL OF REND AFTER THE NINTH SWING" (emphasis by the author). This is something I look out for and get cautious about, although I have found signal to be weak in an overextended market. I have observed counts of 10 and even 12 which did not result in a major reversal and the market trended further after a short period of time. This is still a major sign of caution and should not be taken lightly.
Moving average
Although Granville talks only briefly about averages and the only mention of a specific one is the 10MA, I found moving averages to be a very valuable addition to my analysis of the OBV movements.
The indicator uses three Exponential Moving Averages. A long term one to determine the general direction and two short term ones to determine the momentum of the trend. Especially for the latter two, keep in mind that those are very indirect as they are indicators of an indicator anyway and I they should not necessarily be used as support or resistance (although that might sometimes be helpful). I recommend paying most attention to the longterm average as I've found it to be very accurate when determining the longterm trend of a market (even better than the same indicator on the price).
If the OBV is above the long term average, the space between OBV and average is filled green and filled red if below. The colors and defaults for the averages are:
long term, 144EMA, green
short term 1, 21EMA, blue
short term 2, 55EMA, red
Divergences
This is a very rudimentary adaption of the standard TradingView "Divergence Indicator". I find it helpful to have these on the radar, but do not actively use them (as in having a strategy based on OBV/price divergence). This is something that I would eventually pick up in a later version of the indicator if there is any demand for it, or I find the time to look into strategies based on this.
Comparison line
A small but very helpful addition to the indicator is a horizontal line that traces the current OBV value in real time, which makes it very easy to compare the current value of the OBV to historic values (which is a study I can highly recommend).
Ichimoku Trend DirectionThis script will help you detect the current trend of market use Ichimoku trading system. We use the default parameters.
To reduce risk, ONLY trade follow the trend of high time frame!
Very simple to use:
- Green background when market Up trend
- Red background when market Down trend
Have a nice trade! :P
trendOne [Alerts]BITSTAMP:BTCUSD
trendOne
(alerts)
This script combines all our previous trend-based scripts (Bows, Autopilot, Trend Indicator, Price Deviation, etc) in only one script .
To calculate the trend we use:
Volume Weight
Average True Range
Bows calculations
Trends smoothed with alma() function.
For more accuracy on the signals and to filter unwanted signals we layered slower time-frames in the background and added breaking support & resistance rules.
Inputs
Sensitivity
Integer input. Sets the sensitivity for signals generated up and down. Higher values will generate less signals on chart, and vice-versa.
Enjoy!
To get access to this and other scripts check links below.
HalfTrendA popular trend indicator based on ATR. Similar to the SuperTrend but uses a different trend's identification logic.
I am publishing a disclosed code without license. Remember that in the future you may see a lot of paid IO scripts called BuySellScalper, Trend Trader Karan, Trend Trader and etc (by other authors) which will be based on this script. I found the same script on Ebay for $10 with a free shipping. Beware, always check and follow one Russian wisdom: "Do not pay for something you can get for free".