GT-FibThis code is declaring the script as an indicator named "GT-Fib" to be plotted on the main chart. The maximum number of lines it can create is limited to 500.
The indicator calculates Fibo using trend breaks. If the trend is not broken and the old trend continues, Fibo continues. However, sometimes you will witness that it does not draw Fibo. Indicates that there is no trend break yet. If current Fibo levels are behind us, it may be wise to wait for a trend change. For trend breaks, I partially benefited from the Lux team's trend lines with break indicator. For your information...
Settings:
A set of user inputs is defined to allow customization. These include lookback period, coefficient, calculation method, and an option to enable/disable backpainting. These inputs help the trader to adapt the script to different market conditions or trading strategies.
Style:
Colors and visual styles for the indicator are defined here, such as the colors for uptrends and downtrends.
Variables Initialization:
Various variables are initialized here. This section prepares the script for further calculations. Key concepts include the initialization of upper and lower boundaries, pivot highs (ph), pivot lows (pl), and a few other variables to track peaks and troughs for trendlines.
Trendline Peaks and Troughs:
The script identifies pivot highs and lows. Whenever a pivot high/low is found, it updates the trendline_top and trendline_bottom respectively.
Calculation Method:
Based on the user's choice, the script calculates a "cycle" value using one of three methods: ATR, Stdev, or Linreg.
Extended Lines:
These are dashed lines that get drawn when a pivot high or pivot low is identified. These lines can be used to visualize potential support or resistance areas.
plotFibRetracement Function:
This function is designed to draw Fibonacci retracement levels between the identified trendline top and bottom. The Fibonacci levels provide potential support and resistance levels that traders often use to make trading decisions.
Plotting Fibonacci using Trendline Peaks and Troughs:
If both trendline_top and trendline_bottom are not 'na' (not available), the script will draw the Fibonacci retracement using the defined function.
How to Use:
The script identifies and displays potential support and resistance zones using Fibonacci retracement levels based on the trendline peaks and troughs. Here's a suggested way to use it:
Adjust Settings: Depending on the instrument you're trading and the timeframe, you might want to adjust the lookback period, coefficient, and calculation method to fine-tune the script to your needs.
Identify Trends: Observe where the pivot highs and lows are formed. The presence of consecutive pivot highs or pivot lows can indicate a prevailing trend.
Use Fibonacci Levels: The Fibonacci retracement levels can act as potential support and resistance. For instance:
During an uptrend, if prices retract and approach a Fibonacci level, it might act as a support level where price could bounce back.
During a downtrend, Fibonacci levels might act as resistance where price could reverse downwards.
Combine with Other Indicators: For a more comprehensive analysis and to increase the reliability of trading signals, you can use this script in conjunction with other technical indicators.
Remember, like all trading tools and techniques, this script should be used in conjunction with proper risk management. It's also a good idea to test any strategy or tool in a demo environment before applying it to a live account.
Bands and Channels
Volatility Trend (Zeiierman)█ Overview
The Volatility Trend (Zeiierman) is an indicator designed to help traders identify and analyze market trends based on price volatility. By calculating a dynamic trend line and volatility-adjusted bands, the indicator provides visual cues to understand the current market direction, potential reversal points and volatility.
█ How It Works
The indicator uses a weighted moving average of historical prices to create a responsive trend line that is adjusted for volatility using standard deviation. The indicator sets upper and lower bands at intervals of two standard deviations, acting as markers for potential overbought or oversold conditions. Additionally, by comparing current and previous trend line values, the indicator identifies the trend direction, providing crucial insights for traders.
█ How to Use
Trend Identification
Use the trend line to identify the overall market direction. An upward-sloping line indicates an uptrend, while a downward-sloping line indicates a downtrend.
Volatility Assessment
Use the distance between the upper and lower bands to gauge market volatility. Wider bands indicate higher volatility, while narrower bands indicate lower volatility.
Overbought/Oversold
If the price reaches or exceeds the upper or lower bands, it may be in an overbought or oversold condition, respectively.
█ Settings
Trend Control: Adjusts the sensitivity and smoothness of the trend line. Lower values make the trend more responsive, while higher values make it smoother.
Trend Dynamic: Controls how quickly the trend adjusts to price changes. Higher values result in a slower adjustment.
Volatility: Consists of two parts - the scaling factor for volatility and the sensitivity for volatility adjustment. Adjusting these settings alters the distance between the trend lines and the price, as well as how sensitive the bands are to changes in volatility.
Squeeze Control: Influences the degree to which market squeeze is considered in the calculation, with higher values increasing sensitivity.
Enable Scalping Trend: A toggle that, when activated, makes the indicator focus on short-term trends, which is particularly useful for scalping strategies.
█ Related scripts with the same calculation philosophy
TrendCylinder
TrendSphere
Predictive Trend and Structure
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Bitcoin Is Dead (BID/Weekly)Shows two consecutive weekly Bitcoin drops of X% both indicating capitulation which may be relevant to crypto markets, risk-on/risk-off and possibly tech markets.
Suggested usage: set the drop % and apply to weekly charts. Can be used on any chart, not just Bitcoin, but calculates indicator specifically for Bitcoin pricing.
Can be used for entertainment or technical analysis.
Breakout/Breakdown Indicator (30 Min Range) by InvestYourAsset👉The indicator provided here is a technical analysis indicator for TradingView users that identifies potential breakout and breakdown opportunities on the initial 30-minute range in every trading session.
👉The indicator high and low of the initial 30-minute period and plotting them as horizontal lines on the chart. The high is marked in green line and the low is marked in red line.
📈The indicator then generates buy and sell signals based on whether the current close price crosses above or below the previous 30-minute high and low, respectively.
📢The indicator also has two inputs:
👉 sessionStartHour : The hour at which the trading session begins. The default value is 9, However users can change the time according to their own trading style.
👉 sessionStartMinute : The minute at which the trading session begins. The default value is 0.
These inputs can be used to adjust the indicator to the specific trading session that you are interested in.
✅How to use the Indicator:
👉To use the 30 Minute Breakout/Breakdown Indicator, simply add it to your chart and configure the inputs to your liking. Once the indicator is added to the chart, it will plot the 30-minute high and low as horizontal lines, as well as generate buy and sell signals based on the current close price.
✅Here is a step-by-step guide:
📈Open TradingView and select the chart that you want to add the indicator to.
📈Click on the "Indicators" tab and search for "30 Minute Breakout/Breakdown Indicator by InvestYourAsset".
📈Click on the indicator to add it to your chart.
📈Configure the inputs to your liking. The default values are typically fine, but you can experiment with different values to see what works best for you.
📈Once you are satisfied with the settings, click on the "Apply" button.
📈The indicator will now be displayed on your chart. You will see two horizontal lines representing the previous 30-minute high and low, as well as triangles representing buy and sell signals.
✅How to interpret the signals:
📈Buy signal : A buy signal is generated when the current close price crosses above the previous 30-minute high. This suggests that the price is likely to continue moving higher in the short term.
📈Sell signal : A sell signal is generated when the current close price crosses below the previous 30-minute low. This suggests that the price is likely to continue moving lower in the short term.
👉Traders should remember that the present indicator is just one tool that can be used to identify potential trading opportunities. It is important to use other technical analysis tools and risk management techniques to confirm your trading signals before entering any trades.
✅Things to consider while using the indicator:
📈Look for buy signals in an uptrend and sell signals in a downtrend. This will increase the likelihood of your trades being successful.
📈Place your stop losses below the previous 30-minute low for buy signals and above the previous 30-minute high for sell signals. This will help to limit your losses if the trade goes against you.
📈Consider taking profits at key resistance and support levels. This will help you to lock in your profits and avoid giving them back to the market.
Follow us for timely updates regarding indicators that we may publish in future and give it a like if you appreciate the indicator.
2Mars - MA / BB / SuperTrend
The 2Mars strategy is a trading approach that aims to improve trading efficiency by incorporating several simple order opening tactics. These tactics include moving average crossovers, Bollinger Bands, and SuperTrend.
Entering a Position with the 2Mars Strategy:
Moving Average Crossover: This method considers the crossing of moving averages as a signal to enter a position.
Price Crossing Bollinger Bands: If the price crosses either the upper or lower Bollinger Band, it is seen as a signal to enter a position.
Price Crossing Moving Average: If the price crosses the moving average, it is also considered a signal to enter a position.
SuperTrend and Bars confirm:
The SuperTrend indicator is used to provide additional confirmation for entering positions and setting stop loss levels. "Bars confirm" is used only for entry to positions.
Moving Average Crossover Strategy:
A moving average crossover refers to the point on a chart where there is a crossover of the signal or fast moving average, above or below the basis or slow moving average. This strategy also uses moving averages for additional orders #3.
Basis Moving Average Length: Ratio * Multiplier
Signal Moving Average Length: Multiplier
Bollinger Bands:
Bollinger Bands consist of three bands: an upper band, a lower band, and a basis moving average. However, the 2Mars strategy incorporates multiple upper and lower levels for position entry and take profit.
Basis +/- StdDev * 0.618
Basis +/- StdDev * 1.618
Basis +/- StdDev * 2.618
Additional Orders:
Additional Order #1 and #2: closing price crosses above or below the Bollinger Bands.
Additional Order #3: closing price crosses above or below the basis or signal moving average.
Take Profit:
The strategy includes three levels for taking profits, which are based on the Bollinger Bands. Additionally, a percentage of the position can be chosen to close long or short positions.
Limit Orders:
The strategy allows for entering a position using a limit order. The calculation for the limit order involves the Average True Range (ATR) for a specific period.
For long positions: Low price - ATR * Multiplier
For short positions: High price + ATR * Multiplier
Stop Loss:
To manage risk, the strategy recommends using stop loss options. The stop loss is updated with each entry order and take-profit level 3. When using the SuperTrend Confirmation, the stop loss requires confirmation of a trend change. It allows for flexible adjustment of the stop loss when the trend changes.
There are three options for setting the stop loss:
1. ATR (Average True Range):
For long positions: Low price - ATR * Long multiplier
For short positions: High price + ATR * Short multiplier
2. SuperTrend + ATR:
For long positions: SuperTrend - ATR * Long multiplier
For short positions: SuperTrend + ATR * Short multiplier
3. StdDev:
For long positions: StdDev - ATR * Long multiplier
For short positions: StdDev + ATR * Short multiplier
Flexible Stop Loss:
There is also a flexible stop loss option for the ATR and StdDev methods. It is triggered when the SuperTrend or moving average trend changes unfavorably.
For long positions: Stop-loss price + (ATR * Long multiplier) * Multiplier
For short positions: Stop-loss price - (ATR * Short multiplier) * Multiplier
How configure:
Disable SuperTrend, take profit, stop loss, additional orders and begin setting up a strategy.
Pick soucre data
Number of bars for confirm
Pick up the ratio of the base moving average and the signal moving average.
Set up a SuperTrend
Time for set up of the Bollinger Bands and the take profit
And finaly set up of stop loss and limit orders
All done!
For OKX exchange:
t.me
BB Support & ResistanceChoosing support and resistance can be time consuming and subjective. Personally, I don't want to spend too much time manually marking up charts. Credit to video I saw, forget the producer, that demonstrated how multi-time frame Bollinger Bands can act as support and resistance. I suggest reading up on Bollinger Bands (en.wikipedia.org) and how to trade them. This indicator draws support and resistance lines based on Bollinger Bands on three time frames. You can select 1 or all three time frames to display on your chart. Enjoy.
Multi VWAP for Wick HunterCredit: honeybadgermakesfunnymoney for this Open Source Script
Published:
This is a tool that will allow you to visualize Wick Hunter's calcation of VWAP. Wick Hunter uses this calcuation for its Liqudations Bots.
There are four settings that you need to be configured to visualize your VWAP Band:
Long VWAP - The distance from current VWAP price, in %, that price must be UNDER when a liquidation event occurs to meet your you VWAP condition. The higher the value, the more price must move below the current VWAP price for it to enter a LONG position.
Short VWAP - The distance from current VWAP price, in %, that price must be ABOVE when a liquidation event occurs to meet your you VWAP condition. The higher the value, the more price must move above the current VWAP price for it to enter a SHORT position.
VWAP Timeframe - Select the timeframe you want the VWAP to be measured on.
VWAP Periods: Input the time period over which you want the VWAP to be measured over. For example, if you use "5" for this and "15" for VWAP Timeframe. The VWAP will be calculated based on the last five 15 minute candles.
You can play around with these settings using the indicator provide above. The indicator will print a triangle when the conditon for VWAP is met for a long for short trade. Play around with these settings. A few good timeframes that are popular are 5 minute, 15 minute, and one hour (60 minute). As far as periods, the most common settings are between 5 periods and 15 periods. In general the lower the timeframe and periods and closer VWAP will follow price.
Trend Gaussian Channels [DeltaAlgo]This Script Introduces The Use Of The Gaussian Channel Concepts
This indicator consists of three lines: a central line that represents the moving average, and an upper and lower band that represent the volatility of the price movements.
The Gaussian channels is a concept consists of an upper & lower bands along with the basis; the mid band. The use of the Gaussian bands are simple, as described below.👇
Use Case:
There are many ways the Gaussian channel indicator can be used!
1. Look for the price to touch or cross the upper/lower bands of the Gaussian Channel Indicator. This indicates that the price has reached an high level of volatility. a reversal or correction may be imminent.
2. Wait for confirmation of the potential reversal or correction. This can be in the form of a bearish or bullish candlestick pattern, or a signal from another technical indicator.
a. For this reason I have implemented some signals that indicate trend shifts & candle colors to clearly display the switching between a bullish sentiment or bearish.
3. Enter a trade in the direction of the reversal or correction. For example, if the price touches the upper band and a bearish candlestick pattern occurs or if you get a bearish signal, enter a short trade. If the price touches the lower band and indicates bullish candlestick pattern or bullish signal, enter a long trade.
Sometimes this band can act as a support & resistance, THIS is not always the case as it is not meant to be used as support & resistance.
Trend Channels [Cryptoverse]This Indicator dynamically generates and displays on the chart Trend Channels with the pivot points it determines in each market and in each time period. The type of price used to determine the pivot points and create the channels is optional (e.g. close or high, low).
It will help you identify your entry points and stop zones and help you take positions, but it does not contain any buy and sell signals or trading strategies. It creates more successful channels on higher timeframes.
Usage Settings:
---------------------------------------------------
General Settings:
Pivot Period: This field determines how many candles before and after a candle will be counted as a peak or bottom in order to determine the peaks and troughs on the chart.
Trend Channels are created by calculating the Pivot points according to the period set here. (Default value: 6)
Top Pivot Source: Determines which value of the related candle the top pivot points will be based on.
Bottom Pivot Source: Determines which value of the related candle the lower pivot points will be based on.
(Default: closing)
Trend Channels Settings:
Show All Trend Lines: Allows you to show or hide trend channels.
Hide Old Trend Lines: If you activate it, it allows you to hide the channels created in the past other than the current trend channels.
Hide 0.5 Lines: Allows you to hide lines at the Fibonacci 0.5 level.
Hide 0.236 Lines: Allows to hide lines at Fibonacci 0.236 level.
Hide 0.786 Lines: Allows to hide lines at Fibonacci 0.786 level.
Helper Line Format: Allows the helper line that converts a trend line into a channel to be drawn based on percentage or price.
*Note:* When using large time intervals by choosing percentages, there may be situations where the helper lines do not provide full parallels.
Up Trend Color: Indicates the outer color of the Up Trend channel.
Down Trend Color: Indicates the outer color of the Descending Trend channel.
0.5 Trend Color: Specifies the color of the fibonacci 0.5 line drawn for all channels.
0.236 Trend Color: Specifies the color of the fibonacci 0.5 line drawn for all channels.
0.786 Trend Color: Sets the color of the fibonacci 0.5 line drawn for all channels.
Trend Channel Width: Determines the thickness of the channel lines.
Trend Channel Style: Determines the style of the channel lines.
Kijun Sen BaseWhat is Kijun Sen?
Kijun-sen also means "base line" and is the mid-point of the 26-period high and low. Kijun-sen is typically used in conjunction with Tenkan-sen (conversion line) or (the 9-period midpoint price) to generate trade signals when they cross. Kijun-sen is typically used in conjunction with the other Ichimoku indicators.
What is the Kijun Sen Base?
The Kijun Sen Base is the center line in the Ichimoku Cloud Indicator. We have taken that line out and made it an indicator on its own , color-coded it, and allowed traders to track the price for a clean and simple base filter.
Is this a Moving Average?
NO
The Difference Between Kijun-sen (Base Line) and a Simple Moving Average (SMA)
The Kijun-sen is a midpoint of the high and low prices over the last 26 periods. This is not an average.
How do I trade with this Indicator?
Unless there's a lot of recent price movement, enough to pull the price away from the 26-period midpoint, the Kijun-sen will often trade near and intersect with the current price. At times like these, it is not an ideal tool for helping with trend direction. If, however, there is a strong price move away from Kijun Sen and the gap between Kijun Sen and the price is "increasing" or "widening", this is an indication that a trend is forming.
Kijun Sen Base can be used to confirm a trend and is a clean addition to other indicators the trader may use on their charts while at the same time keeping the chart less cluttered.
Happy Trading and Good Luck!
BTC - Hotness Index### Script Description
#### BTC - Hotness Index
This Pine Script, version 4, aims to generate a "Hotness Index" for Bitcoin (BTC) trading by utilizing a Pi Cycle Top Indicator. The script operates in a daily (`1D`) time frame and involves calculating two Simple Moving Averages (SMA) based on `close` prices:
- 111-day SMA (`D_111SMA`)
- 350-day SMA (`D_350SMA`) multiplied by 2
The primary indicator (`pi_indicator`) is derived by dividing `D_111SMA` by `D_350SMA`.
##### Sell Signal
A sell signal is plotted as a histogram if `pi_indicator` crosses above 1 (`pi_plot` variable).
##### Buy Signal
A buy signal is plotted as a histogram if `pi_indicator` crosses below 0.35 (`pi_plot_buy` variable).
##### Horizontal Lines
Two horizontal lines are included to denote the "Buy Zone" and "Sell Zone":
- "Sell Zone" at `pi_indicator` level of 1
- "Buy Zone" at `pi_indicator` level of 0.35
##### Plotting
Histogram plots are used for visualizing the signals:
- Sell signals are colored red (`RGB: 255, 59, 59`)
- Buy signals are colored green (`RGB: 82, 255, 59`)
This script provides traders a visual guide for potential buy/sell opportunities based on the Pi Cycle Top Indicator and the Hotness Index for Bitcoin. It operates under the terms of the Mozilla Public License 2.0.
Three Candle Rolling Pivot Range**Strategy Description: Three Previous Candle Rolling Pivot Range**
**Introduction:**
This trading strategy is based on the concept of the rolling pivot range calculated from the high, low, and close prices of the three previous candles. The rolling pivot range serves as a dynamic support and resistance level, and this strategy aims to capture potential trading opportunities based on the price relationship with this range.
**Strategy Components:**
**1. Rolling Pivot Range Calculation:**
- **Rolling Pivot:** Calculate the rolling pivot by averaging the high, low, and close prices of the three previous candles.
- **Second Number:** Find the midpoint between the high and low of the three previous candles.
- **Pivot Differential:** Measure the difference between the rolling pivot and the second number.
- **Rolling Pivot Range High:** Set as rolling pivot + pivot differential.
- **Rolling Pivot Range Low:** Set as rolling pivot - pivot differential.
**2. Entry Rules:**
- **Long Entry:**
- Initiate a long entry when the current close is above both the rolling pivot range high and the rolling pivot.
- Continue the long entry as long as both the rolling pivot range high and low are higher than the corresponding values of the previous candle.
- **Short Entry:**
- Start a short entry when the current close is below both the rolling pivot range high and the rolling pivot.
- Continue the short entry as long as both the rolling pivot range high and low are lower than the corresponding values of the previous candle.
**Visualization:**
- **Plotting:**
- The rolling pivot range high, rolling pivot, and rolling pivot range low are plotted on the chart for visual reference.
- Long entry points are marked with a green triangle below the corresponding candle.
- Short entry points are marked with a red triangle above the corresponding candle.
**Conclusion:**
This strategy leverages the rolling pivot range to identify potential reversal points in the market. By considering the relative position of the current price compared to the dynamic support and resistance levels, the strategy aims to capture favorable trading opportunities. However, like all trading strategies, it should be used cautiously and backtested thoroughly on historical data to ensure its effectiveness before implementation in a live trading environment. Additionally, risk management techniques should always be applied to safeguard trading capital.
G Channel with Arrows
1. Channel Calculation:
- The indicator calculates an upper channel ( `UpperBuffer` ) and a lower channel ( `LowerBuffer `) based on the input parameters `ChannelPeriod` .
- The channels are determined by a dynamic calculation that considers the current price ( `src` ) and the previous values of the upper and lower channels (` aBuffer` and `bBuffer` ).
2. Middle Channel:
- The middle channel ( `MiddleBuffer` ) is the average of the upper and lower channels, providing a central reference line.
3. Exponential Moving Average (EMA):
- The script calculates an Exponential Moving Average (`EMAValue`) based on the closing prices with a specified period (`EMAPeriod`).
4. Channel Plots:
- Plots for the upper, lower, and middle channels are displayed on the chart, each with a distinctive color and style.
5. Fill Between Channels:
- The space between the upper and middle channels is filled with a blue color (`#1900ff`), and the space between the lower and middle channels is filled with a red color (`#f70a0a`).
6. EMA Line:
- The EMA line is plotted on the chart in green.
7. Buy and Sell Signals:
- Buy signals ( `buySignal` ) are generated when the EMA crosses above the middle channel.
- Sell signals ( `sellSignal` ) are generated when the EMA crosses below the middle channel.
- Arrows are plotted at the respective locations of buy and sell signals.
8. Breakout Arrows:
- Additional arrows are plotted when the closing price breaks out above the upper channel (green arrow) or below the lower channel (red arrow).
9. User Input Parameters:
- Traders can customize the input parameters such as `ChannelPeriod` and `EMAPeriod` to adjust the sensitivity of the channels and the EMA.
Overall, the indicator provides traders with a visual representation of price channels, an EMA trend reference, and signals for potential buy/sell opportunities and breakout points. It can be used as part of a trading strategy to identify trends, reversals, and potential entry/exit points in the market.
TMA Bands with Break Arrow @ClearTradingMind
The "TMA Bands with Break Arrow" indicator, developed by ClearTradingMind, is designed to provide traders with insights into potential trend reversals based on the movement of price within a channel defined by the Triangular Moving Average (TMA) and its bands. The TMA is a smoothed moving average, and this indicator adds upper and lower bands to visualize potential breakouts.
Key Components:
1. TMA Bands: The indicator plots the upper and lower bands of the TMA channel. These bands represent potential overbought (upper band) and oversold (lower band) conditions.
2. Break Arrows: The indicator generates buy (green triangle up) and sell (red triangle down) arrows when the closing price breaks above the upper band or below the lower band, indicating a potential trend reversal.
3. Background Color: The background color dynamically changes based on the last generated signal. A blue background suggests a recent buy signal, while a red background indicates a recent sell signal. This provides a quick visual reference for the prevailing market sentiment.
Usage:
1. Trend Reversals: Traders can use the buy and sell arrows as signals for potential trend reversals. A buy signal suggests a possible upward trend, while a sell signal suggests a potential downward trend.
2. Channel Breakouts: Watch for price breaking above the upper band (buy signal) or below the lower band (sell signal). These breakouts may indicate the start of a new trend.
3. Volatility Analysis: The width of the TMA channel represents volatility. A widening channel suggests increased volatility, while a narrowing channel suggests decreasing volatility.
4. Background Color: The background color provides additional context. A blue background indicates recent bullish sentiment, while a red background suggests recent bearish sentiment.
Parameters:
- TMA Period: The number of bars used to calculate the Triangular Moving Average.
- ATR Period: The number of bars used to calculate the Average True Range (ATR) for determining the width of the TMA channel.
- ATR Multiplier: A multiplier applied to the ATR to determine the width of the TMA channel.
Note: This indicator is a tool to assist traders in their analysis, and it is recommended to use it in conjunction with other technical and fundamental analysis methods for more comprehensive decision-making.
Disclaimer: Trading involves risk, and this indicator does not guarantee profit. Users should conduct thorough analysis and risk management before making trading decisions.
Predictive Channels [LuxAlgo]The Predictive Channels indicator is a real-time estimate of a trend channel. The indicator returns 2 resistances, 2 supports, and an average line.
🔶 USAGE
The Predictive Channels attempt to find a real-time estimate of an underlying linear trend in the price, the returned supports/resistances are constructed from this estimate.
The area between the price and the estimated trend is also highlighted, with a green color when the price is above the estimated trend, indicating a bullish variation relative to the trend, and a red color indicating a bearish variation.
Price deviating significantly from an estimated trend will return new channels. The Factor setting controls the allowed distance between the price and the trend estimate, with higher values allowing for greater distances and less frequent channels.
The Slope setting will affect the steepness of the channels, with lower values returning steeper channels, this can cause the price to more quickly deviate from the estimated trend, increasing the frequency at which new channels are created.
🔶 SETTINGS
Factor: Multiplicative factor, determines the allowed distance between the price and an estimated trend before a new channel is constructed.
Slope: Controls the line steepness of the channels, with lower values returning steeper lines.
Order Block v1Hello Traders :)
I am Only Fibonacci.
While coding this indicator, I examined many concepts and decided to blend them.
I took the method shared by most traders and added different perspectives and options.
First of all, you can choose how many order block regions you want to see on the screen.
Note: The levels displayed on the screen are the sum of bears and bulls.
You can also choose whichever you want to see, bearish or bullish.
You can specify the precision of pivot points.
Whether you want to select a zone with a body or a zone with a wick, you can see this in the settings.
You can extend the regions infinitely with the right extension option.
IchimokuBuy Sell With Stoch RSIIchimoku Kumo Cloud Crossover Indicator
The "Ichimoku Kumo Cloud Crossover" indicator is a custom technical analysis tool designed for use in the TradingView platform. This indicator is built to assist traders in identifying potential buy and sell signals based on a combination of Ichimoku Cloud analysis, Moving Average Convergence Divergence (MACD), Exponential Moving Average (EMA), Relative Strength Index (RSI), and Stochastic RSI.
Key Components and Parameters:
Ichimoku Kumo Cloud Calculation:
The Ichimoku Kumo Cloud is calculated using the Ichimoku Cloud's Conversion Line and Base Line.
Conversion Line, Base Line, Leading Span 1, and Leading Span 2:
These are key components of the Ichimoku Cloud, and they help identify trends and potential support/resistance levels in the market.
MACD Oscillator:
The Moving Average Convergence Divergence (MACD) is used to gauge the strength and direction of the trend.
EMA 200 (Exponential Moving Average):
The EMA 200 is a long-term moving average used to identify the overall trend direction.
RSI (Relative Strength Index):
The RSI is a momentum oscillator that measures the speed and change of price movements, helping to identify overbought and oversold conditions.
Stochastic RSI (Stoch RSI):
Stoch RSI is calculated based on the RSI values and helps to identify overbought and oversold conditions in a more dynamic manner.
Signal Generation:
The indicator generates buy and sell signals based on the following criteria:
Buy Signal (Long Position):
The Conversion Line crosses above the Base Line (Ichimoku Cloud crossover).
The closing price is above the EMA 200, indicating a bullish bias.
The RSI is between 50 and 70, suggesting the potential for an uptrend.
The MACD Histogram is positive, indicating increasing bullish momentum.
The high price is at least 25% above the EMA 200.
Sell Signal (Short Position):
The Conversion Line crosses below the Base Line (Ichimoku Cloud crossover).
The closing price is below the EMA 200, indicating a bearish bias.
The RSI is between 20 and 50, suggesting the potential for a downtrend.
The MACD Histogram is negative, indicating increasing bearish momentum.
The low price is at least 25% below the EMA 200.
Stoch RSI Filter:
Additionally, a filter based on Stoch RSI slope is applied. The indicator will only open a position if the Stoch RSI is declining for short positions (sell) and rising for long positions (buy).
Visualization:
Buy signals are marked with green triangles below the bars.
Sell signals are marked with red triangles above the bars.
The Ichimoku Cloud is plotted in the background, with cloud colors changing based on whether the Conversion Line or Base Line is higher.
This indicator can be a valuable tool for traders looking to combine multiple technical analysis techniques to make informed trading decisions in the financial markets.
PhantomFlow DynamicLevelsThe PhantomFlow Dynamic Levels indicator analyzes the dynamic volume over the period specified in the Period field. Channel boundaries can be used as dynamic support and resistance levels when trading within a range. The POC level also serves as a level at which the price may react during trend movements. The Period Multiplier parameter affects how many dynamic levels will be displayed. The Accuracy parameter influences the precision of volume calculations.
These levels are crucial for intraday traders as they serve as support or resistance. The Value Area zone includes 70% of the traded volume over the selected period. In other words, it represents the price region where the majority of traders believe the fair value for the asset lies.
The indicator's name, Dynamic Levels, aptly captures its essence. It analyzes trading volume at various price levels, tracking the sentiment dynamics of traders. When the asset's price decreases or increases as a result of trading, the Dynamic Levels indicator displays a new level on the chart. This results in a plotted line on the chart, allowing us to observe the movement dynamics of both the value area and the maximum volume level.
Standard indicators do not provide real-time visibility into level shifts, making the use of the Dynamic Levels indicator a competitive advantage in market trading across any time frame.
We borrowed the volume profile calculation code from @LonesomeTheBlue. Thank you for the work done!
Intraday Volatility Bands [Honestcowboy]The Intraday Volatility Bands aims to provide a better alternative to ATR in the calculation of targets or reversal points.
How are they different from ATR based bands?
While ATR and other measures of volatility base their calculations on the previous bars on the chart (for example bars 1954 to 1968). The volatility used in these bands measure expected volatility during that time of the day.
Why would you take this approach?
Markets behave different during certain times of the day, also called sessions.
Here are a couple examples.
Asian Session (generally low volatility)
London Session (bigger volatility starts)
New York Session (overlap of New York with London creates huge volatility)
Generally when using bands or channel type indicators intraday they do not account for the upcoming sessions. On London open price will quickly spike through a bollinger band and it will take some time for the bands to adjust to new volatility.
This script will show expected volatility targets at the start of each new bar and will not adjust during the bar. It already knows what price is expected to do at this time of day.
Script also plots arrows when price breaches either the top or bottom of the bands. You can also set alerts for when this occurs. These are non repainting as the script knows the level at start of the bar and does not change.
🔷 CALCULATION
Think of this script like an ATR but instead it uses past days data instead of previous bars data. Charts below should visualise this more clearly:
The scripts measure of volatility is based on a simple high-low.
The script also counts the number of bars that exist in a day on your current timeframe chart. After knowing that number it creates the matrix used in it's calculations and data storage.
See how it works perfectly on a lower timeframe chart below:
Getting this right was the hardest part, check the coding if you are interested in this type of stuff. I commented every step in the coding process.
🔷 SETTINGS
Every setting of the script has a tooltip but I provided a breakdown here:
Some more examples of different charts:
RSI Box Strategy (pseudo- Grid Bot)This is a strategy intended primarily for algorithmic traders. It's a pseudo-grid bot that uses a dynamic, volume-weighted grid that only updates when the RSI meets certain conditions. It's also a breakout strategy, whereas normal grid bots are not (typical grid bots sell when a higher grid is reached, whereas this strategy sells when a lower grid is breached under specific conditions). This strategy also sells 100% of pyramiding orders on close.
In a nutshell, the strategy updates its grid to the volume-weighted highest/lowest values of your given source ("src" in the settings) each time that there is a RSI crossunder/crossover. From this range it produces an evenly-spaced grid of five lines, and uses the current source to determine which grid line is closest to the source. Then, if the source crosses over the line directly above the current line, it enters a buy order. If the source crosses under the line directly below the current line, it enters a sell order.
You can configure shorts, source, RSI length, and overbought/oversold levels in the settings.
For the strategy results below: fees are at 0.1% per trade, with order size 1% of equity and a max pyramiding value of 33. For a greater R/R profile, you can increase the order size, which will increase drawdown but potentially yield better results.
Worm *Public*This Pine Script code is designed to create a custom technical indicator called "Worm" that helps identify trends in the market based on momentum. Let's break down the code and its settings:
Indicator Title and Overlay:
The indicator is named "Worm (Clean)" and is set to be overlaid on the price chart.
Input Settings:
The code defines various input settings, which can be customized by the user. These settings include:
Indicator Settings (e.g., Alpha, Gap)
Backtest Settings (e.g., HighlightCrossovers, ApplyNorm)
Color Settings (e.g., Buy Color, Sell Color, Wait Color)
Location Settings for displaying the indicator above, below, or at the price.
Toggleable Inputs:
These settings allow you to choose whether the momentum indicator should be displayed above, below, or at the price chart. You can also specify the colors for buy, sell, and wait signals.
Indicator Calculations:
The code calculates momentum using various formulas involving the source price data (e.g., open, high, low, close). Momentum values are stored in variables L0, L1, L2, L3, and lrsi.
It also calculates the Color values for the indicator based on certain conditions and user-defined settings.
Bcolor and Scolor are used to determine the color of the plotted indicator based on buy and sell conditions.
Bollinger Bands (BB) and Keltner Channels (KC) Calculation:
The code calculates Bollinger Bands (UpperBB and LowerBB) and Keltner Channels (UpperKC and LowerKC) using the source price data.
It also determines whether the market is in a squeeze (SqzOn) or not (NoSqz) based on the relationship between BB and KC.
Signal Generation:
Buy and sell signals are generated based on various conditions, including momentum values and the squeeze state.
The color of the indicator line is determined based on the buy and sell signals.
LagF Calculation:
The LagF variable is calculated based on certain formulas involving the L0Line, L1Line, L2Line, and L3Line values.
Control Color:
The Color variable is used to control the color of the LagF indicator line based on certain conditions.
Plotting:
The momentum indicator (Val) is plotted on the chart with the specified colors and style.
The LagF indicator (Worm) is also plotted with a dynamic color based on market conditions.
Alerts are triggered when buy or sell signals are generated.
Experimental Section:
This section appears to be left for experimentation and may contain additional code or features.
Overall, this Pine Script code calculates and displays a custom momentum-based indicator called "Worm" on a price chart. It generates buy and sell signals based on momentum and squeeze conditions and allows users to customize various settings, including indicator location and colors. The code is designed for technical analysis and trend identification in financial markets.
Supertrend with Stochastic OB/OS Arrows @KING
TradingView Idea: Supertrend with Stochastic Arrows @KING
Overview:
- Combining the Supertrend indicator with Stochastic arrows for a comprehensive market
view, providing insights into trend direction and potential reversal points.
Supertrend Settings:
- ATR Length: The length parameter for calculating the Average True Range (ATR).
- Factor: A multiplier used to determine the distance of the Supertrend line from the
price.
Supertrend Display:
The Supertrend is color-coded:
- During an uptrend, it is displayed in green .
- During a downtrend, it is displayed in red .
- The body of the candlesticks is filled with color during the corresponding trend direction.
Stochastic Settings:
- K Length: The period length for the %K line in the Stochastic oscillator.
- K Smoothing: Smoothing factor for %K.
- D Smoothing: Smoothing factor for %D.
- Overbought Level: The threshold indicating an overbought condition.
- Oversold Level: The threshold indicating an oversold condition.
Arrows:
- Buy arrows are displayed below the bars during a downtrend when Stochastic is below the
oversold level.
- Sell arrows are displayed above the bars during an uptrend when Stochastic is above the
overbought level.
Supertrend Display:
- The Supertrend line is plotted with a color change based on its direction.
- The body of the candlesticks is filled with green during an uptrend and red during a downtrend.
Usage:
- Traders can use this script to identify potential entry and exit points, leveraging the
insights provided by both the Supertrend indicator and Stochastic oscillator. This
combination aims to capture trend strength and potential reversal opportunities.
TrendSphere (Zeiierman)█ Overview
TrendSphere is designed to capture and visualize market trends and volatility effectively. It combines various volatility measures and trend analysis techniques, producing dynamic bands and a central trend line on the price chart. Its essence is to offer a real-time, reliable estimate of the underlying linear trend in the price.
█ How It Works
Real-Time Trend Estimation
At its core, TrendSphere is designed to offer instantaneous and accurate insights into the inherent linear trend of asset prices. By continually updating its estimations, it ensures traders are equipped with the most current data. This allows the construction of support and resistance bands around the estimated trend, providing trading opportunities.
Dynamic Bands and Trend Line
TrendSphere plots a central trend line and dynamic bands around it on the price chart. Influenced by volatility, the distance between these elements offers a clear view of market conditions and the strength or weakness of trends. These bands not only depict potential turning points but also offer traders valuable opportunities to trade within the confines of the overarching trend.
Volatility Measures
Traders can select their preferred volatility measure and adjust settings to best fit their analysis needs. The bands and trend line dynamically respond to these selections, offering a tailored view of market conditions.
ATR (Average True Range): Reflects market volatility by evaluating the range between high and low prices.
Historical Volatility: Computes price variability using the standard deviation of log returns.
Bollinger Band Width: Measures the distance between Bollinger Bands, providing another angle on market volatility.
Eliminating Common Complications
One of the standout features of TrendSphere is its ability to determine linear price trends without falling prey to challenges like backpainting or repainting. In layman's terms, this means traders get a more trustworthy and unaltered view of price movements, leading to enhanced decision-making in line with the genuine trajectory of price trends.
█ How to Use
Trend Analysis
Observe the central trend line; its direction indicates the prevailing trend. When the price is above the trend line, it suggests an upward trend, and when it's below, it indicates a downward trend.
Volatility Analysis
Wider bands imply higher market volatility, suggesting larger price swings, while narrower bands indicate lower volatility. Traders can use the bands to identify potential reversal points and overbought/oversold conditions.
Potential Trading Signals (Using Bollinger bandwidth as volatility measure)
Consider buying when the price is above the trend line with narrowing bands, suggesting a strong upward trend.
Consider selling when the price is below the trend line with narrowing bands, indicating a strong downward trend.
█ Settings
Select Volatility Measure
Choose the desired volatility measure: ATR, Historical Volatility, or Bollinger Band Width.
Volatility Scaling Factor
Adjusts the scale of the volatility measure, influencing the width of the bands.
Volatility Strength
Modifies the influence of volatility on the bands, adjusting their responsiveness to volatility changes.
Length
Defines the number of periods used in calculating the selected volatility measure, impacting the stability and responsiveness of the bands.
Trend Sensitivity
Adjusts the sensitivity of the trend component, affecting how quickly it reacts to price changes.
█ Related scripts with the same calculation philosophy
TrendCylinder
Predictive Trend and Structure
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!