AWR_WaveTrend Multitimeframe [adapted from LazyBear]I've adapted a script from Lazy Bear (WT trend oscillator)
WaveTrend Oscillator is a port of a famous TS/MT indicator.
When the oscillator (WT1 designed as a line) is above the overbought band (50 to 60) and crosses down the WT2 (dotted line), it is usually a good SELL signal. Similarly, when the oscillator crosses above the signal when below the Oversold band ( (-50 to -60)), it is a good BUY signal.
In this indicator, you can display at the same time, different time frames.
Choice possible are 1 mn, 15 mn, 30 mn, 60 mn, 120 mn, 240 mn, 1D, Week, Month.
Small time frames (1 to 30 mn) are represented by a blue lines (light to dark)
1H is in grey
2H & 4H are in purple (light to dark)
1D is in green
1W is in orange
1M is in black
You can choose which timeframes you want to display for the current period or for the last period closed.
In a few seconds, you perfectly see the selected timeframes trends.
There is also at the bottom right a table summing up all the different values of WT1, WT2 and difference between them.
Positive difference means an upside trend
Negative difference means a downside trend.
Another way of using this indicator is displaying only the difference between WT1 & WT2. It's giving the speed & the direction of all trends. Trends are our friends ...
You can observe the significent times frames and look if they are all positives or negatives or if the speed of lower timeframe cross a longer timeframe of if the speed is decreasing or increasing...
Difference values goes generaly from -20 to 20 (it can exceed a bit but really rare). 12 is already high level of speed.
Many uses possible.
In the exemple posted, I've selected WT1 and WT2 for timeframes 4H, Daily & Weekly.
Marker 1:
Orange lines (WT1) are far below - 50 (-67 here) and cross WT2 pointed lines : weekly buy signal
But this buy signal is balanced by 4H & Daily sell signal = it's marking start of hesitations of main trend !!!!
Marker 2 :
Next buy signal in 4H or daily would normaly confirm the start
Marker 3 :
Sell signal in 4H and daily but weekly has an upside trend ! Start of a counter trend in the trend. To find the perfect timing of that you have to look to lower time frames, because 4H and daily are giving many hesitations signals crossing down & crossing up many times in an overbought zone.
Marker 4 :
End of the counter trend. Most of the time, the countertrend don't go in the "over" zone. That's why if you trading in an counter trend, you have to keep it in mind.
Then a few days later you can see the sell signal. And what a sell signal ! 4H & daily are smashed down really fastly ! Trends change warning !
Marker 5
Long hesitation/change of the trend. Daily WT and 4H are below the weekly trends. Weekly start to go down.
Start of a counter trend inside the trend giving us the best selling signal at her end !
Marker 6 :
Long hesitation/change of the trend.
You have to look in lower time frames to identify the short trend. Difficult to find the best timing to get in. ....
I've add many alerts. When a time frame become positive or negative. When many time frames are positive or negative or above or below 47 level...
Please feel free to explore.
Hope it will help you.
Thanks to Lazybear ! Thousands thanks to Lazybear !
Exemple with difference
带和通道
EMA Cross RSI Filter [EPS]The "EMA Cross RSI Filter " is a technical analysis tool that combines the power of Exponential Moving Averages (EMAs) with the Relative Strength Index (RSI) to provide clear buy and sell signals on financial charts. Utilizing the dynamic interaction between a fast and a medium EMA, it identifies potential trend reversals. This is further refined by the RSI which filters signals based on momentum, with a custom threshold to pinpoint optimal entry and exit points.
🔹 KEY FEATURES
Dynamic EMA Crossover: Detects potential market turns with a fast EMA crossing a medium EMA.
Momentum-Filtered RSI: Enhances signal reliability by incorporating momentum data from the RSI.
Trend-Following Confirmation: Ensures trades are in harmony with the broader market direction by considering the long-term EMA.
Adaptable Parameters: Empowers traders to tailor EMA periods and RSI thresholds to their unique trading blueprint.
🔹 TRADING APPLICATION
Buy Indications: Presented when the fast EMA ascends above the medium EMA while the asset's price surpasses the long-term EMA, and the RSI exceeds the established long level.
Sell Projections: Emerge when the fast EMA descends below the medium EMA, combined with the asset's price dropping beneath the long-term EMA and the RSI falling short of the prescribed short level.
Custom Visibility: Offers the flexibility to display or conceal EMA lines for a streamlined chart analysis experience.
🔹 STRATEGIC INTEGRATION
This analytical tool is optimized for traders who prioritize a disciplined methodology in market entry and exit, bolstered by the validation of trend direction and momentum agreement.
Capital Management Synergy: You can seamlessly integrate these signals with your personal risk management strategy, enhancing the effectiveness of your trades.
Stop-Loss and Take-Profit: It's advisable to set stop-loss orders at the previous swing low for buys, or swing high for sells. For take-profit levels, a Risk to Reward ratio of 1 to 1.5 or a preferred measure can be employed to systematically secure gains.
🔶 APPROACH
This tool caters to both trend-following and breakout strategies. It's designed for traders who want a systematic approach to enter and exit the market with the added confidence of trend and momentum confirmation.
🔹 NOTE
Indicator does not repaint.
Optimal for various timeframes and trading instruments.
Best used in trending markets for higher reliability.
🔶 SETUP
EMA Lengths: Fast (9), Medium (21), Long (200).
RSI Settings: Length (14), Long Threshold (50), Short Threshold (35).
Display Options: Show or hide EMA lines.
By adhering to the principle that no single indicator should dictate a trade, this tool is best used in conjunction with other analyses to confirm signals.
[KG] FCPO Spread*** Released Version 79 ***
------ INTRODUCTION ------
Spread trading where a trader buys one futures contract and sells another contract simultaneously.
Spread trading is popular because it is less risky when compared to outright futures trading. And since it is less risky, spread trading tends to have lower margin requirements.
------ DESCRIPTION ------
This indicator, FCPO Spread, is calculating the spread value of 2 FUTURE CONTRACTS and construct new candles based on Open, Close, High and Low of 2 contracts.
Moving Average were drawn based on spread value.
There's Spread Information at BOTTOM right of the chart which contain the following info.
Spread Contract Timeframe
Future Contracts Symbols for Spread calculation
Close = Spread/Difference of the 2 contracts.
Long Risk = Differences of Current level to SUPPORT
Short Risk = Differences of Current level to RESISTANT
------ ICONS ------
🚀 triggered when Bullish MA lineup, i.e Fast MA is above Slow MA (Default MA period 5,9,13,20).
L ONG is TURTLE Buy signal when spread closes above Turtle Resistant.
💥triggers when Bearish MA lineup i.e Fast MA is below Slow MA (Default MA period 20,13,9,5)..
S HORT is TURTLE Sell signal when spread closes below Turtle Support
Note : Closing price varies depend on chooses timeframe
------ USAGE ------
LONG when L signal appear.
L signal will appear when the spread breaks and closing above Turtle Resistant .
Turtle Resistant is calculated based on previous N candles high where N value (Default 5) is configurable in the setting.
It is better to LONG during uptrend i.e Bullish MA Lineup (represented by 🚀 icon)
SHORT when S signal appear.
S signal will appear when the spread breaks and closing below Turtle Support .
Turtle Support is calculated based on previous N candles low where N value (Default 5) is configurable in the setting.
It is better to SHORT during downtrend i.e BEARISH MA Lineup (represented by 💥 icon)
ATR Bands with Optional Risk/Reward Colors█ OVERVIEW
This indicator projects ATR bands and, optionally, colors them based on a risk/reward advantage for those who trade breakouts/breakdowns using moving averages as partial or full exit points.
█ DEFINITIONS
► True Range
The True Range is a measure of the volatility of a financial asset and is defined as the maximum difference among one of the following values:
- The high of the current period minus the low of the current period.
- The absolute value of the high of the current period minus the closing price of the previous period.
- The absolute value of the low of the current period minus the closing price of the previous period.
► Average True Range
The Average True Range was developed by J. Welles Wilder Jr. and was introduced in his 1978 book titled "New Concepts in Technical Trading Systems". It is calculated as an average of the true range values over a certain number of periods (usually 14) and is commonly used to measure volatility and set stop-loss and profit targets (1).
For example, if you are looking at a daily chart and you want to calculate the 14-day ATR, you would take the True Range of the previous 14 days, calculate their average, and this would be the ATR for that day. The process is then repeated every day to obtain a series of ATR values over time.
The ATR can be smoothed using different methods, such as the Simple Moving Average (SMA), the Exponential Moving Average (EMA), or others, depending on the user's preferences or analysis needs.
► ATR Bands
The ATR bands are created by adding or subtracting the ATR from a reference point (usually the closing price). This process generates bands around the central point that expand and contract based on market volatility, allowing traders to assess dynamic support and resistance levels and to adapt their trading strategies to current market conditions.
█ INDICATOR
► ATR Bands
The indicator provides all the essential parameters for calculating the ATR: period length, time frame, smoothing method, and multiplier.
It is then possible to choose the reference point from which to create the bands. The most commonly used reference points are Open, High, Low, and Close, but you can also choose the commonly used candle averages: HL2, HLC3, HLCC4, OHLC4. Among these, there is also a less common "OC2", which represents the average of the candle body. Additionally, two parameters have been specifically created for this indicator: Open/Close and High/Low.
With the "Open/Close" parameter, the upper band is calculated from the higher value between Open and Close, while the lower one is calculated from the lower value between Open and Close. In the case of bullish candles, therefore, the Close value is taken as the starting point for the upper band and the Open value for the lower one; conversely, in bearish candles, the Open value is used for the upper band and the Close value for the lower band. This setting can be useful for precautionally generating broader bands when trading with candlesticks like hammers or inverted hammers.
The "High/Low" parameter calculates the upper band starting from the High and the lower band starting from the Low. Among all the available options, this one allows drawing the widest bands.
Other possible options to improve the drawing of ATR bands, aligning them with the price action, are:
• Doji Smoothing: When the current candle is a doji (having the same Open and Close price), the bands assume the values they had on the previous candle. This can be useful to avoid steep fluctuations of the bands themselves.
• Extend to High/Low: Extends the bands to the High or Low values when they exceed the value of the band.
• Round Last Cent: Expands the upper band by one cent if the price ends with x.x9, and the lower band if the price ends with x.x1. This function only works when the asset's tick is 0.01.
► Risk/Reward Advantage
The indicator optionally colors the ATR bands after setting a breakpoint, one or two risk/reward ratios, and a series of moving averages. This function allows you to know in advance whether entering a trade can provide an advantage over the risk. The band is colored when the ratio between the distance from the break point to the band and the distance from the break point to the first available moving average reaches at least the set ratio value. It is possible to set two colorings, one for a minimum risk/reward ratio and one for an optimal risk/reward ratio.
The break point can be chosen between High/Low (High in case of breakout, Low in case of breakdown) or Open/Close (on breakouts, Close with bullish candles or Open with bearish candles; on breakdowns, Close with bearish candles or Open with bullish candles).
It is possible to choose up to 10 moving averages of various types, including the VWAP with the Anchor Period (2).
Depending on the "Price to MA" setting, the bands can be individually or simultaneously colored.
By selecting "Single Direction," the risk/reward calculation is performed only when all moving averages are above or below the break point, resulting in only one band being colored at a time. For this reason, when the break point is in between the moving averages, the calculation is not executed. This setting can be useful for strategies involving price movement from a level towards a series of specific moving averages (for example, in reversals starting from a certain level towards the VWAP with possible partial take profits on some previous moving averages, or simply in trend following towards one or more moving averages).
Choosing "Both Directions" the risk/reward ratio is calculated based on the first available moving averages both above and below the price. This setting is useful for those who operate in range bound markets or simply take advantage of movements between moving averages.
█ NOTE
This script may not be suitable for scalping strategies that require immediate entries due to the inability to know the ATR of a candle in advance until its closure. Once the candle is closed, you should have time to place a stop or stop-limit order, so your strategy should not anticipate an immediate start with the next candle. Even more conveniently, if your strategy involves an entry on a pullback, you can place a limit order at the breakout level.
(1) www.tradingview.com
(2) For convenience, the code for the Anchor Period has been entirely copied from the VWAP code provided by TradingView.
Chop Zone 2X [EPS]This indicator, like the one shared previously Chop Zone
The Chop Zone script transforms traditional market trend analysis by leveraging the power of Exponential Moving Averages (EMAs) and their angles. Designed to identify market trends with a higher degree of accuracy, this script offers traders an innovative approach to detect uptrends, downtrends, and neutral market phases.
🔶 USAGE
Snapshot:
The indicator's core functionality revolves around the calculation of the EMA angle, providing a visual representation of market trends through color-coded columns:
Green Columns: Indicate an uptrend, suggesting bullish market conditions.
Red Columns: Signal a downtrend, highlighting bearish market conditions.
Transparent Columns: Represent neutral market conditions, indicating no significant trend.
The angle of the EMA is calculated over a user-defined period, adapting to different trading strategies and timeframes for a customized analysis.
🔶 DETAILS
At the heart of the Chop Zone is its unique angle calculation method. By assessing the slope of the EMA, the script quantifies the strength and direction of the market trend. This calculation is further refined by considering the highest highs and lowest lows over a specified period, making the indicator adaptable to varying market volatilities.
EMA Angle Limits:
Uptrend Threshold: User-defined angle for identifying uptrends.
Downtrend Threshold: User-defined angle for recognizing downtrends.
The script also allows for extensive customization, including the selection of the source data for EMA calculations and the length of the EMA, thereby catering to diverse trading preferences.
🔶 SETTINGS
Source: Choose between close, open, high, low, etc., for the EMA calculation.
EMA Length: Define the length of the EMA for trend analysis.
EMA Angle Thresholds: Set the upper and lower angle limits to categorize market trends.
Color Settings: Customize the colors for uptrend, downtrend, and neutral trends for easy visualization.
🔹 Note
The Chop Zone indicator is not just a tool for trend identification; it's a comprehensive system for understanding market dynamics. The unique angle calculation offers a fresh perspective on EMA analysis, making it a valuable addition to any trader's toolkit. However, users should integrate this indicator into their broader trading strategy, considering other market factors and indicators for optimal decision-making.
Chop Zone [EPS]The Chop Zone script transforms traditional market trend analysis by leveraging the power of Exponential Moving Averages (EMAs) and their angles. Designed to identify market trends with a higher degree of accuracy, this script offers traders an innovative approach to detect uptrends, downtrends, and neutral market phases.
🔶 USAGE
The indicator's core functionality revolves around the calculation of the EMA angle, providing a visual representation of market trends through color-coded columns:
Green Columns: Indicate an uptrend, suggesting bullish market conditions.
Red Columns: Signal a downtrend, highlighting bearish market conditions.
Transparent Columns: Represent neutral market conditions, indicating no significant trend.
The angle of the EMA is calculated over a user-defined period, adapting to different trading strategies and timeframes for a customized analysis.
🔶 DETAILS
At the heart of the Chop Zone is its unique angle calculation method. By assessing the slope of the EMA, the script quantifies the strength and direction of the market trend. This calculation is further refined by considering the highest highs and lowest lows over a specified period, making the indicator adaptable to varying market volatilities.
EMA Angle Limits:
Uptrend Threshold: User-defined angle for identifying uptrends.
Downtrend Threshold: User-defined angle for recognizing downtrends.
The script also allows for extensive customization, including the selection of the source data for EMA calculations and the length of the EMA, thereby catering to diverse trading preferences.
🔶 SETTINGS
Source: Choose between close, open, high, low, etc., for the EMA calculation.
EMA Length: Define the length of the EMA for trend analysis.
EMA Angle Thresholds: Set the upper and lower angle limits to categorize market trends.
Color Settings: Customize the colors for uptrend, downtrend, and neutral trends for easy visualization.
🔹 Note
The Chop Zone indicator is not just a tool for trend identification; it's a comprehensive system for understanding market dynamics. The unique angle calculation offers a fresh perspective on EMA analysis, making it a valuable addition to any trader's toolkit. However, users should integrate this indicator into their broader trading strategy, considering other market factors and indicators for optimal decision-making.
Trailing Support and Resistance Zones
This Script code is used to plot support and resistance levels on a chart. Here's how it works:
Input Parameters: The code starts by defining an input parameter lookback_period, which determines the number of bars to look back when calculating support and resistance levels. You can adjust this parameter based on your preferences or trading strategy. I recommend 50 for longer trends and larger profits.
Calculate Support and Resistance Levels: The calculateSR() function is defined to calculate the support and resistance levels based on the lowest low and highest high prices within the specified lookback period. It uses the ta.lowest() function to find the lowest low price and the ta.highest() function to find the highest high price over the specified number of bars.
Plotting: The function calculateSR() is called to compute the support and resistance levels, and the results are stored in the variables support_level and resistance_level, respectively. These levels are then plotted on the chart using the plot() function. The support levels are plotted in green, while the resistance levels are plotted in red. Both lines are drawn with a specified line width and style (plot.style_stepline).
By visualizing these support and resistance levels on the chart, you can identify potential price levels where the market might find buying or selling pressure. These levels are crucial for making trading decisions, such as setting entry and exit points, defining stop-loss and take-profit levels, and assessing the overall market sentiment.
I recommend using this indicator together with my morning & Evening Star Indicator to find entry zones.
arpit bollinger bandStrategy Overview:
This strategy utilizes Bollinger Bands based on a 20-period Exponential Moving Average (EMA) with a standard deviation multiplier of 1.5. It is designed to generate early trading signals based on the relationship between the price action and the Bollinger Bands.
Bollinger Bands Calculation:
The upper Bollinger Band is calculated as the 20-period EMA of the closing prices plus 1.5 times the standard deviation of the same period.
The lower Bollinger Band is calculated as the 20-period EMA of the closing prices minus 1.5 times the standard deviation.
Entry Criteria:
Buy Signal: A buy signal is generated when the current candle's high exceeds the high of the candle two periods ago, which had closed below the lower Bollinger Band. This condition implies an anticipation of a bullish reversal.
Sell Signal: A sell signal is generated when the current candle's low falls below the low of the candle two periods ago, which had closed above the upper Bollinger Band. This condition suggests an anticipated bearish reversal.
Stop Loss and Take Profit:
The stop loss for a buy order is set slightly below the low of the current candle, and for a sell order, it is set slightly above the high of the current candle.
The take profit level is determined based on a predefined risk-reward ratio of 1:3. This means the take profit target is set at a distance three times greater than the distance between the entry price and the stop loss.
Risk Management:
The strategy includes an input option to adjust the risk-reward ratio, allowing for flexibility in managing the trade's potential risk versus reward.
Trade Execution:
The strategy automatically plots the buy and sell signals on the chart and executes the trades according to the defined conditions. It also visually indicates the stop loss levels for each trade.
Usage Notes:
This strategy is designed for use in the TradingView platform using Pine Script version 5.
It is important to backtest and paper trade the strategy before using it in live trading to understand its performance characteristics and risk profile.
The strategy should be used as part of a comprehensive trading plan, considering market conditions, trader risk tolerance, and personal trading goals.
Normal Weighted Average PriceIntroducing the "Normal Weighted Average Price" (NWAP) by OmegaTools. This innovative script refines the traditional concept of VWAP by eliminating volume from the equation, offering a unique perspective on price movements and market trends.
The NWAP script is meticulously crafted to provide traders with a straightforward yet powerful tool for analyzing price action. By focusing solely on price data, the NWAP offers a clear, volume-independent view of the market's average price, augmented with bands that denote varying levels of price deviation.
Key Features:
NWAP Core: At the heart of this script is the Normal Weighted Average Price line, offering a pure, volume-excluded average price over your chosen timeframe.
Dynamic Bands: Includes upper and lower bands, plus extreme levels, calculated using the standard deviation from the NWAP. These bands help identify potential overbought and oversold conditions.
Customizable Timeframe: Whether you're a day trader or a long-term investor, the NWAP script allows you to set your preferred analysis period, ensuring relevance to your trading strategy.
Bands Width Adjustment: Tailor the width of the deviation bands with a simple multiplier to fit your risk tolerance and trading style.
Visual Zones: The script visually demarcates premium and discount zones between the bands, aiding in quick assessment of market conditions.
Usage Tips:
Ideal for traders seeking a volume-neutral method to gauge market sentiment and potential reversal points.
Use the NWAP and its bands to refine entry and exit points, especially in markets where volume data may be less reliable or skewed.
Combine with other technical indicators for a comprehensive trading strategy.
Turtle Trading Strategy@lihexieThe full implementation of the Turtle Trading Rules (as distinct from the various truncated versions circulating within the community) is now ready.
This trading strategy script distinguishes itself from all currently publicly available Turtle trading systems on Tradingview by comprehensively embodying the rules for entries, exits, position management, and profit and loss controls.
Market Selection:
Trade in highly liquid markets such as forex, commodity futures, and stock index futures.
Entry Strategies:
Model 1: Buy when the price breaks above the highest point of the last 20 trading days; Sell when the price drops below the lowest point of the last 20 trading days. When an entry opportunity arises, if the previous trade was profitable, skip the current breakout opportunity and refrain from entering.
Model 2: Buy when the price breaks above the highest point of the last 55 trading days; Sell when the price drops below the lowest point of the last 55 trading days.
Position Sizing:
Determine the size of each position based on the price volatility (ATR) to ensure that the risk of each trade does not exceed 2% of the account balance.
Exit Strategies:
1. Use a fixed stop-loss point to limit losses: Close long positions when the price falls below the lowest point of the last 10 trading days.
2. Trailing stop-loss: Once a position is profitable, adjust the stop-loss point to protect profits.
Pyramiding Rules:
Unit Doubling: Increase position size by one unit every time the price moves forward by n (default is 0.5) units of ATR, up to a maximum of 4 units, while also raising the stop-loss point to below the ATR value at the level of additional entries.
海龟交易法则的完整实现(区别于当前社区各种有阉割海龟交易系统代码)
本策略脚本区别于Tradingview目前公开的所有的海龟交易系统,完整的实现了海龟交易法则中入场、出场、仓位管理,止盈止损的规则。
市场选择:
选择流动性高的市场进行交易,如外汇、商品期货和股指期货等。
入市策略:
模式1:当价格突破过去20个交易日的高点时,买入;当价格跌破过去20个交易日的低点时,卖出。当出现入场机会时,如果上一笔交易是盈利的,那么跳过当前突破的机会,不进行入场。
模式2:当价格突破过去55个交易日的高点时,买入;当价格跌破过去55个交易日的低点时,卖出。
头寸规模:
根据价格波动性(ATR)来确定每个头寸的大小, 使每笔交易的风险不超过账户余额的2%。
退出策略:
1. 使用一个固定的止损点来限制损失:当多头头寸的价格跌破过去10个交易日的低点时,平仓止损。
2. 跟踪止损:一旦头寸盈利,移动止损点以保护利润。
加仓规则:
单位加倍:每当价格向前n(默认是0.5)个单位的ATR移动时,就增加一个单位的头寸大小(默认最大头寸数量是4个),同时将止损点提升至加仓点位的ATR值以下。
U-Oscillator Pro [UAlgo]The U-Oscillator Pro is a comprehensive technical analysis tool designed to assist traders in making informed decisions in financial markets. This indicator integrates various features including oscillator, bands, trend clouds divergences, and confluence signals to provide a comprehensive view of market dynamics.
🔶 Oscillator :
U-Oscillator uses an amalgamation of price, momentum, and volatility elements to provide a comprehensive market view. It provides a common output about the market and is easy to use.
Oscillator Features :
Customizable Oscillator Length : This parameter sets the length of the oscillator.
Use Machine Learning On Oscillator Calculation : By evaluating the output of the oscillator, this data set calculates a weighted average of the data set by taking each point with a certain weight and using these weights. This is often used in situations where some data points are more important or need to have more impact than others. A weight for each point that the oscillator calculates may represent the importance or impact of that point. By including all these calculations in the oscillator, it provides a result.
Reversal Signals : Determines whether to display reversal signals on the chart. When set to true, it enables the plotting of reversal signals based on certain conditions for both long (buy) and short (sell) signals. These signals can be interpreted as "potential" turning points of the market. Signals are represented by small shapes on the chart, with green indicating short (sell) signals and red indicating long (buy) signals.
🔶 Extreme Bands:
These regions can be described as the possible reversal regions of the price and obtained by deviations of oscillator values.
Extreme Bands Features:
Band Length : Determines the length of the bands.
Show Extreme Bands : Option to display the extreme bands.
Show Middle Line : Option to show the middle line.
Transparency Mode : Adjust the transparency level of the bands.
It would not be wrong to consider it as potential overbought and oversold regions.
Example:
🔶 Divergences :
The divergence calculation in this script identifies potential reversals by analyzing pivot points in the oscillator. Here's how it works:
Divergence Features :
Pivot Length: The user specifies the length of the divergence calculation (pivotLength), which determines the number of bars to consider for pivot analysis.
Pivot Identification: The script searches for pivot highs and lows within the specified length. These pivots indicate potential turning points in the oscillator.
Divergence Conditions: Different conditions are evaluated based on the identified pivots to determine the presence of bullish or bearish divergences:
Regular Bullish Divergence: Occurs when the oscillator makes a lower low while the price makes a higher low.
Hidden Bullish Divergence: Occurs when the oscillator makes a higher low while the price makes a lower low.
Regular Bearish Divergence: Occurs when the oscillator makes a higher high while the price makes a lower high.
Hidden Bearish Divergence: Occurs when the oscillator makes a lower high while the price makes a higher high.
Visualization: Detected divergences are plotted on the chart using shapes and lines, indicating potential reversal points. Users can choose which types of divergences to display using input options.
🔶 Trend Cloud :
This section can provide information about the long-term direction of the price and the current status of the trend. The increase in the visibility of the cloud can provide information about the strength of the trend.
Trend Cloud Features :
Show Trend Cloud: This setting allows you to choose whether the trend cloud is displayed on the chart or not.
Fast Trend Cloud Mode: This feature can be used to provide information about the cloud's shorter-term trend and its strength.
Classic Mode of Trend Cloud :
Fast Mode of Trend Cloud :
🔶 Confluence :
This section of the script aims to identify potential reversal confluences based on the deviation between the price and a combination of oscillator values. The confluence signals are categorized into light and heavy, representing different levels of potential reversal strength.
Confluence Features :
Show Light/Heavy Reversal Confluences: This setting allows users to control the visibility of the confluence signals on the chart.
Confluence Term: Users can select the term for calculating the confluence, which in turn affects the sensitivity of the confluence signals. The available options are Short, Medium, and Long.
Confluence Signal Conditions:
Light Bearish Reversal Confluence: This type of confluence occurs when there is a moderate deviation between the price and the oscillator values, indicating a potential shift towards a bearish reversal in the market sentiment.
Heavy Bearish Reversal Confluence: In contrast, a heavy bearish reversal confluence signifies a significant deviation between the price and the oscillator values, suggesting a strong indication of a bearish reversal in the market sentiment.
Light Bullish Reversal Confluence: Similar to light bearish reversal confluence, light bullish reversal confluence occurs with a moderate deviation between the price andthe oscillator values, indicating a potential shift towards a bullish reversal in the market sentiment.
Heavy Bullish Reversal Confluence: On the other hand, heavy bullish reversal confluence indicates a substantial deviation between the price andthe oscillator values, suggesting a strong indication of a bullish reversal in the market sentiment.
Plotting Confluence Signals: Shapes (triangles) are plotted on the chart to indicate the presence of confluence signals. Red triangles denote bearish signals, while green triangles denote bullish signals.
This confluence analysis provides traders with additional insights into potential reversal points or helping them make more informed trading decisions.
Example For Confluence :
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Trending RSI [ChartPrime]Trending RSI takes a new approach to RSI intended to provide all of the missing information that traditional RSI lacks. Questions such as "why does the price continue to decline even during an oversold period?" can be aided using the Trending RSI.
These types of movements are due to the market still trending and traditional RSI can not tell traders this. Trending RSI fixes this by introducing trend information back into the oscillator. By reverse engineering RSI we have been able to make a new indicator that is no longer bound between 0 and 100. Instead it provides the traditional 70 and 30 zones as bands, and 50 as a center line that still represent these zones perfectly. This transforms RSI into a centered oscillator instead of a normalized oscillator. When the market is trending our indicator represents this as the center line being below or above 0. Just like MACD the center line is colored to represent the market phases. This helps in identifying reversals more clearly by adding a layer of confluence to the already renowned RSI. We have also included a novel filtering technique that has a low lag to smoothing ratio. This is primarily used to smooth the bands by default but you can also utilize this on the RSI. Several alerts have been included to provide users with easy to configure signals.
You can use the center line as a directional filter for your trades by only picking trades in the direction of the center line. When the center line is above 0, the market is trending up. Conversely, when the center line is below 0 the market is trending down trend. Use the polarity of the center line to estimate the strength of retracements from the oversold and overbought zones. We have also included a special moving average to help you find the momentum of a move. The Binomial MA filter approximates a normal curve making it similar to a gaussian filter. We have also included standard divergences which are fully configurable in the settings. Finally, we have built this indicator to be compatible with the built in multi time frame option to allow users to freely pick the time frame they wish to use. It is worth noting that due to the limitations of the standard MTF implementation divergences will not plot as expected when using time frames outside of the charts time frame. This is standard and also affects the built in RSI.
All of the colors are fully adjustable with the option to enable or disable the glow effect. We have also designed this indicator to only display the information for plots that are enabled to reduce clutter and provide a cleaner charting experience. All alerts are built to work with the standard alert builder and do not have to be enabled or disabled inside of the indicator.
Included Alerts:
RSI Cross Over Center
RSI Cross Under Center
RSI Cross Under Upper Range
RSI Cross Over Upper Range
RSI Cross Over Lower Range
RSI Cross Under Lower Range
RSI Cross Over MA
RSI Cross Under MA
RSI Cross Over 0
RSI Cross Under 0
Center Cross Over 0
Center Cross Under 0
Center Bullish
Center Bearish
Bullish Divergence
Bearish Divergence
In wrapping up, the Trending RSI aims to enhance the conventional RSI by adding trend insights directly into the oscillator, addressing the gap that traditional RSI leaves regarding market trends. This version of RSI breaks away from the 0 to 100 range, offering bands and a center line that better represent market conditions. It includes a set of features like the Binomial MA for momentum analysis, configurable settings for divergence detection, and compatibility with multi-time frame analysis. The color customization and glow effects aim to improve visual clarity, and the inclusion of alerts is designed to streamline alert configuration. Overall, this indicator is designed to provide a more view of the markets, suitable for traders looking to incorporate trend analysis into their RSI-based strategies.
Enjoy
Bandwidth Bands - Silverman's rule of thumbWhat are Bandwidth Bands?
This indicator uses Silverman Rule of Thumb Bandwidth to estimate the width of bands around the rolling moving average which takes in the log transformation of price to remove most of price skewness for the rest of the volatility calculations and then a exp() function is performed to convert it back to a right skewed distribution. These bandwidths bands could offer insights into price volatility and trading extremes.
Silverman rule of thumb bandwidth:
The Silverman Rule of Thumb Bandwidth is a heuristic method used to estimate the optimal bandwidth for kernel density estimation, a statistical technique for estimating the probability density function of a random variable. In the context of financial analysis, such as in this indicator, it helps determine the width of bands around a moving average, providing insights into the level of volatility in the market. This method is particularly useful because it offers a quick and straightforward way to estimate bandwidth without requiring extensive computational resources or complex mathematical calculation
The bandwidth estimator automatically adjust to the characteristics of the data, providing a flexible and dynamic measure of dispersion that can capture variations in volatility over time. Standard deviations alone may not be as adaptive to changes in data distributions. The Bandwidth considers the overall shape and structure of the data distribution rather than just focusing on the spread of data points.
Settings
Source
Sample length
1-4 SD options to disable or enable each band
Bollinger OTT SpreadBollinger OTT Spread (BOOTS) is a development combining Bollinger Bands with Optimized Trend Tracker (OTT) Indicator by Anıl Özekşi.
Bollinger Bands have originally 3 lines: Simple Moving Average (Middle Line), Upper Band and Lower Band.
BOOTS concentrates on the upper and lower Bollinger band lines.
First, it calculates the OTT using the UPPER and LOWER Bollinger Bands in a period of time (default lengths are 2) instead of closing prices.
After that, Upper and lower bands have more constant values.
There are 2 lines in BOOTS:
-The top (cyan) line is originally an OTT of the Upper Bollinger Band. (BOOTShigh)
-The bottom line (purple) is also an OTT line but conversely uses Lower Bollinger Band in the same period. (BOOTSlow)
Default values:
Bollinger Bands Moving AveragePeriod: 2 Bars
OTT Length: 2 Bars
OTT Optimizing coefficient (percent): %10
Bollinger Bands Standart Deviation Multiplier: 2 (not adjustable)
These values are designed for daily time frame, so they have to be optimized in other timeframes by the user. (Ex: Higher values can be considered in lower time frames)
Originally, Bollinger Bands used a Simple Moving Average in their calculation, but this time, Anıl Özekşi prefers VIDYA (Variable Dynamic Moving Average = VAR) instead of a Simple Moving Average.
Bollinger Bands cannot create significant BUY & SELL signals considering their original logic, but the primary purpose of BOOTS is to have substantial trading signals:
BUY when the price crosses above the BOOTSLower line (purple line)
STOP when the price crosses back below the BOOTSLower line (purple line)
SELL when the price crosses below the BOOTSUpper line (cyan line)
STOP when the price crosses back above the BOOTSUpper line (cyan line)
The price zone between the two lines is the flat zone; traders don't consider taking new positions in that area between the two lines.
Developer Anıl Özekşi advises that traders may have more accurate signals when using a short-period moving average instead of closing prices. So, I added a moving average with the same default length of 2 , which was used in Bollinger Bands calculation. You can check the "SHOW MOVING AVERAGE?" box on the settings tab of the indicator.
Multiple OTTMultiple OTT (MOTT) is a development on the Optimized Trend Tracker (OTT) indicator of Anıl Özekşi that is shared in his algorithmic trading courses by himself.
There are 5 lines in MOTT:
-The top (cyan) line is originally an OTT line, which uses the Highest price values in a default length of 80 bars in its calculation.
-The bottom line (purple) is also an OTT line but conversely uses the Lowest prices in the same period.
-The dotted third line in the middle (green) is the exact average of the top and bottom lines.
-The dotted Cyan line: (Top+Middle)/2 and
dotted Purple line: (Bottom+Middle)/2 are also the averages of their two neighbors.
Default values:
Length of the Highest and Lowest Price period (High & Low Period): 80
OTT optimizing percent: 1.4
OTT Length: 2 (Also Moving Average Length when displayed)
Default Moving Average Type of OTT Calculation: VIDYA(VAR) VARIABLE INDEX DYNAMIC MOVING AVERAGE
These values are designed for daily time frame, so they have to be optimized in other timeframes by the user. (Ex: Higher values can be considered in lower time frames)
BUY when the price crosses above the MOTT lines.
STOP when the price crosses back below the same MOTT line.
SELL when the price crosses below the MOTT lines.
STOP when the price crosses back above the same MOTT line.
As you can see, every line can be considered a trade signal like Fibonacci Levels. If optimized meaningfully, lines can also show users significant support and resistance levels. Traders can use those levels in partial buys and sells.
Developer Anıl Özekşi advises that traders may have more accurate signals when using a short-period moving average instead of closing prices. So, I added the VIDYA moving average with the same default length ( 2 ) used in OTT calculation. You can check the "SHOW MOVING AVERAGE?" box on the settings tab of the indicator.
Progressive Trend TrackerProgressive Trend Tracker (PTT) is a development combining Bollinger Bands with Highest Highs and Lowest Lows by K.Hasan Alpay & Anıl Özekşi.
Bollinger Bands have originally 3 lines: Simple Moving Average (Middle Line), Upper Band and Lower Band.
PTT concentrates on the upper and lower Bollinger band lines.
First, it calculates the bands using the Highest & Lowest prices in a period of time (Faster period and period) instead of closing prices.
Then, PTT takes the lowest values of the calculated upper band and, conversely, the highest values of the calculated lower band in a Slower period.
Default values:
Faster Period: 5
Period: 5
Bollinger Band Moving Average Period: 2
Slower Period: 10
These values are designed for daily time frame, so they have to be optimized in other timeframes by the user. (Ex: Higher values can be considered in lower time frames)
One more significant difference considering original Bollinger Bands is that PTT uses VIDYA (Variable Dynamic Moving Average = VAR) in the calculation instead of a Simple Moving Average.
Bollinger Bands cannot create significant BUY & SELL signals considering their original logic, but the primary purpose of PTT is to have substantial trading signals:
BUY when the price crosses above the PTT Lower line (cyan line)
STOP when the price crosses back below the PTT Lower line (cyan line)
SELL when the price crosses below the PTT Upper line (cyan line)
STOP when the price crosses back above the PTT Upper line (cyan line)
Developer Anıl Özekşi advises that traders may have more accurate signals when using a short-period moving average instead of closing prices, so I added the VIDYA moving average with the same default length ( 2 ), which is used in Bollinger Bands calculation. You can check the "SHOW MOVING AVERAGE?" box on the settings tab of the indicator.
Tangent Angle Trend Lines by Mustafa KAPUZThis custom indicator dynamically draws trend lines based on the tangent angle calculated from the current price level, offering a unique perspective on market momentum and potential reversal points. Designed for traders who appreciate the integration of geometry in technical analysis, this tool provides an innovative approach to identifying trend strength and direction.
Features:
Dynamic Angle Adjustment: The indicator automatically adjusts the angle of the trend lines according to the current price magnitude, ensuring relevance across various price levels and market conditions.
Period Customization: Users can set the period over which the highest and lowest prices are considered, allowing for flexibility in analysis over different time frames.
High and Low Price Labels: Clearly labeled highest and lowest prices within the selected period provide quick insights into critical levels.
Angle-Based Trend Lines: Utilizes the tangent of specified angles to project future price paths, helping to visualize potential trend continuations or reversals.
How It Works:
The indicator first calculates the highest and lowest prices over a user-defined period.
It then determines the angles for the trend lines based on the current price, ensuring the angles are dynamically adjusted to reflect recent market activity.
Trend lines are drawn from the highest and lowest points, projecting outwards at the calculated angles to indicate potential future price movements.
Usage:
Trend Confirmation: Use the angle trend lines to confirm the direction of the current trend. Steeper angles may indicate stronger trends.
Reversal Points: Monitor where price action intersects with the trend lines as potential reversal points or areas of support and resistance.
Strategic Entry/Exit Points: Identify strategic entry and exit points based on the proximity and angle of the trend lines relative to current price action.
This indicator is suited for traders looking for an edge in their technical analysis by incorporating geometric principles into the analysis of market trends. Whether you are day trading, swing trading, or analyzing long-term movements, the Tangent Angle Trend Lines indicator offers a fresh perspective on price dynamics.
Enjoy exploring the markets with this innovative tool and may it enhance your trading strategy!
Bollinger and Stochastic with Trailing Stop - D.M.P.This trading strategy combines Bollinger Bands and the Stochastic indicator to identify entry opportunities in oversold and overbought conditions in the market. The aim is to capitalize on price rebounds from the extremes defined by the Bollinger Bands, with the confirmation of the Stochastic to maximize the probability of success of the operations.
Indicators Used
- Bollinger Bands Used to measure volatility and define oversold and overbought levels. When the price touches or breaks through the lower band, it indicates a possible oversold condition. Similarly, when it touches or breaks through the upper band, it indicates a possible overbought condition.
- Stochastic: A momentum oscillator that compares the closing price of an asset with its price range over a certain period. Values below 20 indicate oversold, while values above 80 indicate overbought.
Strategy Logic
- Long Entry (Buy): A purchase operation is executed when the price closes below the lower Bollinger band (indicating oversold) and the Stochastic is also in the oversold zone.
- Short Entry (Sell): A sell operation is executed when the price closes above the upper Bollinger band (indicating overbought) and the Stochastic is in the overbought zone.
Quan Channel - Quan DaoI tried several channels, like the supertrend, ATR, Donchian or Bollingers, but they do not seem to fit my needs.
So I created a new channel to PREDICT the next impulse move of a price.
The current value of the top or bottom of the channel is based on 2 previous candles (not the candle itself), and it takes into account:
- The Direction of the previous candles (red or green) and
- The Width of their bodies
In my channel, the top or bottom lines will cover the price movement most of the time. But in some cases, when the price is on a big move, it will go out of the channel. And this is the time we need to consider a buy/sell (or take some profit) as well (not necessarily 100% of the time, though).
Personally, I like to use another oscillator in combination with this channel to predict whether it will reverse after the breakouts or continue to make another peak. If you are a DCA or long-term investor, I guess it would be safe to buy at the blue signals (out of bottom) and take some profits at the orange signals (out of top).
I also added an alert when the price breaks out of the channel for easier tracking.
Candle Range ExtensionThis script defines an indicator called "Candle Range Extension" that calculates the range of each candle (high minus low) and then multiplies that range by 3 to get the extension distance. It then plots two lines on the chart: one line that extends 3 times the candle range above the candle's high (in green) and another line that extends 3 times the candle range below the candle's low (in red).
Bitcoin's Logarithmic ChannelLogarithmic growth is a reasonable way to describe the long term growth of bitcoin's market value: for a network that is experiencing growing adoption and is powered by an asset with a finite and disinflationary supply, it’s natural to expect a more explosive growth of its market capitalization early on, followed by diminishing returns as the network and the asset mature.
I used publicly available data to model the market capitalization of bitcoin, deriving thereform a set of three curves forming a logarithmic growth channel for the market capitalization of bitcoin. Using the time series for the circulating supply, we derive a logarithmic growth channel for the bitcoin price.
Model uses publicly available data from July 17, 2010 to December 31, 2022. Everything since the beginning of 2023 is a prediction.
Past performance is not a guarantee of future results.
Highest-Lowest Trend𝙃𝙄𝙂𝙃𝙀𝙎𝙏-𝙇𝙊𝙒𝙀𝙎𝙏 𝙏𝙍𝙀𝙉𝘿 𝙄𝙉𝘿𝙄𝘾𝘼𝙏𝙊𝙍
Overview:
The "Highest-Lowest Trend" indicator helps traders identify trends based on the highest and lowest values within a specified period. It provides visual cues to understand potential trend changes, making it a valuable tool for technical analysis.
Settings:
Length and Offset: Adjust the length and offset parameters to customize the sensitivity of the indicator.
Source: Determines whether to use the high and low prices or the closing price and others for calculations.
Visual Settings:
Bar Color: Enables or disables the coloring of bars based on the trend direction.
Up Color: Specifies the color for upward trends.
Down Color: Specifies the color for downward trends.
Indicator Calculation:
The indicator calculates the highest and lowest values within the defined length and offset.
The current trend is determined based on whether the closing price is above or below these values.
When the source crossed above highest indicator changes trend to upside and start to use lowest value and vice versa.
/// 𝙄𝙉𝘿𝙄𝘾𝘼𝙏𝙊𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉 ///
var series float hlt = 0.0
series float upper = ta.highest(Use_High_and_Low ? high : src, length)
series float lower = ta.lowest( Use_High_and_Low ? high : src, length)
hlt := src > upper ?
lower : src < lower ?
upper : nz(hlt)
Usage:
Trend Identification: Watch for price to be above Trend Indicator crosses for up trend and below for down trend.
Length and Offset: Adjust the length and offset parameters to customize the sensitivity of the indicator.
Color, color bars: Change color of trends and bars for your taste
Note:
Trading involves inherent risks, and it is essential to exercise caution and employ multiple tools and indicators for comprehensive analysis. While the "Highest-Lowest Trend" indicator provides valuable insights into potential trend changes, relying solely on one tool for trading decisions is not recommended. Market conditions can be dynamic, and using a combination of indicators can enhance your overall analysis, providing a more robust foundation for decision-making. Always consider the broader market context, risk management strategies, and other relevant factors before executing trades.
Trend Channels (MTF) | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Trend Channels (MTF) indicator! Latest trends play an important role for traders and sometimes it can be hard to spot trends in other timeframes. This indicator can plot latest trend channels across different timeframes, so you can spot trends and their channels easier. More info about the process in the "How Does It Work" section.
Features of the new Trend Channels (MTF) indicator :
Plot Trend Channels Across Up To 3 Different Timeframes
Broad Customizability Of Trend Detection
Variety Of Trend Invalidation Options
High Visual Customizability
🚩UNIQUENESS
While the detection of trend channels is a common concept among traders, trend channels across different timeframes can be as crucial as the ones in the current timeframe. This indicator can find them from up to 3 different timeframes. While the general settings will perform well enough most of the time, the indicator also provides fine-tuning options for trend detection and trend invalidation for more experienced traders.
📌 HOW DOES IT WORK ?
Trend channels occur when the price of an asset starts making a strong movement in a bullish or a bearish direction. This indicator detects trend channels using the Simple Moving Average (SMA). When the slope of the SMA line exceeds the user-defined size, a trend channel will occur.
To understand how individual settings work, you can check the "⚙️SETTINGS" section.
⚙️SETTINGS
1. General Configuration
SMA Length -> Determines the length used in the SMA function. Higher values mean that an average of a longer timespan will be taken into account when spotting trends.
Slope Length -> Used while finding the slope of the trend channel. Check this example for slope length :
ATR Size -> This setting is taken into calculation while checking if a trend channel is worth plotting. The higher this setting is, the higher the slope of the trend channel must be to get rendered. You can take a look at the chart provided above for a visual explanation.
Channel Expander -> When a trend channel occurs, the top and the bottom of the channel are initally determined by the latest highest highs / lowest lows. This setting expands the channel vertically by X times Average True Range (ATR). Check this example :
Trend Invalidation -> The trend channel gets invalidated when the bar closes / wicks above the top of the channel, or below the bottom of the channel. With this setting, you can switch the behaviour between bar close / bar wick.
Avoid False Invalidation -> This setting makes it harder for trend channels to get invalidated to prevent false invalidations.
Retries : The trend channel will have 5 chances for invalidation. First 4 invalidations will not invalidate the channel. The trend channel will only invalidate once the 5th invalidation occur.
Volume : The bar that invalidates the trend channel must have a volume higher than 1.5x the average bar volume of the current chart. Otherwise the trend channel will not be invalidated.
None : The trend channel will invalidate at the first invalidation.