TrendCalculusThis indicator makes visualising some of the core TrendCalculus algorithm's key information and features both fast and easy for casual analysis.
Interpretation:
a) The light blue channel is the lagged price channel calculated over the timeframe of your choosing for a period of N values. When the current price breaks out of this channel the previous price major high/low can be identified as a trend reversal. This helps in counting trend "waves" and is a rolling visual version of ideas I developed for counting Elliot Waves. For EW analysis, your mileage may vary depending on the asset inspected, but the chart allows you to clearly count waves on a particular scale of time (period) ignoring noise on other time scales.
b) The green/red channel is a support/resistance indicator region that shows the relationship of the current price to the key pivot points on this time scale (period) and these make for good visual indication that the current trend is up (green), or down (red). You may find them helpful for identifying breakouts and placing stops - but this was not their original intention. The pink line is the mid point of closing values in the lagged price channel, and the orange line the mid point of closing values in the current price channel.
About TrendCalculus (TC):
TC is implemented in several languages including Lua, Scala and Python. The Lua implementation is the reference and has the most advanced functionality and delivers a powerful data processing tool for both multi-scale trend reversal detection, reversal labelling, as well as trend feature production - all useful things helping it to produce training data for machine learning models that detect trend changes in real time.
This charting tool includes: (1) two consecutive lagged Donchian channels configured to a common period N, (2) the current price, and (3) the mid price of both Donchian channels. These calculations are all part of the TC codebase, and are brought to life in this charting tool.
Motivation:
By creating a TC charting tool - the machine learning model is swapped for *your eyes* and *your brain*. Using the same inputs as the machine, you can use this chart to learn to detect trend changes, and understand how time frame (long periods, short periods) affect your view of trend change. If you choose to use it to trade, or make investment decisions, do so at your own risk. This indicator does not deliver financial advice.
TrendCalculus is the invention of Andrew Morgan, author of Mastering Spark for Data Science (2017).
The original core TrendCalculus (TC) algorithm itself is published as open-source code on github under a GPL licence, and free to use and develop.
Trend
Fibonacci Moving AverageThe Fibonacci Moving Average is a powerful indicator that takes into account many underlying moving averages to give out an approximate short-term/long-term view of the markets. Its strength lies with dynamic support and resistance levels. I have created this indicator in order to improve trend-following entry positions.
Rational Root TimelineThis script is based on RationalRoot's spiral btc chart. Since I dont know how to make spirals in pinescript I just flattened it out into a readable chart. All this shows is the log price for btc over a 4 year timeframe. I found it interesting how well things line up with this idea. The white circle just shows the current day price location. You need to be on the Daily timeframe to view this correctly.
Elder's Force Index Color BarBased on the Elder's Force Index (EFI) , +/- of the EFI and its ema is used to describe the rise, fall or possible reversal of the market, and finally shown by bar color.
The green bar represents a strong bull and the red bar represents a strong bear;
The blue bar indicates that the downtrend is exhausted and may rise. Likewise the yellow bar.
Of course, it is difficult to buy the bottom and sell the top at any time. This indicator needs to be judged together with the pattern or other indicators that predict reversals in order to increase the win rate.
Happy Trading.
根据Elder's Force Index修改而成,取消了幅图指标,仅用bar color来表现上涨,下跌和转折。
绿色k线代表上涨动能充足,红色k线表示下跌动能充足;
蓝色k线表示下跌力竭,可能会上涨;
黄色k线表示上涨力竭,可能会下跌。
当然,任何时候抄底摸顶都是困难的,该指标需要和形态或者其他预测反转的指标一起判断才能增加成功率。
祝交易愉快。
緑は上昇トレンドで、赤は下落トレンドです;
青は下落が尽きて上昇する可能性があることを示すことで、黄色は上昇が終わり、下落の可能性があることを示しています。
成功率を高めるためには、パターンや反転を予測する他の指標と合わせて判断する必要があります。
Happy Trading。
[LanZhu] - Bursa Index/Sector Trend With PortfolioDescription
Hi all, this is a simple indicator that shows trend of both KLCI and sectors of Bursa . The sector finding is using my Bursa_Sector library. Besides, I have also included portfolio tracker which is by Mohamed3nan in this script.
Usage
Top Trend - Malaysia KLCI Index Trend
Bottom Trend - Any Bursa Sector Trend
Portfolio Table - Copy from Portfolio Tracker by Mohamed3nan
Dynamic Moving AveragesThis indicator uses what I call Dynamic Moving Averages to identify trends. The reason these moving averages are dynamic is that they track different sources based on the trend. Allow me to explain...
Low = identifies the least sellers were willing to sell for in a given period.
High = Identifies the most buyers were willing to buy for in a given period.
Avg Low = Shows the least sellers were willing to sell for over several periods.
Avg High = Shows the least buyers were willing to buy for over several periods.
If, in an uptrend, the closing price closes below the Avg Low, a trend change could be coming to the downside. If, in a downtrend, the closing price closes above the Avg high, a trend change could be coming to the upside.
This indicator uses a single moving average to identify the trend. If price is above this MA, we are in an uptrend. Below it, we are in a downtrend. I recommend using that 50 length as your trend. Any moving averages that are Dynamic, will track the low when above the Trend MA and track the High when below the trend MA.
When Price crosses a Dynamic Moving Average, the trend is likely changing. I recommend using 3 MAs at a time (trend + 2 shorter MAs), but I have provided 7 in total.
Bank Levels - Psychological Levels - Bitcoin, Indices, ForexThis got removed so I'm publishing it again.
What it is:
- This script draws in levels refereed to as bank levels. They are basically psychological/even numbers(40000, 45000, 150, 1850..)
Why doesn't it work on some charts?
- Each pair has a different tick value. You will have to edit the code to make it work on certain pairs. It's pretty simple, take a look.
Flow of RangeThe Flow of Range is calculated by averaging the range for the given bars for the short term oscillations, then averaging the average to determine long term runs.
Above 0 indicates bullish momentum, below 0 indicates bearish momentum.
Notice the behavior of the market when the range is increasing and decreasing - both on the long and short term oscillations.
The indicator should be used in a discretionary manner along with your usual preferred tools.
Price Range TableThe table shows the ranking of the price as a percentage relative to the past candles.
100 ~ highest price of the time frame
0 ~ lowest price of the time frame
Trend Bot by [ToplaninKizlarUcuyoruz]Description:
1. Just a moving average strategy used in this indicator.
2. If the src2 (you can change it in settings) close above highest MA, appear the long signal.
3. And if the src2 close under the lowest MA, appear the short signal.
How is it using:
Green is an uptrend. Red is a downtrend.
-If you see the green up triangle signal, open long (and close short)
-If you see the red down triangle signal, open short (and close long)
*** Please check signals with your own strategy and your favorite indicators ***
inspired by the original open source indicator and added some new setting options:
(click on the image to open the original indicator's page)
Trend System Oscillator Averages RatingThis is a trend system made with multiple oscillator averages designed especially for trending markets such as stocks or crypto.
It can be used with any timeframe.
Its made of multiple moving oscillators such as
RSI
Stochastic
ADX
CCI
AO
MACD
MOM
STOCH RSI
WPR
BP
UO
Avg of all oscillators
It has also a rating, making an avg from all of the oscillators , going from -100 (all ma's are telling to go short ) to 100 ( all ma are telling to go long).
If you have any questions let me know !
Trend System Multiple Moving Averages RatingThis is a trend system made with multiple moving averages designed especially for trending markets such as stocks or crypto.
It can be used with any timeframe.
Its made of multiple moving averages such as
Simple
Weighted
Volume Weighted
Exponential
Double EMA
Arnaud Legoux
Hull MA
Smoothed
Least Squares
Kaufman Adaptive
Triple EMA
Zero Lag
Fractal Adaptive
Variable Index Dynamic Average
Jurik Moving Average
Tillson
Triangular
Avg of all moving averages
It has also a rating, making an avg from all of the moving averages , going from -100 (all ma's are telling to go short ) to 100 ( all ma are telling to go long).
If you have any questions let me know !
HPH's SuperKeltnerThis indicator combines the Supertrend (to determine the main trend direction) with two Keltner channels (used for add and take profit signals) to construct a trend trading system.
These are the available settings:
General
UseTrendChange ➞ toggle trend change alerts and labels
UseAdds ➞ toggle add to position alerts and labels
UseTakeProfits ➞ toggle take profit alerts and labels
PrematureAdds ➞ toggle adding to position as soon as the add channels are left (default is false, so the add signal will only fire once the channels are re-entered)
PrematureTakeProfits ➞ toggle taking profit as soon as the tp channels are left (default is false, so the tp signal will only fire once the channels are re-entered)
Visualization
Show Add Keltner ➞ toggle display of the channels used for adding to the position
Show TP Keltner ➞ toggle display of the channels used for taking profit
Show SuperTrend ➞ toggle display of the Supertrend
Keltner
Standard Keltner channels settings except for the fact that there are two different multipliers. The Keltner TP Multiplier should generally be bigger than the Keltner Add Multiplier , as the channels are hit differently in trending markets. I recommend you to use the visualization settings to show the channels and adjust the settings to your liking.
Supertrend
Standard Supertrend settings, nothing to add here.
Alerts
Use the alert messages to customize what alert text the indicator will send. This makes it possible to use the script to automate trading bots.
By default, the alerts are sent after the candle has closed. This ensures that no repainting is happening. If you like the risk, you can toggle the corresponding WaitFor Confirmation if you wish to receive the signals earlier (max. once per bar).
Enjoy!
Heikin Ashi Cloud overlayThis script displays a cloud representing the bodies of Heikin Ashi candles, which allows to have all the information of the HA technique without losing focus on the classical candles.
Also has arrows to indicate a trend reversal (counterproductive in a range !)
[A7] Fibonacci EMAs (8,21,34,55,89,233) Fibonacci EMAs (8,21,34,55,89,233)
Fibonacci Exponential Moving Averages
8 - aqua
21 - green
34 - blue
55 - yellow
89 - purple
233 - red
trend_vol_stopThe description below is copied from the script's comments. Because TradingView does not allow me to edit this description, please refer to the script's comments section, as well as the release notes, for the most up-to-date information.
----------
Usage:
The inputs define the trend and the volatility stop.
Trend:
The trend is defined by a moving average crossover. When the short
(or fast) moving average is above the long (slow) moving average, the
trend is up. Otherwise, the trend is down. The inputs are:
long: the number of periods in the long/slow moving average.
short: the number of periods in the short/fast moving average.
The slow moving average is shown in various colors (see explanation
below. The fast moving average is a faint blue.
Volatility stop:
The volatility stop has two modes, percentage and rank. The percentage
stop is given in terms of annualized volatility. The rank stop is given
in terms of percentile.
stop_pct and stop_rank are initialized with "-1". You need to set one of
these to the values you want after adding the indicator to your chart.
This is the only setting that requires your input.
mode: choose "rank" for a rank stop, "percentage" for a percentage stop.
vol_window: the number of periods in the historical volatility
calculation. e.g. "30" means the volatility will be a weighted
average of the previous 30 periods. applies to both types of stop.
stop_pct: the volatility limit, annualized. for example, "50" means
that the trend will not be followed when historical volatility rises
above 50%.
stop_rank: the trend will not be followed when the volatility is in the
N-th percentile. for example, "75" means the trend will not be
followed when the current historical volatility is greater than 75%
of previous volatilities.
rank_window: the number of periods in the rank percentile calculation.
for example, if rank_window is "252" and "stop_rank" is "80", the
trend will not be followed when current historical volatility is
greater than 80% of the previous 252 historical volatilities.
Outputs:
The outputs include moving averages, to visually identify the trend,
a volatility table, and a performance table.
Moving averages:
The slow moving average is colored green in an uptrend, red in a
downtrend, and black when the volatility stop is in place.
Volatility table:
The volatility table gives the current historical volatility, annualized
and expressed as a whole number percentage. E.g. "65" means the
instrument's one standard deviation annual move is 65% of its price.
The current rank is expressed, also as a whole number percentage. E.g.
"15" means the current volatility is greater than 15% of previous
volatilities. For convenience, the volatilities corresponding to the
0, 25, 50, 75, and 100th percentiles are also shown.
Performance table:
The performance table shows the current strategy's performance versus
buy-and-hold. If the trend is up, the instrument's return for that
period is added to the strategy's return, because the strategy is long.
If the trend is down, the negative return is added, because the strategy
is short. If the volatility stop is in (the slow moving average is
black), that period's return is excluded from the strategy returns.
Every period's return is added to the buy-and-hold returns.
The table shows the average return, the standard deviation of returns,
and the sharpe ratio (average return / standard deviation of returns).
All figures are expressed as per-period, whole number percentages.
For exmaple, "0.1" in the mean column on a daily chart means a
0.1% daily return.
The number of periods (samples) for each strategy is also shown.
trend_vol_forecastNote: The following description is copied from the script's comments. Since TradingView does not allow me to edit this description, please refer to the comments and release notes for the most up-to-date information.
-----------
USAGE
This script compares trend trading with a volatility stop to "buy and hold".
Trades are taken with the trend, except when price exceeds a volatility
forecast. The trend is defined by a moving average crossover. The forecast
is based on projecting future volatility from historical volatility.
The trend is defined by two parameters:
- long: the length of a long ("slow") moving average.
- short: the length of a short ("fast") moving average.
The trend is up when the short moving average is above the long. Otherwise
it is down.
The volatility stop is defined by three parameters:
- volatility window: determines the number of periods in the historical
volatility calculation. More periods means a slower (smoother)
estimate of historical volatility.
- stop forecast periods: the number of periods in the volatility
forecast. For example, "7" on a daily chart means that the volatility
will be forecasted with a one week lag.
- stop forecast stdev: the number of standard deviations in the stop
forecast. For example, "2" means two standard deviations.
EXAMPLE
The default parameters are:
- long: 50
- short: 20
- volatility window: 30
- stop forecast periods: 7
- stop forecast standard deviations: 1
The trend will be up when the 20 period moving average is above the 50
period moving average. On each bar, the historical volatility will be
calculated from the previous 30 bars. If the historical volatility is 0.65
(65%), then a forecast will be drawn as a fuchsia line, subtracting
0.65 * sqrt(7 / 365) from the closing price. If price at any point falls
below the forecast, the volatility stop is in place, and the trend is
negated.
OUTPUTS
Plots:
- The trend is shown by painting the slow moving average green (up), red
(down), or black (none; volatility stop).
- The fast moving average is shown in faint blue
- The previous volatility forecasts are shown in faint fuchsia
- The current volatility forecast is shown as a fuchsia line, projecting
into the future as far as it is valid.
Tables:
- The current historical volatility is given in the top right corner, as a
whole number percentage.
- The performance table shows the mean, standard deviation, and sharpe
ratio of the volatility stop trend strategy, as well as buy and hold.
If the trend is up, each period's return is added to the sample (the
strategy is long). If the trend is down, the inverse of each period's
return is added to the sample (the strategy is short). If there is no
trend (the volatility stop is active), the period's return is excluded
from the sample. Every period is added to the buy-and-hold strategy's
sample. The total number of periods in each sample is also shown.
Percentage Oscillator SwingThe percentage price oscillator (PPO) is a technical momentum indicator.
It shows the relationship between the close of a candle and the highest/lowest point with a specific lenght in percentage terms.
Rules
The higher percentage on the values upwards, compared to those downwards, the higher the power of the bull trend.
The higher percentage on the values downwards, compared to those upwards, the higher the power of the bear trend.
Trend Momentum with Buyers / Sellers PowerHi there!
With this indicator, you can hunt big trends before they start.
This indicator is combined with RSI and Momentum indicators
It can show you the power of trend and which side it wants to go
It can help you to open a position at the first point of a new trend or at the safe and proven point of the trend, also it can help you to close your position before the trend change its direction (it's not recommended to use it to close your positon, but sometimes it can help you to find the ending point of big pumps)
Rules:
* Baseline is ZERO ( 0 ) line
* When gray line crossover red line, it shows us a powerful uptrend
* When the gray line crossunder the red line it shows us a powerful upward trend
Signals:
* Only use Buy signals(Long) when they are above or crossing-up baseline
* Only use Sell signals(Short) when they are under or crossing-down baseline
* If they both (red and gray lines) are too high and they suddenly starting to come back to baseline, it shows we have a range trend, the trend is weak or a reversal trend is coming!!
!! WARNING: DO NOT USE THIS INDICATOR ALONE !!
Suggestions :
-Use 1H, 4H, daily, or Weekly timeframes
-Use ADX and DI or three WMA's
-Use divergence
-You can use it for scalping but you need to change the inputs (not recommended)
If you have any idea about making new indicators(what information do you want from the chart?), comment please, then I can research and make it for all of us! =)
Stochastic Weighted RSI w/ Divergence + Signals🐢 Tawtis' Stochastic Weighted Relative Strength Index , aka SWRSI
This indicator combines the Stochastic RSI and the classic RSI we all know and love to create a more effective indication of seller/buyer dominance, and in turn, trend. I have named it the "Stochastic Weighted RSI". The script also includes a standard RSI, so you can use both at the same time!
Loads of customisation, pretty much every input can be changed to fit your preferences, however, the default settings are what I would personally recommend for the best results. Either way, feel free to change them!
By looking at the indicator, you can also establish the trend that may follow in the candles to come.
Typically, an indicator reading of over 70 is considered overbought, and an indicator reading of under 30 is considered oversold.
The calculations for the SWRSI and its signals take into account a multitude of exponential moving averages, a Stochastic RSI and a classic RSI, among other things.
There are 2 types of signals provided by the indicator, being strong and weak. You do not have to follow these, and they aren't always accurate (it's impossible to be accurate 100% of the time), however, they can give a good idea of the trend that will ensue.
Strong buy signals are created when:
SWRSI is under 30
SWRSI is over the EMA (default 2) of the SWRSI
Short EMA (default 20) is under the long EMA (default 50)
Strong sell signals are created when:
SWRSI is over 70
SWRSI is under the EMA (default 2) of the SWRSI
Short EMA (default 20) is over the long EMA (default 50)
Weak buy and sell signals are printed as green and red background highlights, and operate the same as the strong buy and sells, without the short/long EMA criterion. Both of these signal types can be toggled off using the settings if you do not want to see them.
Enjoy!
3x EMA fast, 3 x MA slow + BB + PsarThis is a trend system which combines multiple fast EMA + mulitple slower SMA together with bollinger band channel and PSAR.
For entry rules the ones that I use are:
Long
We are inside BB channel, psar is ascending, and our close is above all moving averages or below all EMA'S + 1 SMA
WE can exit either when our close is below all EMA's or when PSAR is descending or when we hit upper/lower BB levels
Short
We are inside BB channel, psar is descnending, and our close is below all moving averages or below all EMA's + 1 SMA
WE can exit either when our close is above all EMA's or when PSAR is ascending or when we hit upper/lower BB levels
If you have any questions, let me know
Burgerized MTF BB + Reverse Engineering RSI (RERSI) + Hidden S&RThis is a mod of a script by informanerd that has helped me immensely with my trading setup.
HUGE HUGE HUGE credit to him! Check him out! He gave me permission to publish this and so here I am, sharing it with you. I hope you all like it!
This version is functionally essentially the same - the difference is in visualization choices and automation.
Instead of selecting different timeframes, and thus having to change not one but 4 timeframes manually every time you look at a different time frame on the main chart, I found (with help from the kind community in the Pine Script chat right here on Tradingview!) a method to choose multiples so that you can have consistent results no matter what timeframe you are looking at.
Default is set to multiples of 2, 4 and 8 which is the system I found works best for myself personally.
I also changed visualization - crossovers are now highlighted in the background of the respective bands. By default I have chosen different transparency levels for crossovers then sitting inside the bands. This destroyed the ability to modify colors the old school way in Style tab, but I have added inputs for all the relative settings so you can modify the visual aspect to your hearts content, as I know my colors make most people barf (something I did when I was younger maybe?).
Hope the nice barfs of color help you quickly see trends and reversals - I know they help me! Happy trading, no matter your timeframe! xD
TradePro Parabolic SAR BackgroundTradePro Parabolic SAR Background
This indicator is a small tribute to youtuber TradePro
The operation is simple. It is the same Parabolic SAR indicator with its default configuration, but in background format. It is a new way to visualize the same information, more understandably. It is in itself a complete trading system, it can be used in conjunction with the traditional Parabolic SAR to locate the stop loss.
Parabolic SAR
In stock and securities market technical analysis, parabolic SAR (parabolic stop and reverse) is a method devised by J. Welles Wilder, Jr., to find potential reversals in the market price direction of traded goods such as securities or currency exchanges such as forex. It is a trend-following (lagging) indicator and may be used to set a trailing stop loss or determine entry or exit points based on prices tending to stay within a parabolic curve during a strong trend.
Similar to option theory's concept of time decay, the concept draws on the idea that "time is the enemy". Thus, unless a security can continue to generate more profits over time, it should be liquidated. The indicator generally works only in trending markets, and creates "whipsaws" during ranging or, sideways phases. Therefore, Wilder recommends first establishing the direction or change in direction of the trend through the use of parabolic SAR, and then using a different indicator such as the Average Directional Index to determine the strength of the trend.
A parabola below the price is generally bullish, while a parabola above is generally bearish. A parabola below the price may be used as support, whereas a parabola above the price may represent resistance.