Stochastic based on Closing Prices - Identify and Rank TrendsStochClose is a trend indicator that can be used on its own to measure trend strength, in a scan to rank a group of securities according to trend strength or as part of a trend following strategy. Moreover, it acts as a volatility-adjusted trend indicator that puts securities on an equal footing.
StochClose measures the location of the current close relative to the close-only high-low range over a given period of time. In contrast to the traditional Stochastic Oscillator, this indicator only uses closing prices. Traditional Stochastic uses intraday highs and lows to calculate the range. The focus on closing prices reduces signal noise caused by intraday highs and lows, and filters out errant or irrationally exuberant price spikes.
Here are some examples when the high or low was out of proportion and suspect. Perhaps most famously, there were errant spike lows in dozens of ETFs in August 2015 (XLK, IJR, ITB). There were other spikes in VMBS (October 2014), IJR (October 2008) and KRE (May 2011). Elsewhere, there were suspicious spikes in IEI (April 2020), CHD (March 2020), CCRN (March 2020) and FNB (March 2020)
The preferred setting to identify medium and long-term uptrends is 125 days with 5 days smoothing. 125 days covers around six months. Thus, StochClose(125,5) is a 5-day SMA of the 125-day Stochastic based on closing prices. Smoothing with the 5-day SMA introduces a little lag, but reduces whipsaws and signal noise.
StochClose fluctuates between 0 and 100 with 50 as the midpoint. Values above 80 indicate that the current price is near the high end of the 125-day range, while values below 20 indicate that price is near the low end of the range. For signals, a move above 60 puts the indicator firmly in the top half of the range and points to an uptrend. A move below 40 puts the indicator firmly in the bottom half of the range and points to a downtrend.
StochClose values can also be ranked to separate the leaders from the laggards. In contrast to Rate-of-Change and Percentage Above/Below a Moving Average, StochClose acts as a volatility-adjusted indicator that can identify trend strength or weakness. The Consumer Staples SPDR is unlikely to win in a Rate-of-Change contest with the Technology SPDR. However, it is just as easy for the Consumer Staples SPDR to get in the top of its range as it is for the Technology SPDR. StochClose puts securities on an equal footing.
StochClose measures trend direction and trend strength with one number. The indicator value tells us immediately if the security is trending higher or lower. Furthermore, we can compare this value against the values for other securities. Securities with higher StochClose values are stronger than those with lower values.
Trendfollowing
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!
Donchian Trend RibbonHello Traders,
I think you all know Donchian Channels. so I am not going to write about it.
With this indicator I tried to create Donchian Trend Ribbon by using Donchian Channels.
How it works ?
- it calculates main trend direction by using the length that is user-defined. so you can change it as you wish
- then it calculates trend direction for each 9 lower lengths. if you set the length = 20 then the lengths are 19, 18,...11
- and it checks if the trend directions that came from lower lengths is same or not with main trend direction.
- it changes the trend color of the ribbon.
-
Warning: Entry points may also represents trend reversal. So you should use stoploss line if you decide to take buy/sell positions.
P.S. I didn't backtest it, it's non-repainting, it should be used educational purposes only.
Published by user request. You may want to see following one:
Enjoy!
Donchian TrendHello All,
I think all of you knows Donchian Channels . so I am not going to write about it.
With this indicator I tried to create Trend Lines by using Donchian Channel upper/lower bands. I tried add possible entry levels as well.
How it works ?
- it calculates main trend direction by using the length that is user-defined. so you can change it as you wish
- then it calculates trend direction for 9 lower lengths. if you set the length = 20 then the lengths are 19, 18,...11
- and it checks if the trend directions that came from lower lengths is same or not with main trend direction.
- it changes the trendline color. lighter trend line means stonger trend, darker trend lines means entry points or possible trend reversal.
- it puts entry points by using trend directions that were created by using lower lengths. it gets entry points if high/low touches main trend line as well.
Warning: Arrows are entry points but it may also represents trend reversal. So you should use stoploss line if you decide to take buy/sell positions.
P.S. I didn't backtest it, it's non-repainting, it should be used educational purposes only . I believe it can be improved, so I am open for new ideas to improve it ;)
Enjoy!
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!
piphunter trend scoutThis indicator is designed to help enable you to understand a trends direction and how strong of a trend you are in it does this via a combination of measurements and the output is as a percentage going from 100% bullish to -100% bearish the purpose of this tool is to be able to quickly identify which direction trend you are in and also the current strength of the trend
this tool is part of the total pip hunter package and comes with and compliments the pip hunter momentum extreme indicator as it will allow you to take trades when this tool has identified the trend to be in the same direction as the momentum tool and has confirmed that there is momentum behind the move
pm me for more information and to get access to this script and the rest of the pip hunter scripts
Squeeze Momentum Strategy Signals [Bitduke]Description :
Signals based on transformed Momentum Indicator (leading indicator measuring a security's rate-of-change) with risk management system and ability and custom backtesting.
Usage:
Strategy flips long / short depending of indicator signals. There can be multiple signals of the same type, for example, 2 longs in a row, only the first of them must be taken into account.
Features :
Possible to change source: ohlc4, hl2 , hlc3, close
Enter your stop loss and take profit in %, NOT ticks
Working and robust even without take profit / stop loss
Yearly drawdown lower than 20%
Backtesting:
Backtested on BTCPERP ( FTX ).
It shows much better results on 1h timeframe (about 200% yearly, 55% in 2020) and relatively low drawdown to date.
Strategy doesn't repaint.
Pivot Point SupertrendHello All,
There are many types of SuperTrend around. Recently I thought about a Supertrend based on Pivot Points then I wrote "Pivot Point SuperTrend" script. It looks it has better performance on keeping you in the trend more.
The idea is behind this script is finding pivot point, calculating average of them and like in supertrend creating higher/lower bands by ATR. As you can see in the algorithm the script gives weigth to past pivot points, this is done for smoothing it a bit.
As I wrote above it may keep you in the trend more, lets see an example:
As an option the script can show main center line and I realized that when you are in a position, this line can be used as early exit points. (maybe half of the position size)
While using Pivot Points, I added support resistance lines by using Pivot Point, as an option the script can show S/R lines:
And also it can show Pivot Points:
When you changed Pivot Point Period you can see its reaction, in following example PP period is 4 (default value is 2). Smaller PP periods more sensitive trendlines.
Alerts added for Buy/Sell entries and Trend Reversals. (when you set alerts use the option " Once Per Bar Close ")
ENJOY!
EMA cloud# Description
- This script will help your cognition where trend is going. Of course, you can get the information market is trendless, or not.
# How to use
You can get 3 type of market direction.
1. up-trend
If the color filled between ema10 and ema200 is blue, the market is in a uptrend
2. down-trend
If the color filled between ema10 and ema200 is red, the market is in a downtrend.
3. boxed-range
If there are no color between ema10 and ema200, the market is in a boxed-range.
I hope this script help your trading. Wish you good luck.
ScalpyScalpy is made up of a 2 main parts.
- The cloud comprising of a 10 period SMA and a 30 period SMA.
- When the cloud is green you should be looking for long entries.
- When the cloud is red you should be looking for short entries.
- Price is most bullish above a green cloud and most bearish below a red cloud.
- Being within the cloud indicates indecision.
The blue and white lines on the indicator show the relationship between price and momentum.
They can be used to spot reversals in two ways:
- The first is a divergence between price (blue line) and RSI (white line)
- If the price makes a lower low but the RSI makes a higher low this shows the trend is weakening and may be reversing soon (as can be seen by the two yellow lines on the chart).
The second is a simple crossover:
- When the white line crosses the blue line to the upside this signals a long entry.
- When the white line crosses the blue line to the downside this signals a short entry.
ViPro Trend v3.0This indicator is based on few combination of indicators as listed below:
a. volume indicator
b. ATR indicator (Supertrend)
Two signal will be shown in the chart i.e. cross sign as uptrend and circle sign as down trend.
How the indicator works?
a. It filters candles below 2 supertrend lines and shows the cross or circle sign as output
b. The volume filter also included where it filter the cross and circle sign based on the rise of the volume.
The trend factors and no of candles for volume can be adjusted in the user interface.
This indicator repaints, so long or short position should be based on the signal on second candle.
Please share your comments as message directly to me, thanks.
Trend Following MAs 3DHello All,
This is Moving Averages Trend Following 3D indicator. The idea is based on direction of MAs and relation between 20 moving averages (5 to 100 period).
Option to show different type of MAs: EMA, SMA, RMA, WMA, VWMA.
As I haved tested it looks succesful at calculating trend direction and trend strength.
For a better look I tried to make it 3D, it looks good I think, waiting comments ;)
Some screenshots:
By using RMA type:
When it gets tiny it means there is no trend:
An example for down trend:
ENJOY!
Trend Lines for RSI, CCI, Momentum, OBVHello Traders!
After publishing Trend Lines for RSI yesterday, I realized that Trend Lines for more indicators needed by the traders. so I decided to make it for four different indicators: RSI, CCI, OBV, Momentum
In the indicator options you can choose the indicator from pull-down menu.
How it works?
- On each bar it finds last 10 higher and lower Pivot Points (PP) for the indicator.
- from first bar to 10. Pivot Point it searchs if a trend line is possible
- for each PP it starts searching from the last PP .
- it checks if drawing a trend line possible or not and also it's broken or not
- if it's broken then optionally it shows broken trend lines as dotted (or you can option not to see broken lines)
- if it finds a continues trend line then it stops searhing more and draw trend line, this is done by checking angles (I did this to make the script faster, otherwise you may get error because of it needs time more than .2sec)
- the script makes this process for each PP
- then shows the trend lines
P.S. it may need 3-10 seconds when you added the script to the chart at first (because of calculations)
Trend lines for CCI:
Trend Lines for OBV
Trend Lines for Momentum:
You may want to watch how Trend Lines script works (that was made for RSI)
s3.tradingview.com
If you still didn't see Trend Lines v2 then visit:
All Comments are welcome..
Enjoy!
MWDX AverageThis is a variation of an exponential moving average which follows the price pretty smoothly. Feel free to change the factor to adjust how closely it follows the price. I set the default to 0.2
Let me know if you want me to write code for any other indicators!
Trend FollowerHello Traders!
While analysing the charts, one of the biggest problem is to see if there is trend or not, or is it in a congestion zone/area? While thinking about it, I found the idea to analyse moving averages in channel and their momentum according to channel width.
How it calculates and works?
On each bar it creates a channel by highest/lowest point of a MA. highest point is upper point and lowest point is lower point of the MA channel,
It gets highest and lowest point of last 300 bars, (say Price Channel )
If the width of MA channel is greater than certain rate of price channel then it decides there is trend
After it decided there is trend, it calculates the rate between channel and MA. Bigger result means stronger trend.
According to rate of MA channel and the price channel , bar color becomes lighter/darker. so when you look at the bar color you can see the trend strength.
Short explanation on the chart:
Also by changing channel or size other options (such MA length etc) you can see congestion zones/areas:
Another one, about trend direction and its strength:
Options:
You can choose following MA types as source: EMA, SMA , RMA, WMA , VWMA
"Period to Check Trend" is the period to create MA channel. Bigger period cause more sensitivity.
MA Period is the Length of the MA that will be checked
"Trend Channel Rate %" is rate of price channel . Price channel created by using highest/lowest of last 300 bars. I did this to make the script works on all time frames correctly.
"Use Linear Regression" is used to get rid of noise. it may cause 1-2 bars latency. (I use it)
The idea was created by LonesomeTheBlue.
Enjoy!
MichaelIndicator «Michael»
Class : trend indicator
Trading type : intraday trading / mid-term trading
Time frame : 15 min -1 day
Purpose : trend trading, reversal points identification,
Level of aggressiveness : standard
Indicator “ Michael ” indicator is designed to identify a local trend and generate signals for trading in the direction of the current trend. It can be used to trade at time intervals from 15 minutes to 1 day. The frequency of the signals depends on the selected time interval, as well as the indicator settings. For example, on an interval of 15 minutes and standard settings, the number of trades will be about 5-10 per day.
The indicator combines the advantages of average analysis, as well as regression analysis, which allow you to decrease unnecessary noise in price dynamics and concentrate on the overall picture of price movement.
The main feature of the Michael indicator is an attempt to partially offset the main drawback of the analysis of averages - the delay of signals. Averages, by their nature, show what was, and not what will be. As a result, often the predicative abilities of this method of technical analysis are questioned. In order to improve the quality of the signals, auto-regression model is used in the indicator. As the result “Michael” shows not what was, but what will be. That is, the delayed signals of the moving averages are balanced by the auto-regression model. Overall, a trader gets a picture that optimally describes the current reality.
In “ Michael ”, two autoregressive models with different lags are used, which allows monitoring not only general, but also current moods in the market.
Indicator “ Michael ” checks for the presence of price deviations from equilibrium values. If such deviations are detected, the indicator generates signals in the direction of the local trend.
Structure of indicator
The indicator consists of the following elements:
- trend line (center line) - shows the current trend in the market using a special color display. Red is a downward trend, blue is an upward trend, green is a flat;
- volatility lines - black channel lines that monitor the level of volatility in the market. Their divergence is a signal of an increase in market volatility. Convergence - decrease in volatility;
- stop lines - show the calculated value of the stop / profit value for the position in case of signal generation at a specific moment in time.
Parameters of the indicator
To configure the indicator, the following parameters are provided:
- periodFAR (default value is 13) - period for determining a short-term trend. The higher it is, the more conservative will be the perception of an indicator of a trend.
- periodSAR (default value is 34) - period for determining the current trend. Responsible for the level of trade aggressiveness. The lower the value of this parameter, the more signals the indicator will generate and vice versa.
- Stop_period (default value is 21) - period for calculating stop lines.
- Stop_agressor (default value is 1) - the parameter responsible for the aggressiveness of stop losses. The higher it is, the wider the lines of stops are.
Rules of trading
The main purpose of the indicator is to determine the prevailing market sentiments: bullish (the trend line is colored blue), bearish (the trend line is colored red) or neutral (the trend line is colored green). Accordingly, with dominance in the bull market, only buy transactions are allowed, and in a bear market, sells are allowed.
Signals to enter positions are displayed on the chart. Stops are set below (for purchases) or above (for sales) the red lines.
Trend Lines v2Hello Everyone. After working on new and better trend lines script for couple of weeks, finally I am proud to publish Trend Lines v2.
How it works?
- On each bar it finds last 10 higher and lower Pivot Points (PP).
- from first bar to 10. PP it search if a trend line is possible
- for each it starts searching from the last PP.
- it check if drawing a trend line possible or not and also it's broken or not
- if it's broken then optionally it shows broken trend lines as dotted
- if it finds a continues trend line and stop searhing more and draw trend line (I did this to make the script faster, otherwise you may get error because of it needs time more than .2sec)
- the script makes this process for each PP
optionally trend lines may be Solid or Dashed
optionally you may get rid of broken trend lines if you think it's crowded
and sometimes you may not see any trend line on the chart. this means you need to adjust the period for Pivot Points accordingly
also I made a video. if you watch this video you can see how the script works.
Important! after you add this tool to the chart you may need zoom-in and zoom-out to see all lines!
I thought a lot to make it free or not then I decided make it free and open source. you should know there is a lot of effort for this script, so if you think this is usefull please consider a donation ;)
Enjoy!
TAI - Trend Agreement IndexThe TAI is an experimental indicator we created to begin working on a automated trading algorithm. It takes five signals from our indicators and gives a +1 or -1 for each signal depending on if the signal is bullish or bearish.
This indicator should not be used for direct signals, but for confluence in trend. Long periods of flatness at 5 or -5 will indicate a very strong trend in that direction.
The TAI gives 4 different arrows depending on what the trend is doing.
Blue = Uptrend
Red = Uptrend Lost
Orange = Downtrend
Green = Downtrend Lost
This is a free add-on indicator for traders with access to the DBT MoMo and the Oasis Trading Suite and Bundle Package.
For Access or Questions: Private message us. Thank you.
Market Sentiment ShadingThe Market Sentiment Shading Indicator shades the background of the asset based on signals from the DBT MoMo and Oasis Trading Suite. This indicator was designed to make it very obvious which direction the trend is moving and to keep the trader focused on following trend.
There are four different shades:
Dark Green = Bull
Light Green = Strong Bull
Dark Red = Bear
Light Red = Strong Bear
This is a free add-on indicator to traders with access to the DBT MoMo and Oasis Trading Suite and Bundle Package.
For Access or Questions: Private message us. Thank you.
Pascal's 4h Compression BreakoutThis indicator aims to identify areas of price compression, by looking for two consecutive "inside candles" on the 4h chart.
An inside candle is simply when the current candle's high is lower than the previous candle's high, and the current candle's low is higher than the previous candle's low.
Once price compression is identified, the indicator draws a range based on the highest high and the lowest low of the two inside candles.
1) A break above the range is bullish.
2) A break below the range is bearish.
The script ALSO paints candles in blue that are likely to become strong horizontal S/R levels. This is, again, based on a candle pattern.
Please note:
1) This indicator is only meant to be used on BITMEX:XBTUSD (on the 4h or 1h chart).
2) You will have to apply some discretion to profitably trade with this indicator. Use SFPs and horizontal S/R levels to judge if a breakout is worth trading.
Finally, use the indicator at your own risk. I am not responsible for any losses you may incur.
My objective with this indicator g is to hopefully give you something that you can build upon, and NOT a script to blindly copy trade.
The concept of market compression is powerful. There are countless ways in which you can build a system around it.
This is just the tip of the iceberg.
Cheers.
Trend Following BarWhile analysing a chart, one of the biggest problem is to see if there is trend or not. While thinking about it, I found the idea to analyse moving averages in channel and their momentum according to channel width.
How it Works?
On each bar it creates a channel by highest/lowest point of a MA. highest point is upper line and lowest point is lower line of the MA channel,
It gets highest and lowest point of last 300 bars, (say Price Channel)
If the width of MA channel is greater than certain rate of price channel then it decides there is trend
After it decided there is trend, it calculates the rate between channel and MA. Bigger result means stronger trend.
According to rate of MA channel and the price channel, bar color becomes lighter/darker. so when you look at the bar color you can see the trend strength.
Some details about my idea:
Options:
You can choose following MA types as source: EMA, SMA, RMA, WMA, VWMA
"Period to Check Trend" is the period to create MA channel. Bigger period cause more sensitivity.
"Trend Channel Rate %" is rate of price channel. Price channel created by using highest/lowest of last 300 bars. I did this to make the script works on all time frames correctly.
"Use Linear Regression" is used to get rid of noise. it may cause 1-2 bars latency.
All comments are welcome!.
Enjoy!