Trend Angle IndicatorTrend Angle Indicator
Description
The Trend Angle Indicator is designed to measure the strength of a trend by calculating the angle of the trend.
Specifically, it computes the angle of a Simple Moving Average (SMA) over a specified length and then applies
an Exponential Moving Average (EMA) to the angle for smoothing.
This approach provides a clear indication of the trend's direction and intensity.
It also includes customizable alerts for significant changes in the trend angle and zero-line crossings,
making it a robust tool for traders seeking to gauge market momentum.
Key Features
- **Trend Angle Calculation**: Measures the trend's angle, providing insights into trend direction and strength.
- **SMA and EMA**: Uses SMA for the base calculation and EMA for smoothening the angle values.
- **Visual Trend Indication**: Visually indicates uptrends and downtrends with customizable colors - red and green.
- **Alerts**: Configurable alerts for significant changes in trend angle and zero-line crossings.
Calculation Methodology
1. **Simple Moving Average (SMA):**
- The script calculates the SMA of the close price over a user-defined `input_length`.
2. **Angle Calculation:**
- The height of the trend is calculated by subtracting the SMA value from the SMA value `input_length` bars ago. A higher angle value indicates a stronger trend.
- The angle in degrees is obtained using the arctangent function: \
3. **Exponential Moving Average (EMA):**
- Applies an EMA to the calculated angle to smooth out the values based on a user-defined `input_ma_length`.
4. **Trend Detection:**
The color of the angle plot and filled area provide a quick visual representation of the current trend direction
- The trend angle changes are monitored and visualized with color-coded plots.
- Uptrend: Angle >= 0 uses `upColor` (green).
- Downtrend: Angle < 0 uses `downColor` (red).
#### Using the Indicator
1. **Adding the Indicator:**
- Add the indicator to your TradingView chart by selecting it from the Pine Script library or by pasting the script into the Pine Script editor.
2. **Inputs:**
- **Length**: Defines the period for the SMA calculation.
- **MA Length**: Sets the period for the EMA smoothing.
- **Angle Change Threshold (degrees)**: Defines the threshold for significant angle change alerts.
- **Color Candles**: Optionally colorizes the price candles based on the angle's trend direction.
3. **Customizing Plots:**
- **Angle Plot**: Displays the EMA of the trend angle. The color changes based on whether the trend is up or down.
- **Zero Line**: A horizontal line at zero to easily visualize crossings that signify a change in trend direction.
- **Fill Color**: Fills the area above/below the zero line with colors representing the direction of the trend.
4. **Setting Alerts:**
- **Cross Above Zero**: Triggers an alert when the trend angle crosses above zero, indicating a potential start of an uptrend.
- **Cross Below Zero**: Triggers an alert when the trend angle crosses below zero, indicating a potential start of a downtrend.
- **Significant Angle Change**: Alerts when the angle change exceeds the user-defined threshold, highlighting significant trend changes.
#### Example Usage
To use and customize the Trend Angle Indicator on your chart:
1. **Add to Chart**: Apply the indicator from the TradingView library or by pasting the script into the Pine Script editor.
2. **Configure Inputs**:
- Adjust the `Length` to set the period for the SMA.
- Set the `MA Length` for the EMA smoothing.
- Define the `Angle Change Threshold` for receiving alerts on significant changes.
3. **Display Customization**:
- Enable `Color Candles` to have the price candles reflect the trend direction.
4. **Set Alerts**:
- Use the alert conditions provided to get notified about critical events like zero line crossings or significant angle changes.
在腳本中搜尋"trend"
Trend Reversal PredictorTrend Reversal Predictor - An Indicator for Identifying Potential Trend Reversals
This indicator is designed to help traders identify potential trend reversals in the financial markets. It combines multiple criteria including trend identification, volume analysis, average net price movement, and RSI (Relative Strength Index) crossing its moving average to highlight potential danger zones where a trend reversal may occur.
How it Works:
1. Trend Identification: The script uses the Hull Moving Average (HMA) and Parabolic SAR to determine the prevailing trend. The HMA is a smoothing indicator that reduces lag and provides a clear representation of the trend direction.
2. Danger Zone Identification: The script analyzes volume-related metrics and average net price movement to identify potential danger zones where trend reversals might occur. It calculates the rate of change of buying and selling volume and compares it to their respective averages. Additionally, it considers the average net price movement over a specified period.
3. RSI Integration: The script incorporates the RSI, a momentum oscillator, to evaluate overbought and oversold conditions. It calculates the RSI based on user-defined length and source inputs. It also calculates the RSI's moving average using different types of moving averages (SMA, EMA, etc.) specified by the user.
4. Trend Ending Prediction: By combining the conditions of trend identification, volume analysis, average net price movement, and RSI crossing its moving average, the script identifies potential trend reversal points or danger zones. These danger zones are highlighted on the chart using different colors to represent potential uptrend and downtrend reversals.
How to Use:
2. Danger Zone Highlighting: The script highlights potential danger zones on the chart using orange color for uptrend danger zones and blue color for downtrend danger zones. These danger zones suggest areas where a trend reversal may occur.
3. Additional Analysis: Traders can further analyze the danger zones based on their trading strategy and risk management. Consider other technical indicators, price action, and fundamental factors to make informed trading decisions.
Please note that this script provides potential signals for trend reversals but does not guarantee their occurrence. It is important to use this indicator in conjunction with other technical analysis tools and risk management techniques to make well-informed trading decisions.
By understanding the underlying concepts and using the provided visual cues, traders can leverage the Trend Reversal Predictor to potentially identify potential trend reversals in the markets.
Trend forecasting by c00l75----------- ITALIANO -----------
Questo codice è uno script di previsione del trend creato solo a scopo didattico. Utilizza una media mobile esponenziale (EMA) e una media mobile di Hull (HMA) per calcolare il trend attuale e prevedere il trend futuro. Il codice utilizza anche una regressione lineare per calcolare il trend attuale e un fattore di smorzamento per regolare l’effetto della regressione lineare sulla previsione del trend. Infine il codice disegna due linee tratteggiate per mostrare la previsione del trend per i periodi futuri specificati dall’utente. Se ti piace l'idea mettimi un boost e lascia un commento!
----------- ENGLISH -----------
This code is a trend forecasting script created for educational purposes only. It uses an exponential moving average (EMA) and a Hull moving average (HMA) to calculate the current trend and forecast the future trend. The code also uses a linear regression to calculate the current trend and a damping factor to adjust the effect of the linear regression on the trend prediction. Finally, the code draws two dashed lines to show the trend prediction for future periods specified by the user. If you like the idea please put a boost and leave a comment!
Trend Follow SystemTrend following algorithm:
We take 1- 5 Fibonacci Ema values. 21, 34, 55, 89, 144
2- We normalize the changes of these values over time between 1-100.
3- We take the ema value of 1 length so that it does not follow a horizontal course after the normalization process.
4- In order not to experience too much change, we take the value of sma with a length of 5.
5-We think that when all values are 100, the trend is up, when all values are 0, the trend is down, otherwise the trend is horizontal.
Trend From Volume And Price (TFVAP)Indicator that indicates buying and selling times based on price and volume and who is imposed of the two (VAP).
It uses the trends of the Dow theory (primary: 365 days/1 year, secondary: 90 days/3 months and tertiary: 21 days/3 weeks) and the identification of Elliot waves, both impulse and correction, based on the Fibonacci retracements (23.61% , 38.2%, etc.).
- Purple line is the evolution in percentage of the price in the primary trend
- Blue line is the evolution in percentage of the volume in the primary trend
- White line is the evolution in percentage of the (volume % - price %) in the primary trend, if white line > 0
- Green triangleup is time of start to buy
- Green square is time of stop to buy
- Red triangledown is time of sell
To understand it better:
If the purple line goes up it indicates that the price is rising, if it goes down, that the price is down.
If the blue line is greater than 0 it indicates that there are more purchases than sales, if the blue line is less than 0 it indicates that there are more sales than purchases.
If the white line is greater than 0 there is a high volume of purchases or low sales for the price that there is, it is likely that the price will rise.
If the white line is less than 0 there is a low volume of purchases or high sales for the price that there is, it is likely that the price will go down.
PD: Ignore the chart drawings, the indicator script is only represented at the bottom
Trend Power Index [Fournier-Eaton]Trend Power Index measures the power of a given trend relative to its past strength.
Increasing values indicate strengthening of an upward trend or weakening of a downward trend
Decreasing values indicate strengthening of a downward trend or weakening of an upward trend.
Crossing zero is a confirmation of trend initiation in the respective direction
Note: Parameters may be changed to account for low cycle times and high volatility
As always, please make any suggestions you might have or share problems or successes. Any feedback is helpful.
Trend Analyzer - SwingSwiss SuiteTrend Analyzer aims to define and analyze the trend of a particular asset at a given time using MACD, mathematical functions, and moving average.
It comes in very handy when determining an overall strategy or when you need to decide on whether a trade makes sense or not.
Finally, you can build a complete strategy around the indicator.
QUICK OVERVIEW
When the histogram is green, it means that the asset is currently bullish. Blue shows a possible reversal while red is synonymous with a bearish trend.
In the configuration panel, you can change the length of the data analysis.
The lower the number, the more recent the data captured is. Therefore, it's more predictive.
USE CASES
- You want to make a long trade on a 30mn chart but the indicator is red on the 30mn chart but also in the lower charts showing that the trend is not likely to reverse... You should think twice about that trade.
- You want to short the market on a 2h chart but on the lower charts, the green indicator is showing... Wait for a little bit, you might short at a higher price.
POSSIBLE STRATEGY
Let's take the BTCUSDT Future on the 2h chart :
You can display the indicator twice.
The first one with a length of 5, the second one with a length of 4.
To enter a long trade, wait for the green on length 5 and exit it at blue or red on length 4! It works like magic ;)
Disclaimer:
Trading and investing in the financial markets involves substantial risk of loss and is not suitable for every investor.
All trading strategies are used at your own risk.
Trend Analyzer is part of the SwingSwiss Suite, contact me for more info
trend Screener downtrendthis is in continuation with - previous trend screener i have published, In this code only downtrend screener is there ,This is type of custom screener I searched and made to screen bulk stocks any one can modify it, other may get help out of it.
you can change or add new symbol in input section.
in my code i have made defined and printed last close price when downtrend was true.
1. downtrend = ema (close,55)< ema (close,144) and ema (close,144)< ema (close,388) and ema (close,388)<ema(close,576) and close<ema(close,388)
if the indicator is printing DOWNTREND=TRUE or UPTREND=TRUE then the corresponding stock is in currently in that trend out of the stocks listed in the code
in one code only 40 (max) stocks can be called.
to add more stocks I copied same code and changed the stocks in the code, now you can screen 80 stocks at a time.
This code runs on each bar and checks if the stocks is in uptrend or down trend.
you can customize this screener according to your requirement.
Trend IdentifierTrend Identifier Indicator helps to identify the Trend of intermediate time frame automatically.
It shows the trend and RSI position for Intraday, Daily and Swing time-frame in one go.
IF RSI is > 70 = RSI High
RSI is < 65 > 35 = RSI Side
RSI is < 30 = RSI Low
For Trend High, Low and Side, it makes it's own calculation and identifies the trend for intermediate time frame.
It also shows the standard deviation information.
1sd = 1 standard deviation achieved.
2sd = 2 standard deviation achieved.
Weekly and Monthly std = Weekly and Monthly standard deviation achieved.
Based on your trading style one can hide the other trend std and RSI option.
PM us to obtain the access.
trend Screener List1This is type of custom screener I searched and made to screen bulk stocks any one can modify it, other may get help out of it.
in my code i have made defined
1. uptrend= ema(close,55)> ema(close,144) and ema(close,144)> ema(close,388) and ema(close,388)> ema(close,576) and close>ema(close,388)
2. downtrend = ema(close,55)< ema(close,144) and ema(close,144)< ema(close,388) and ema(close,388)<ema(close,576) and close<ema(close,388)
if the indicator is printing DOWNTREND=TRUE or UPTREND=TRUE then the corresponding stock is in currently in that trend out of the stocks listed in the code
in one code only 40 (max) stocks can be called.
to add more stocks I copied same code and changed the stocks in the code, now you can screen 80 stocks at a time.
This code runs on each bar and checks if the stocks is in uptrend or down trend.
you can customize this screener according to your requirement.
//thanks @QuantNomad from where i solved my problem of screening my top stock for custom trend screener
//idea and motivation taken from
after adding another code you can screen 80 stocks at a time and so on , below following link is how it will look like
Trend-following RSI Strategy According to classical technical analysis, an RSI above 70 should signal overbought conditions and, thus, a sell-signal. Cryptocurrencies represent a whole new asset class, and they reshape the classical concepts of technical analysis. FOMO-buying can be very powerful, and coins can remain in overbought conditions enough to provide excellent opportunities for scalping trades on the upside.
Building a trend-following trading strategy based on the RSI, which is generally considered a contrarian indicator, may sound counter-intuitive. Over 200 backtests prove that this is a very interesting long-term setup.
The setup is optimized on a 4-hours time frame and trading cryptocurrencies versus USD or stable coins.
The strategy tries to catch coins on sustained uptrends to take advantage of further upside.
The strategy's buy-signal triggers when a coin has an RSI above 70 on a 4-hours time frame.
The strategy sells the coin if a profit of 6% is achieved. Alternatively, it closes the position if the RSI drops below 55, indicating a possible weakening of the trend.
The strategy assumes each order to trade 30% of the available capital. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
Trend Score & Bayes ProbabilityThis algo tries to tell you if the market is a trending market or a mean reversion one.
By checking how many times the correlation between the last seven candles is positive or not, and it will show the evolution of the market
Generally a trending market is one above 30 and short swing strategies will work better on this type of markets
It also shows probabilities of different candles setups like 7 Up candles in a row or the probablility of an up candle after 6 Up straight candles
Trend Ribbon---------- INTRODUCTION ----------
Ribbon indicator is a trend indicator based on Moving Average
Default setting is 20 WMA
---------- HOW TO READ? ----------
Color
GREEN RIBBON = UP TREND (Short Term EMA above Long EMA )
RED RIBBON = DOWN TREND (Short Term EMA below Long EMA )
Candle's Position
Candle above ribbon = BULLISH
Candle below ribbon = BEARISH
Width
Width of the Ribbon is indicating the strength of the trend.
Wider ribbon indicating STRONG trend.
Thin ribbon indicating WEAK trend. May indicating Ranging.
---------- HOW TO TRADE? ----------
Only BUY when BULLISH and UPTREND
Avoid trading when ranging.
NOTES:-
Use with other indicators like FiFT or MCDX to measure the strength of the BULL .
Review Global Indices to feel Global market direction to support our trading decision
Trend-following Strategy E v2.7 4HHi All,
Welcome to my third published Trend-following strategy for bitcoin , designed specifically for BITMEX:XBTUSD on 4H.
This is an improvement of my second script (v2.6) to try and reduce 'chop' in consolidating ranges.
In order to set up Alerts for this strategy, I've created a second script called Trend-following Alert E v2.7 4H which you can find here:
Here you will find the "active_long" and "active_long" variables (red and blue lines) that show which positions are being taken by the strategy script.
You can set 'Once per bar close' alerts for this to get your alerts on TV.
For instance, I use 'crossing up @ 0.1' on "active_long" to set an 'Open Long" alert and a 'crossing down @ 0.9' to set a 'Close Long' alert.
The same holds for the 'Open Short' and the 'Close Short' alerts but then for the 'active_short' variable.
As you can see from the backtest I've done my best to create a decent ROI with limited DD.
Compared to the previous version (v2.6), the following has been improved:
- Accuracy has been increased from 49 to 63%
- Max. DD. has been reduced by 40%
- ROI/DD has been increased by 77%
You can also run this backtest/strategy with '100% of equity' but I would advise against trading this as your risk will fundamentally increase.
With a constant order size this strategy should be quite safe to use.
Going from the results it's clear that this strategy excels during clear bull/bear trends but might suffer a little bit during market chop (hopefully less with this update)
There are two inputs that can be modified on this strategy, however I think the current settings are optimal for this market on the 4H candle.
I've also added start and end dates to test specific time periods.
Please let me know if you have any questions.
Trend reversal strategy "muxie2" with safety SL, about 2x PFThis is a modified version of my script muxie1.
The muxie1 is more profitable in backtesting but is more risky as the stop loss is only triggered when a reversal happens and orders 2x more in reverse direction.
The current script works the same but if loss is substancial and reaches the safety stop loss then the trade is closed.
This uses 2 EMA and Stop Loss and Take Profit,
The soft stops don't fire at the precise value but only when the trend reverses
it is actually good for 1D timeframe since 2019, it was however optimised for 1min but I am not able to share scripts for 1m.
Have equivalent code for quantum zone Ftx.
Note the stops are in dollars of btc price, so this makes sense for bitcoin only.
Trend plus !!
This script is like a toolbox for me. I don't use its long & short signals,but with default setting it's suitable for scalping in 1 minute chart in the direction of the trend.. its easy but you need to learn how to use it!!!!
so what do we have in it?
2 ema lines
1 sma line
2 wma line
1 hullma line
4 vwap line
bolinger bands
ichimoku
.....
Trend Trader Karan TTK FreeNow, I have derived this code from Half Trend, after @jyotiprasad mentioned about it. And it was not difficult to convert to look like and work like Trend Trader Karan's Tool, who invested " Lakho Rupaya" and works on the basis of price action trading also.
Let me tell you guys, this is nothing but an ATR based system which people already traded as Half Trend, Super Trend and various names. Half Trend is no more a copyrighted indicator, which stopped marketing after being exposed, but people are still cheating with such indicators.
This Indicator will exactly do same way as the TTK indicator, even both of them overlaps including signals .
You can change colors to make matching/ look like even more similar.
I made a few modifications:
You can now add this to even 1 min chart keeping main trend 1 day or whatever, No more errors
Non repainting, but wait till closure of current candle to confirm the signal
Beware of morphed videos showing profits.
Please spread the word, comment and help others not to fall for such things. Remember, this indicator is just a common trend following indicator and accuracy is good only when mixed with price action etc.
Master Trend StrategyStrategy for the Master Trend indicator. The screen shows a strategy with a deposit of 100 USD. By default, the strategy is STOP TREND. You can setup the strategy to MAIN TREND, if check off "Use stop" and "Use take 1 amount". Default strategy set stop by market when price reached first take and close by revert signal. MAIN TREND strategy trade from signal to signal use deep first take. Adjusting the settings you can create you own strategy.
This strategy has slippage equal 20 and commission 0.02% like on most of exchanges.
Can I get access?
Use the link below to obtain access to this indicator.
Trend Trader Tool by NiteshThis script is very usefull to define the trend of any script.. you will be able to judge the long term trend and the short term trend also.. based on that you will be able to trade intraday swing or positional depends on the time frame you have choosen on the charts for long term and short term respectively.. its as simple as that.. people are taking charge but we will not be charging anything .. its totally free ..:)
SBER's Trend Jinni (Real/False Trend Detector)Trend Jinni - Your trading time friend that helps you take right decisions
Trend Jinni indicator can be used for scalping, day trade, swing trades, short term or for investment analysis of equities, indices, currencies, and commodities. It provides easy to visualize multiple pieces of critical information:
1) Finds opportunity with major trade change information
2) Fake moves / Fake / False or fading trends
2) Support/resistance level
4) When not to be in the trade
5) Stop loss information
Why Trend Jinni? It analyzes information and presents it much before other lagging indicators and adapts to the changes in securities
How to read Trend Jinni?
Jinni line color:
Red = Sell side trade
Green = Buy side trade
Black = No trade zone
Best entry point is the one which is closest to the Jinni price line.
Trade is recommended to be closed when price is below Jinni line (in case of buy side trade) or it is above Jinni line (in case of sell side trade)
What time frame should I use?
1 min = Very aggressive traders / Scalpers
5 min = Aggressive day traders
15 min = Patient day traders
60 min = Swing traders/Short term traders
1 day = Long term traders/Short term traders
Trend Following BreakoutEasy Trend Following Strategy using Highs and Lows breakout of the last X candles to enter and exit trades.
You can easily change the ENTRY and EXIT value in order to find the best settings.
This strategy seems to be working well for $BTC and $ETH on the 4H and 1D.
I didn't play with it too much as I am testing script to trade on the 15 minutes chart with margin. This script can't do this successfully but I hope it can be helpful for what you want to achieve.
Master TrendA unique trend indicator analyzes the market with high accuracy and determines the points for entering a position. The entry point is displayed with arrows and take profit as lines. The algorithm underlying it is protected by copyright.
Trend Following Long Only StrategyThis script tries to ride bull trends and stay out of the market in bear trends.