Mass Thrust IndicatorThis is a custom indicator of mine that I based loosely on Tushar S. Chande's Market Thrust Indicator (Stocks & Commodities V. 10:8 (347-350)). Buy the stock if the indicator is green and sell when it turns red.
Let me know if you would like to see more scripts or if you have custom requests!
Trend
Vortex MTFUnderstanding Vortex Indicator (VI)
The vortex indicator was first developed by Etienne Botes and Douglas Siepman who introduced the concept in the January 2010 edition of “Technical Analysis of Stocks & Commodities.” The vortex indicator is based on two trendlines: VI+ and VI-.
What is the Vortex Indicator (VI)?
A vortex indicator (VI) is an indicator composed of two lines - an uptrend line (VI+) and a downtrend line (VI-). These lines are typically colored green and red respectively. A vortex indicator is used to spot trend reversals and confirm current trends.
Vortex Indicator Calculations
The calculation for the indicator is divided into four parts.
1. True range (TR) is the greatest of:
Current high minus current low
Current high minus previous close
Current low minus previous close
2. Uptrend and downtrend movement:
VM+ = Absolute value of current high minus prior low
VM- = Absolute value of current low minus prior high
3. Parameter length (n)
Decide on a parameter length (between 14 and 30 days is common)
Sum the last n period’s true range, VM+ and VM-:
Sum of the last n periods’ true range = SUM TRn
Sum of the last n periods’ VM+ = SUM VMn+
Sum of the last n periods’ VM- = SUM VMn−
4. Create the trendlines VI+ and VI-
SUM VMn+/SUM TRn = VIn+
SUM VMn-/SUM TRn = VIn−
Repeating this process daily forms the VI+ and VI- trendlines.
The traditional application of using VI- and VI+ crossovers can result in a number of false trade signals when price action is choppy. Increase the number of periods used in the indicator to reduce this, for example, using 25 periods instead of 14.
What is MTF?
Multiple Time Frame Analysis is the technique of analyzing several time frames of the same asset before entering a trade. This type of analysis is best done using a top-down approach, i.e. starting at a higher time frame and working your way down, via several lower time frames, until the execution time frame is reached where a trade could be entered. Traders who use this technique usually look at 3 or 4 different time frames to identify the general trend and find the best entries. They minimize their risk and improve the odds of success simply by taking the bigger picture into account. It can easily be combined with any trading strategy.
Time frames are usually several times apart. For example a day trader who trades hourly charts, could analyse the weekly (high time frame), the daily (7 times smaller), the 4 hour (6 times smaller) and finally the hourly time frame (execution time frame, 4 times smaller). TradingView has a chart layout feature with multiple charts per layout, so you can analyse an asset on multiple time frames under one tab in your browser.
Summary
With MTF, you can see the Vortex indicator values for a specific time period without changing the graph time period.
Guppy Count Back LineThe Guppy Count Back Line was created by Daryl Guppy and is essentially a trailing stop indicator. I have color coded the indicator to tell you if you should go long or short.
This was a special request so let me know if you would like me to write more scripts for other indicators!
Trend Analysis IndicatorThe Trend Analysis Indicator was created by Adam White (Stocks & Commodities V. 10:8 (358-360)) and this is not to be confused with the Trend Analysis Index which was also created by Adam White. The stock is trending when it is above the signal and loses steam when it falls below the signal. Generally you should buy when it is above it's signal and sell when it goes below the signal.
Let me know if you would like me to write more scripts!
unRekt - KISS AddieKISS Addie is the ADX and DI+- indicator and is part of the 'keeping it simple' series. ADX is your Average Directional Index and DI is you Directional Movement Indicator.
ADX - Will show the strength of the trend regardless of direction.
00 - 10 : No trend
10 - 20 : Transitioning trend
20 - 40 : Trending
40 - 99 : Exhausted (Can also be considered a stronger trend the higher it goes, but look to exit position once it begins to downward slope and pay attention to DI spread)
DI - Will show the direction of movement. This indicator includes two views of the DI. the DI+ and DI- crossover and a histogram of the spread between the two.
Bullish : Green crosses over red.
Bearish : Red crosses over green.
Midpoint OscillatorThe Midpoint Oscillator was created by Tushar Chande Ph.D. (Stocks & Commodities V. 9:11 (431-434)) and it does a great job of tracking extreme changes in the price. Buy when the line is green and sell when it turns red.
Let me know if you would like me to write more scripts!
Trend Direction Force IndexThis is my own version of the famous Trend Direction Force Index and I modified the original to make my version react quickly to any trend. I have color coded the indicator to make it extremely easy to read so if it is green then buy and red then sell.
This was a custom request so if you would like more then just send me a message!
Double Smoothed MomentaDouble Smoothed Momenta was created by William Blau (Stocks & Commodities V. 9:5 (202-205)). His original indicator didn't use a signal period so I added one to notify you when to buy or sell. Buy when the indicator goes over the signal line and sell when it is falls below the signal line.
Let me know what other indicators you would like me to write scripts for!
NSDT Horizontal MA LinesDisplays up to 5 moving averages as horizontal lines based on the most recent candle. It is important to remember that the line is drawn from right to left.
This gives the chart a nice clean look.
Moving average lengths can be adjusted. Line lengths can be adjusted.
New Momentum IndicatorThe Momentum Indicator was created by Darryl W Maddox (Stocks & Commodities V. 9:4 (158-159)) and it is one of the simplest and most powerful indicators out there. Buy when the indicator goes over 0 and sell when it falls below 0
Let me know what other indicators you would like to see me write a script for!
Trend Exhaustion IndicatorThe Trend Exhaustion Indicator is a custom indicator of mine that is loosely based on the Trend Exhaustion Index created by Clifford L. Creel Ph.D. (Stocks & Commodities V. 9:1 (9-11))
This indicator will let you know the trend reversal points and when it falls below the signal line then the trend is ending vice versa. Buy when the indicator crosses above the signal line and sell when it falls below the signal line.
Let me know if you would like to see me write any other scripts!
Uber Trend IndicatorThis is my first custom indicator that I created as a medium to long term trend indicator. Buy if it is above 0 and sell if it is below 0.
Since this is my first unique indicator, I would love to hear your feedback! Please let me know if you would like to see any other scripts!
Demand OscillatorThe Demand Oscillator was created by James Sibbet (Stocks & Commodities June, 1986) and I changed his formula quite a bit to what you see on here. If it rises above the signal then buy or if not then sell. This is my custom version of his formula so let me know what you think.
Let me know if you would like to see me write any other scripts!
CDC ActionZone V3 2020## CDC ActionZone V3 2020 ##
This is an update to my earlier script, CDC ActionZone V2
The two scripts works slightly differently with V3 reacting slightly faster.
The main update is focused around conforming the standard to Pine Script V4.
## How it works ##
ActionZone is a very simple system, utilizing just two exponential moving
averages. The 'Zones' in which different 'actions' should be taken is
highlighted with different colors on the chart. Calculations for the zones
are based on the relative position of price to the two EMA lines and the
relationship between the two EMAs
CDCActionZone is your barebones basic, tried and true, trend following system
that is very simple to follow and has also proven to be relatively safe.
## How to use ##
The basic method for using ActionZone is to follow the green/red color.
Buy when bar closes in green.
Sell when bar closes in red.
There is a small label to help with reading the buy and sell signal.
Using it this way is safe but slow and is expected to have around 35-40%
accuracy, while yielding around 2-3 profit factors. The system works best
on larger time frames.
The more advanced method uses the zones to switch between different
trading system and biases, or in conjunction with other indicators.
example 1:
Buy when blue and Bullish Divergence between price and RSI is visible,
if not Buy on Green and vise-versa
example 2:
Set up a long-biased grid and trade long only when actionzone is in
green, yellow or orange.
change the bias to short when actionzone turns to te bearish side
(red, blue, aqua)
(Look at colors on a larger time frame)
## Note ##
The price field is set to close by default. change to either HL2 or OHLC4
when using the system in intraday timeframes or on market that does not close
(ie. Cryptocurrencies)
## Note2 ##
The fixed timeframe mode is for looking at the current signal on a larger time frame
ie. When looking at charts on 1h you can turn on fixed time frame on 1D to see the
current 'zone' on the daily chart plotted on to the hourly chart.
This is useful if you wanted to use the system's 'Zones' in conjunction with other
types of signals like Stochastic RSI, for example.
Sell Gravitation IndexThe Sell Gravitation Index was created by Howard Wang and was published in Stocks & Commodities V37:02 (36-38)
This indicator is similar to the relative strength index but the big difference is that this indicator gives early buy and sell signals which I find very helpful. Buy when it rises above its signal line and sell when it falls below its signal line.
Let me know if you would like to see me publish any other scripts!
On Balance Volume ReflexThe On Balance Volume Reflex Indicator was developed by Fred Purifoy (Stocks & Commodities V 6:4 142-144) and it is similar in calculation to the On Balance Volume indicator but uses a lookback period for the change comparisons. Buy when the OVR is above the signal and sell when it falls below the signal.
I have included my On Balance Volume Modified Indicator to highlight the differences between both indicators.
Let me know if you would like to see me write scripts for more indicators!
Enhanced Williams %RThe Enhanced Williams %R Indicator was created by Robert J Kinder Jr (Stocks & Commodities V5:5 (180-182)) and is based on the Williams %R Indicator. It takes volume into account and the buy and sell signals are pretty much the same. I would recommend to buy when the indicator is over the signal and if you want a confirmation then also make sure the signal is above 0. Sell if it falls below the signal or if the signal goes below 0 or of course buy or sell when the indicator goes into overbought or oversold territory.
I'm still tinkering with this indicator and it is the first time I have seen this indicator script published so let me know if you have any suggestions for me.
And of course let me know if you would like me to write indicators for you or anything else you would like to see!
McGinley Dynamic IndicatorMcGinley Dynamic is a technical indicator developed by a market technician, R. McGinley in 1997
I based my indicator from code by everget so you should go follow him if you aren't already!
I had issues with the default version of this indicator using different lengths so this is my fix for those issues. This follows the price very closely especially when the stock is falling. I have color coded so go long when it is green and short when it is red.
Let me know if you would like me to write any other scripts for indicators out there!
Validated PSARPSAR works well as trailing stop loss (or WinStop), but is often whipsaw'd as it detect trend changes over enthusiastically.
So, a filter to validate trend changes was added. It basically requires 3 straight bars completely breaking the prior saved PSAR level.
Enjoy!
Force IndexWhat is the force index ?
The force index is an oscillator used to confirm price breakout strengths and identify potential trends.
It was popularized by A. Elder.
How the force index is computed ?
Knowing that volume is the fuel of a price movement, reliable breakouts and trend continuation are more likely to occur on high volume breakouts. This is why the force index is computed with the intensity of the price movement, and it's volume , using the formula ema13((close(n) - close(n-1)) * volume ) .
How to use the force index
An important change in the force index indicate a strong momentum in the price action.
You can read more about the force index interpretation on Investopedia
Customization
You can display the indicator as an histogram, or as a line chart.
You can change EMA length, although it's recommended to keep it at default value.
Z-HistogramIt is possible to approximate the underlying distribution of a random variable by using what is called an "Histogram". In order to construct an histogram one must first split the data into several intervals (also called bins) often of the same size and count the number of values falling within each intervals, the histogram plot is then constructed with the X axis representing the measured variable and the Y axis representing the frequency.
The proposed script aim to estimate the underlying distribution of a rolling z-score by constructing its histogram, here the histogram consist of 13 bins of width 0.5 rolling standard deviations. The length setting define the rolling z-score period, the window setting define the number of past data to be counted, finally using the "Total" option (true by default) will count all the rolling z-scores values since the first bar, in order to use the window setting make sure to uncheck the "Total" option.
DISPLAY
In order to see the entirety of the histogram make sure to double click on the indicator window and to have all the lower panels (text notes, pine editor...etc) hidden, finally make sure to zoom-in in order to see the frequency numbers displayed.
Z-Histogram on BTCUSD 15 min TF, the blue bins represent intervals situated over 0 while red bins represent intervals situated under 0. Here σ represent the X-axis in standard deviations, the histogram start with a bin situated at σ = -3 which count the number of times the rolling z-score was within -3 and -2.5, the histogram end with the bin situated at σ = 3 which count the number of time the rolling z-score was within 3 and 3.5.
It is also possible to look at the shape of the histogram without having the indicator window at full size.
INTERPREATION
An histogram can give really interesting information such as overall trend direction and strength. The direction can be measured by looking at the skewness of the histogram, with a negative skewness (the peak of the histogram situated at the right from the center) representing down-trending variations and positive skewness (the peak of the histogram situated at the left from the center) representing up-trending variations, while a symmetrical histogram could represent a ranging market. The farther away the peak of the histogram is situated from the center, the stronger the trend.
Another interesting characteristic is the tailedness of the histogram, which can give information about the cleanliness of the trend, for example a positive skew and high tailedness would represent a clean up-trend, as it could suggest less variations contrary to the main trend.
An histogram applied to the rolling z-score can give various useful information. As a recall the rolling z-score of the price measure the distance between the closing price and its moving average in term of rolling standard deviations, for example if the rolling z-score is equal to 2 it means that the closing price is currently 2 rolling standard deviations over its moving average.
Lets for example analyze the histogram using INTC 15 min tf with a window of 456 bars and rolling z-score of length = 100 in order to review longer term variations.
We can see from the histogram that the uptrend visible on the chart is represented by the bins situated over 0 having an overall higher frequency than the bins under 0, we can see that the closing price tended to stay between 1 and 1.5 rolling standard deviations over its period 100 moving average. Here bins under 0 accounts for retracements in the trend.
IN SUMMARY
An histogram can give various information regarding the price evolution of a security, the proposed script aim to plot the histogram of a rolling z-score. Now this script might not be too useful but it was fun to make, also it does not mean that an histogram is not an useful tool in the context of trading, the only thing required is a god implementation of it (like volume profiles for example)
In this post we have also reviewed some important statistical concepts such as distributions, z-score, skewness and tailedness, each being extremely important in the quantitative trading field.
Thx for reading !
FTSMA - Trend is your frendThis my new solid strategy: if you belive that "TREND IS YOUR FRIEND" this is for you!
I have tested with many pairs and at many timeframes and have profit with just minor changes in settings.
I suggest to use it for intraday trading .
VERY IMPORTANT NOTE: this is a trend following strategy, so the target is to stay in the trade as much as possible. If your trading style is more focused on scalping and/or pullbaks, this strategy is not for you.
This strategy uses moving averages applied to Fourier waves for forecasting trend direction.
How strategy works:
- Buy when fast MA is above mid MA and price is above slow MA, which acts as a trend indicator.
- Sell when fast MA is below mid MA and price is below slow MA, which acts as a trend indicator.
Strategy uses a lot of pyramiding orders because when you are in a flat market phase it will close 1 or 2 orders with a loss, but when a big trend starts, it will have profit in a lot of orders.
So, if you analize carefully the strategy results, you will note that "Percent Profitable" is very low (30% in this case) because strategy opened a lot of orders also in flat markets with small losses, BUT "Avg # bars in winning trades" is very high and overall Profit is very high: when a big trend starts, orders are kept open for long time generating big profits.
Thanks to all pinescripters mentioned in the code for their snippets.
I have also a study with alerts. Next improvement (only to whom is interested to this script and follows me): study with alerts on multiple tickers all at one. Leave a comment if you want to have access to study.
HOW TO USE STRATEGY AND STUDY TOGHETER:
1- Add to chart the strategy first, so your workspace will be as clean as possible.
2- Open the Strategy Tester tab at footer of the page.
3- Modify settings to get best results (Profit, Profit Factor, Drawdown).
4- Add study with alerts to your chart with same setting of strategy.
I WILL PROVIDE A DETAILED QUICK INSTALLATION GUIDE WITH THE STUDY!
Please use comment section for any feedback or contact me if you need support.
Z Score Enhanced Time Segmented Volume (Multi MA)**THIS VERSION HAS BEEN STANDARDIZED WITH A Z SCORE CALCULATION AND ALLOWS THE USER TO SELECT WHICH MOVING AVERAGE THEY WOULD LIKE TO UTILIZE FOR THE SIGNAL LINE**
Chart shows the Non-Standardized Enhanced Time Segmented Volume (Multi MA) with default settings on top and the Standardized version with default settings on the bottom.
Time Segmented Volume was developed by Worden Brothers, Inc to be a leading indicator by comparing various time segments of both price and volume . Essentialy it is designed to measure the amount of money flowing in and out of an instrument.
Time Segmented Volume was originally ported to TradingView by user @liw0 and later corrected by user @vitelot. I never quite understood how to read Time Segmented Volume until I ran across a version by user @storma where they indicated when price would be long or short, but that code also utilized the incorrect calculation from user @liw0.
In an effort to make Time Segmented Volume more accessible and easier to read, I have re-coded it here. The calculations are based on the code from @vitelot and I have added direction indicators below the chart.
If the histogram (TSV) is greater than zero and greater than the moving average, price should be moving long and there will be a green box below the chart.
If TSV falls below the moving average while still being greater than zero, the trend may be exhausting and has been coded to read Price Action Long - FAILURE with a black x below the chart.
If the histogram (TSV) is less than zero and less than the moving average, price should be moving short and there will be a red box below the chart.
If TSV rises above the moving average while still being less than zero, the trend may be exhausting and has been coded to read Price Action Short - FAILURE with a black x below the chart.
At times, the moving average may be above zero while TSV is below zero or vice versa. In these situations the chart will indicate long or short based on whether or not TSV is greater or less than zero. It is possible a new trend may be forming as the moving average obviously lags, but also possible price is consolidating with little volume and causing TSV to oscillate close to zero.
**Z Score // Standardized Option **
Thist Standardized code implements all of the above but also allows the user to select a threshold level that should not need to be adjusted for each instrument (since the output is standardized).
If the TSV value meets the long and short signal requirements above and TSV is greater than the threshold values a green or red box will print ABOVE the oscillator. The histogram will also change color based on which threshold TSV has met.
This calculation allows us to compare current volatility to the mean (moving average) of the population (Z-Length). The closer the TSV Z-Score is to the mean, the closer it will be to the Zero Line and therefore price is likely consolidating and choppy. The farther TSV Z-Score is from the mean, the more likely price is trending.
The MA Mode determines the Moving Average used to calculate TSV itself. The Z-Score is ALWAYS calculated with a simple moving average (as that is the standard calculation for Z-Score).
The Threshold Levels are the levels at which TSV Z-Score will change from gray to yellow, orange, green ( bullish ), or red ( bearish ).
Statistically speaking, confidence levels in relation to Z-Score are noted below. The built in Threshold Levels are the positive and negative values for 90%, 95%, and 99%. This would indicate when volatility is greater than these values they are out of the ordinary from the standard range. You may wish to adjust these levels for TSV Z-Score to be more responsive to your trading needs
80% :: 1.28
85% :: 1.44
90% :: 1.64
95% :: 1.96
99% :: 2.58
The Z Length is the period for which the Z Score is calculated
More information regarding Time Segmented Volume can be found here: www.worden.com
Original code ported by @liw0
Corrected by @vitelot
Updated/Enhancements by @eylwithsteph with inspiration from @storma
Multiple MA Options Credits to @Fractured and @lejmer
Bits and Pieces from @AlexGrover, @Montyjus, and @Jiehonglim
As always, trade at your own risk.