Previous Day High and LowPlots previous and the day before days' high and low for all days, not just today.
Jalur dan Saluran
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
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.
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值以下。
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.
Mean and Standard Deviation Lines Description:
Calculates the mean and standard deviation of close-to-close price differences over a specified period, providing insights into price volatility and potential breakouts.
Manually calculates mean and standard deviation for a deeper understanding of statistical concepts.
Plots the mean line, upper bound (mean + standard deviation), and lower bound (mean - standard deviation) to visualize price behavior relative to these levels.
Highlights bars that cross the upper or lower bounds with green (above) or red (below) triangles for easy identification of potential breakouts or breakdowns.
Customizable period input allows for analysis of short-term or long-term volatility patterns.
Probability Interpretations based on Standard Deviation:
50% probability: mean or expected value
68% probability: Values within 1 standard deviation of the mean (mean ± stdev) represent roughly 68% of the data in a normal distribution. This implies that around 68% of closing prices in the past period fell within this range.
95% probability: Expanding to 2 standard deviations (mean ± 2*stdev) captures approximately 95% of the data. So, in theory, there's a 95% chance that future closing prices will fall within this wider range.
99.7% probability: Going further to 3 standard deviations (mean ± 3*stdev) encompasses nearly 99.7% of the data. However, these extreme values become less likely as you move further away from the mean.
Key Features:
Uses manual calculations for mean and standard deviation, providing a hands-on approach.
Excludes the current bar's close price from calculations for more accurate analysis of past data.
Ensures valid index usage for robust calculation logic.
Employs unbiased standard deviation calculation for better statistical validity.
Offers clear visual representation of mean and volatility bands.
Considerations:
Manual calculations might have a slight performance impact compared to built-in functions.
Not a perfect normal distribution: Financial markets often deviate from a perfect normal distribution. This means probability interpretations based on standard deviation shouldn't be taken as absolute truths.
Non-stationarity: Market conditions and price behavior can change over time, impacting the validity of past data as a future predictor.
Other factors: Many other factors influence price movements beyond just the mean and standard deviation.
Always consider other technical and fundamental factors when making trading decisions.
Potential Use Cases:
Identifying periods of high or low volatility.
Discovering potential breakout or breakdown opportunities.
Comparing volatility across different timeframes.
Complementing other technical indicators for confirmation.
Understanding statistical concepts for financial analysis.
Market Activity Risk"Market Activity Risk" (MAR) - Is a dynamic tool designed to structurize the competitive landscape of blockchain transaction blocks, offering traders a strategic edge in anticipating market movements.
By capturing where market participants are actively buying and selling, the MAR indicator provides insights into areas of high competition, allowing traders to make informed decisions and potentially front-run transactions.
At the heart of this tool are blockchain transaction fees , they can represent daily shifts in transaction fee pressures.
By measuring momentum in fees, we can analyze the urgency and competition among traders to have their transactions processed first. This indicator is particularly good at revealing potential support or resistance zones, areas where traders are likely to defend their positions or increase their stakes, thus serving as critical junctures for strategic decision-making.
Key Features:
Adaptable Standard Deviation Settings: Users have the flexibility to adjust the length of the standard deviation and its multipliers, managing the risk bands to their individual risk tolerance.
Color-Coded Risk Levels: The MAR indicator employs an intuitive color scheme, making it easy to interpret the data at a glance.
Multi-Currency Compatibility: While designed with Bitcoin in mind, the MAR indicator is versatile, functioning effectively across various cryptocurrencies including Ethereum, XRP, and several other major altcoins. This broad compatibility ensures that traders across different market segments can leverage the insights provided by this tool.
Customizable Moving Average: The 730-day moving average setting is thoughtfully chosen to reflect the nuances of a typical cryptocurrency cycle, capturing long-term trends and fluctuations. However, recognizing the diverse needs and perspectives of traders, the indicator allows for the moving average period to be modified.
EPS GridIntroduction:
This simple indicator offers insights into the relationship between stock prices and earnings, aiding in the assessment of valuation dynamics during different periods.
Understanding Price-to-Earnings (P/E) Ratio:
The commonly used Price to Earnings (P/E) ratio, calculated as Current Price divided by Earnings Per Share (EPS) over the trailing 12 months (TTM), serves as a fundamental metric. Here, we use this formula to estimate a stock's price. For instance, multiplying EPS by 10 provides an approximation of the stock price with a P/E ratio of 10.
The Grid Concept:
Utilizing this principle, a visual grid is constructed to illustrate how stock prices correlate with earnings. This grid facilitates the identification of both potential bargains and overvalued stocks.
How to Utilize:
This indicator is pre-configured with earnings multiples of 10, 15, 20, and 25. Simply add it to your chart and observe whether earnings demonstrate consistent growth. If prices lag behind earnings, a potential catch-up phase may ensue in the future.
Happy Investing!
Embark on your investment journey armed with this indicator, and may it guide you towards informed decisions and successful ventures.
[LCS] Bar HeatmapThe script is an overlay aimed at making price action within a range more comprehensible, i.e. what is the “story” that the band range is telling in relation to the price. You’ll see bars become brighter as they come near the upper or lower band, and dimmer around the average/middle of the two bands. This makes it easier to spot when the price is within an oversold or overbought area or when its experiencing a strong trend movement. The color shift from one to the other can also give a sense as to whether the price action is changing character (going from bullish to bearish or vice versa).
Settings are available for customization to the user's liking.
How to use:
1. Add the indicator.
2. Add another indicator to use as the source, such as Bollinger Bands, which provides upper and lower plots for a channel range.
3. Click the gear icon to access the indicator settings.
4. Mandatory: Select the Upper Band and Lower Band settings as the upper and lower plots from your source indicator of choice to define the range.
5. Save settings. You should now see bars on your chart.
6. Access the Chart Settings (not the indicator settings) and hide the Body, Borders, and Wick for the default candle bars to avoid overlap.
You may need to perform additional configuration steps in your source indicator to appropriately size the range of the upper and lower band plots for a meaningful visualization.