Price Acceleration Indicator (PAI)I have designed a "Price Acceleration" Indicator (PAI). It tracks the second derivative in price movements. This is different from ROC as that one measures Price Velocity rather than Acceleration. This Indicator should give you an idea of when the steam has come out of a move, or when one is getting started. For example, if RSI is reaching overbought, and PAI is Negative, that means the move is slowing down and likely to give in to the opposite direction soon.
Bands and Channels
CoinFxPro Range indicator V 1.0This indicator has a structure that combines daily and weekly pivot levels, moving averages, and strength index-linked oscillators. The purpose of the indicator is designed to analyze price movements and identify potential trend reversals. Daily pivot levels are helpful in identifying critical support and resistance zones, while moving averages and oscillators indicate overbought or oversold situations in the price.
It is very simple to use and simple in appearance.
Triangular Signals appearing on the chart screen come when the price touches the daily or weekly support and resistance levels.
If you want the signals to be received less or more healthy, I added the filtering feature. In this way, you can filter the incoming signals through the volume or volatility filter, so that less signals are received.
On the other hand, the 4 timeframe rsi values of the price for daily use of the indicator are also given in the table.
You can change the RSI timeframes as you wish.
In this way, it is seen more clearly whether the signal is healthy and provides convenience while trading.
Evaluation of incoming signals;
First of all, when the signal occurs, pay attention to whether the RSI values that occur in the timeframe you trade and in other timeframes are overbought (red) or oversold (green).
When the signal comes, I buy or sell, especially if the RSI values in the 5 minutes, 15 minutes and 1 hour time periods are overbought or oversold.
If you wish, you can try a different strategy for yourself.
After the healthiest of the signals on the chart comes, the RSI values are also at overbought or oversold levels in 5-15 minutes and 1 hour timeframes and if there is a Trendline line above or below the price, it is out of that region.
A healthy buying or selling transaction can be made.
It should be noted that since risk = return, high risk means high return. High risk must be taken for high returns. Therefore, I recommend that you do not exceed 10% of your capital as margin when trading with leverage.
When trading, I always recommend trading with additional confirmation from a different indicator.
I also added a filtering feature to the indicator to block market structure related variables. Those who want to use can also use filtering.
I have added the automatic trendline for ease of trading. You can increase or decrease the number of trend lines as you wish.
I just published the indicator for daily use.
Mondays Range screener by B1rdIntroducing the long awaited Monday Range Screener by B1rd!
The Monday Range Screener is a powerful and intuitive indicator designed to help traders identify potential range trading opportunities based on Monday's price ranges. With user-friendly features and real-time data, this screener empowers you to make informed trading decisions.
Key Features:
Ticker Flexibility: The screener allows you to easily swap tickers, giving you the freedom to monitor and analyze multiple assets of your choice.
Comprehensive Information: The indicator displays essential data in a clear and organized manner. The left column shows the ticker symbol, followed by the current price, Monday's high, Monday's low, and Monday's average in the subsequent columns.
Range Trading Highlighting: The Monday Range Screener highlights the current price when it falls within Monday's high and low range, helping you quickly identify potential range trading opportunities.
Alert System: With the built-in alert feature, you can receive timely notifications whenever the current price enters Monday's high or low range. Stay on top of market movements even when you're away from the screen.
Get ready to take your trading to the next level with the Monday Range Screener by B1rd. This reliable indicator helps you identify range trading opportunities and stay informed about Monday's price ranges. Enhance your trading approach and make confident decisions using this powerful tool.
Important note: Please be aware that there is a known bug in certain chart layouts that may cause an array error and prevent the table from being plotted. The cause of this issue is unclear at the moment. However, based on my experience, there are a few potential solutions that you can try:
Set all the sources to a single asset, such as BTCUSDT. If this workaround works, you can gradually introduce new sources one by one and observe if the issue persists.
Experiment with different chart layouts, timeframes, and assets. Sometimes, applying the Monday Range Screener to alternative settings can help resolve the problem.
I apologize for any inconvenience this bug may cause. Please consider these workarounds as temporary solutions until a more permanent resolution can be found.
Original indicator this screener is based on:
Open Price Regression Modelnput Variables: The user can adjust the lookbackPeriod and m (multiplier) inputs. The lookbackPeriod specifies the number of previous bars used for regression calculations, and m is used to calculate the confidence interval width.
Calculate Regression Model: The code extracts open, high, low, and close prices for the current candle. It then performs regression calculations for high, low, and close prices based on the open prices.
Calculate Predicted Prices: Using the regression coefficients and intercepts, the code calculates predicted high, low, and close prices based on the current open price.
Calculate Confidence Interval: The code computes the standard errors of the regression for high, low, and close prices and multiplies them by the specified confidence level multiplier (m) to determine the width of the confidence intervals.
Plotting: The predicted high, low, and close prices are plotted with different colors. Additionally, confidence intervals are plotted around the predicted prices using lines.
Implications and Trading Advantage:
The Open Price Regression Model aims to predict future high, low, and close prices based on the current open price. Traders can use the predicted values and confidence intervals as potential price targets and volatility measures. Traders can consider taking long or short positions based on whether the current open price is below or above the predicted prices. Can be used on a daily time frame to forecast the day's high and low and use this levels are horizontal price levels on lower timeframes.
Oscillator Profile IndicatorDescription:
The Oscillator Profile Indicator (OPI) is designed to provide insights into market trends and potential reversal points by profiling the value distribution of an oscillator or the price chart over a specified lookback period.
The OPI works by calculating the Point of Control (PoC) for the oscillator values or prices in the given lookback period. This PoC, essentially a median, is considered the fair value where most trading activities have happened. Along with this, OPI also calculates lower and upper boundaries by taking the specified percentile of the sorted distribution of values. These boundaries outline the value area within which a significant portion of trading activity has occurred.
The main feature of the OPI is the interpretation of PoC movement and how it relates to general market trends. If the PoC moves above 0 on the oscillator, it's a potential indication that we are in a general uptrend. Conversely, if the PoC moves below 0, this can be a signal for a general downtrend.
Usage:
While OPI can be used on both price charts and oscillators, its effectiveness is more pronounced when used on oscillators. Applying this indicator to oscillators such as the Relative Strength Index (RSI) or the Moving Average Convergence Divergence (MACD) can provide useful insights.
How to Read:
PoC line: The line represents the median of the past 'n' periods. Its movement above or below 0 can be used to identify general uptrends or downtrends respectively.
Upper and Lower Boundary lines: These lines represent the specified percentile of the value distribution in the lookback period.
Colored Fills: The fills between the upper and lower boundary lines visually represent the value area. The color changes based on the relative position of the source value (price or oscillator value) to the PoC.
Signals:
An uptrend is indicated when the PoC moves above 0 on the oscillator, especially when coupled with an upward crossover of the source value through the PoC.
A downtrend is signaled when the PoC drops below 0 on the oscillator, particularly when paired with a downward crossover of the source value through the PoC.
(!) Note: Like all indicators, OPI should be used in conjunction with other technical analysis tools for the best results. It is also advisable to backtest this indicator with your strategy before using it in live trading.
Sessioned EMA - Frozen EMA in post market hoursWhy I develop this indicator?
In future indices, post market data with little volume distort the moving average seriously. This indicator is to eliminate the distortion of data during low volume post market hours.
How to use?
There is a time session setting in the indicator, you can set the cash hour time, moving average outside the session will be frozen.
What this indicator gives you
This indicator give you a more make sense ema pattern, the ema lines are more respected by the prices when you set the session properly.
Setup
1. Session setting
In US indices, such as NQ, ES etc, when there was data release at 0830 hr, huge volume transaction order appears, that makes the 0830 price data important that should be included in your ema trend line calculating. If that is the case, I will set the session begin from 0830, otherwise, I start the session at 0930. Golden rule : Price with huge volume counts.
2. Time zone
The coding is decided for GMT+8 time zone, you may amend the code to fit your timezone.
Nadaraya-Watson Envelope (Non-Repainting) Logarithmic ScaleIn the fast-paced world of trading, having a reliable and accurate indicator can make all the difference. Enter the Nadaraya-Watson Envelope Indicator, a cutting-edge tool designed to provide traders with valuable insights into market trends and potential price movements. In this article, we'll explore the advantages of this non-repainting indicator and how it can empower traders to make informed decisions with confidence.
Accurate Price Analysis:
The Nadaraya-Watson Envelope Indicator operates in a logarithmic scale, allowing for more accurate price analysis. By considering the logarithmic nature of price movements, this indicator captures the subtle nuances of market dynamics, providing a comprehensive view of price action. Traders can leverage this advantage to identify key support and resistance levels, spot potential breakouts, and anticipate trend reversals.
Non-Repainting Reliability:
One of the most significant advantages of the Nadaraya-Watson Envelope Indicator is its non-repainting nature. Repainting indicators can mislead traders by changing historical signals, making it difficult to evaluate past performance accurately. With the non-repainting characteristic of this indicator, traders can have confidence in the reliability and consistency of the signals generated, ensuring more accurate backtesting and decision-making.
Customizable Parameters:
Every trader has unique preferences and trading styles. The Nadaraya-Watson Envelope Indicator offers a range of customizable parameters, allowing traders to fine-tune the indicator to their specific needs. From adjusting the lookback window and relative weighting to defining the start of regression, traders have the flexibility to adapt the indicator to different timeframes and trading strategies, enhancing its effectiveness and versatility.
Envelope Bounds and Estimation:
The Nadaraya-Watson Envelope Indicator calculates upper and lower bounds based on the Average True Range (ATR) and specified factors. These envelope bounds act as dynamic support and resistance levels, providing traders with valuable reference points for potential price targets and stop-loss levels. Additionally, the indicator generates an estimation plot, visually representing the projected price movement, enabling traders to anticipate market trends and make well-informed trading decisions.
Visual Clarity with Plots and Fills:
Clear visualization is crucial for effective technical analysis. The Nadaraya-Watson Envelope Indicator offers plots and fills to enhance visual clarity and ease of interpretation. The upper and lower boundaries are plotted, along with the estimation line, allowing traders to quickly assess price trends and volatility. Fills between the boundaries provide a visual representation of different price regions, aiding in identifying potential trading opportunities and risk management.
Conclusion:
The Nadaraya-Watson Envelope Indicator is a powerful tool for traders seeking accurate and reliable insights into market trends and price movements. With its logarithmic scale, non-repainting nature, customizable parameters, and visual clarity, this indicator equips traders with a competitive edge in the financial markets. By harnessing the advantages offered by the Nadaraya-Watson Envelope Indicator, traders can navigate the complexities of trading with confidence and precision. Unlock the potential of this advanced indicator and elevate your trading strategy to new heights.
Multi-Band Breakout IndicatorThe Multi-Band Breakout Indicator was created to help identify potential breakout opportunities in the market. It combines multiple bands (ATR-Based and Donchian) and moving averages to provide valuable insights into the underlying trend and potential breakouts. By understanding the calculations, interpretation, parameter adjustments, potential applications, and limitations of the indicator, traders can effectively incorporate it into their trading strategy.
Calculation:
The indicator utilizes several calculations to plot the bands and moving averages. The length parameter determines the period used for the Average True Range (ATR), which measures volatility. A higher length captures a longer-term view of price movement, while a lower length focuses on shorter-term volatility. The multiplier parameter adjusts the distance of the upper and lower bands from the ATR. A higher multiplier expands the bands, accommodating greater price volatility, while a lower multiplier tightens the bands, reflecting lower volatility. The MA Length parameter determines the period for the moving averages used to calculate the trend and trend moving average. A higher MA Length creates a smoother trend line, filtering out shorter-term fluctuations, while a lower MA Length provides a more sensitive trend line.
The Donchian calculations in the Multi-Band Breakout Indicator play a significant role in identifying potential breakout opportunities and providing additional confirmation for trading signals. In this indicator, the Donchian calculations are applied to the trend line, which represents the average of the upper and lower bands. To calculate the Donchian levels, the indicator uses the Donchian Length parameter, which determines the period over which the highest high and lowest low are calculated. A longer Donchian Length captures a broader price range, while a shorter length focuses on more recent price action. By incorporating the Donchian calculations into the Multi-Band Breakout Indicator, traders gain an additional layer of confirmation for breakout signals.
Interpretation:
The Multi-Band Breakout Indicator offers valuable interpretation for traders. The upper and lower bands represent dynamic levels of resistance and support, respectively. These bands reflect the potential price range within which the asset is expected to trade. The trend line is the average of these bands and provides a central reference point for the overall trend. When the price moves above the upper band, it suggests a potential overbought condition and a higher probability of a pullback. Conversely, when the price falls below the lower band, it indicates a potential oversold condition and an increased likelihood of a bounce. The trend moving average further smooths the trend line, making it easier to identify the prevailing direction.
The crossover of the trend line (representing the average of the upper and lower bands) and the trend moving average holds a significant benefit for traders. This crossover serves as a powerful signal for potential trend changes and breakout opportunities in the market. When the trend line crosses above the trend moving average, it suggests a shift in momentum towards the upside, indicating a potential bullish trend. This provides traders with an early indication of a possible upward movement in prices. Conversely, when the trend line crosses below the trend moving average, it indicates a shift in momentum towards the downside, signaling a potential bearish trend. This crossover acts as an early warning for potential downward price movement. By identifying these crossovers, traders can capture the initial stages of a new trend, enabling them to enter trades at favorable entry points and potentially maximize their profit potential.
Breakout Signals:
For bullish breakouts, the indicator looks for a bullish crossover between the trend line and the trend moving average. This crossover suggests a shift in momentum towards the upside. Additionally, it checks if the current price has broken above the upper band and the previous Donchian high. This confirms that the price is surpassing a previous resistance level, indicating further upward movement.
For bearish breakouts, the indicator looks for a bearish crossunder between the trend line and the trend moving average. This crossunder indicates a shift in momentum towards the downside. It also checks if the current price has broken below the lower band and the previous Donchian low. This confirms that the price is breaking through a previous support level, signaling potential downward movement.
When a bullish or bearish breakout is detected, it suggests a potential trading opportunity. Traders may consider initiating positions in the direction of the breakout, anticipating further price movement in that direction. However, it's important to remember that breakouts alone do not guarantee a successful trade. Other factors, such as market conditions, volume, and confirmation from additional indicators, should be taken into account. Risk management techniques should also be implemented to manage potential losses.
Coloration:
The coloration in the Multi-Band Breakout Indicator is used to visually represent different aspects of the indicator and provide valuable insights to traders. Let's break down the coloration components:
-- Trend/Basis Color : The tColor variable determines the color of the bars based on the relationship between the trend line (trend) and the closing price (close), as well as the relationship between the trend line and the trend moving average (trendMA). If the trend line is above the closing price and the trend moving average is also above the closing price, the bars are colored fuchsia, indicating a potential bullish trend. If the trend line is below the closing price and the trend moving average is also below the closing price, the bars are colored lime, indicating a potential bearish trend. If neither of these conditions is met, the bars are colored yellow, representing a neutral or indecisive market condition.
-- Moving Average Color : The maColor variable determines the color of the filled area between the trend line and the trend moving average. If the trend line is above the trend moving average, the area is filled with a lime color with 70% opacity, indicating a potential bullish trend. Conversely, if the trend line is below the trend moving average, the area is filled with a fuchsia color with 70% opacity, indicating a potential bearish trend. This coloration helps traders visually identify the relationship between the trend line and the trend moving average.
-- highColor and lowColor : The highColor and lowColor variables determine the colors of the high Donchian band (hhigh) and the low Donchian band (llow), respectively. These bands represent dynamic levels of resistance and support. If the highest point in the previous Donchian period (hhigh) is above the upper band, the highColor is set to olive with 90% opacity, indicating a potential resistance level. On the other hand, if the lowest point in the previous Donchian period (llow) is below the lower band, the lowColor is set to red with 90% opacity, suggesting a potential support level. These colorations help traders quickly identify important price levels and assess their significance in relation to the bands.
By incorporating coloration, the Multi-Band Breakout Indicator provides visual cues to traders, making it easier to interpret the relationships between various components and assisting in identifying potential trend changes and breakout opportunities. Traders can use these color cues to quickly assess the prevailing market conditions and make informed trading decisions.
Adjusting Parameters:
The Multi-Band Breakout Indicator offers flexibility through parameter adjustments. Traders can customize the indicator based on their preferences and trading style. The length parameter controls the sensitivity to price changes, with higher values capturing longer-term trends, while lower values focus on shorter-term price movements. By adjusting the parameters, such as the ATR length, multiplier, Donchian length, and MA length, traders can customize the indicator to suit different timeframes and trading strategies. For shorter timeframes, smaller values for these parameters may be more suitable, while longer timeframes may require larger values.
Potential Applications:
The Multi-Band Breakout Indicator can be applied in various trading strategies. It helps identify potential breakout opportunities, allowing traders to enter trades in the direction of the breakout. Traders can use the indicator to initiate trades when the price moves above the upper band or below the lower band, confirming a potential breakout and providing a signal to enter a trade. Additionally, the indicator can be combined with other technical analysis tools, such as support and resistance levels, candlestick patterns, or trend indicators, to increase the probability of successful trades. By incorporating the Multi-Band Breakout Indicator into their trading approach, traders can gain a better understanding of market trends and capture potential profit opportunities.
Limitations:
While the Multi-Band Breakout Indicator is a useful tool, it has some limitations that traders should consider. The indicator performs best in trending markets where price movements are relatively strong and sustained. During ranging or choppy market conditions, the indicator may generate false signals, leading to potential losses. It is crucial to use the indicator in conjunction with other analysis techniques and risk management strategies to enhance its effectiveness. Additionally, traders should consider external factors such as market news, economic events, and overall market sentiment when interpreting the signals generated by the indicator.
By combining multiple bands and moving averages, this indicator offers valuable insights into the underlying trend and helps traders make informed trading decisions. With customization options and careful interpretation, this indicator can be a valuable addition to any trader's toolkit, assisting in identifying potential breakouts, capturing profitable trades, and enhancing overall trading performance.
RAINBOW AVERAGES - INDICATOR - (AS) - 1/3
-INTRODUCTION:
This is the first of three scripts I intend to publish using rainbow indicators. This script serves as a groundwork for the other two. It is a RAINBOW MOVING AVERAGES indicator primarily designed for trend detection. The upcoming script will also be an indicator but with overlay=false (below the chart, not on it) and will utilize RAINBOW BANDS and RAINBOW OSCILLATOR. The third script will be a strategy combining all of them.
RAINBOW moving averages can be used in various ways, but this script is mainly intended for trend analysis. It is meant to be used with overlay=true, but if the user wishes, it can be viewed below the chart. To achieve this, you need to change the code from overlay=true to false and turn off the first switch that plots the rainbow on the chart (or simply move the indicator to a new pane below). By doing this, you will be able to see how all four conditions used to detect trends work on the chart. But let's not get ahead of ourselves.
-WHAT IS IT:
In its simplest form, this indicator uses 10 moving averages colored like a rainbow. The calculation is as follows:
MA0: This is the main moving average and can be defined with the type (SMA, EMA, RMA, WMA, SINE), length, and price source. However, the second moving average (MA1) is calculated using MA0 as its source, MA2 uses MA1 as the data source, and so on, until the last one, MA9. Hence, there are 10 moving averages. The first moving average is special as all the others derive from it. This indicator has many potential uses, such as entry/exit signals, volatility indication, and stop-loss placement, but for now, we will focus on trend detection.
-TREND DETECTION:
The indicator offers four different background color options based on the user's preference:
0-NONE: No background color is applied as no trend detection tools is being used (boring)
1-CHANGE: The background color is determined by summing the changes of all 10 moving averages (from two bars). If the sum is positive and not falling, the background color is GREEN. If the sum is negative and not rising, the background color is RED. From early testing, it works well for the beginning of a movement but not so much for a lasting trend.
2-RAINBW: The background color is green when all the moving averages are in ascending order, indicating a bullish trend. It is red when all the moving averages are in descending order, indicating a bearish trend. For example, if MA1>MA2>MA3>MA4..., the background color is green. If MA1 threshold, and red indicates width < -threshold.
4-DIRECT: The background color is determined by counting the number of moving averages that are either above or below the input source. If the specified number of moving averages is above the source, the background color is green. If the specified number of moving averages is below the source, the background color is red. If all ten MAs are below the price source, the indicator will show 10, and if all ten MAs are above, it will show -10. The specific value will be set later in the settings (same for 3-TSHOLD variant). This method works well for lasting trends.
Note: If the indicator is turned into a below-chart version, all four color options can be seen as separate indicators.
-PARAMETERS - SETTINGS:
The first line is an on/off switch to plot the skittles indicator (and some info in the tooltip). The second line has already been discussed, which is the background color and the selection of the source (only used for MA0!).
The line "MA1: TYP/LEN" is where we define the parameters of MA0 (important). We choose from the types of moving averages (SMA, EMA, RMA, WMA, SINE) and set the length.
Important Note: It says MA1, but it should be MA0!.
The next line defines whether we want to smooth MA1 (which is actually MA0) and the period for smoothing. When smoothing is turned on, MA0 will be smoothed using a 3-pole super smoother. It's worth noting that although this only applies to MA0, as the other MAs are derived from it, they will also be smoothed.
In the line below, we define the type and length of MAs for MA2 (and other MAs except MA0). The same type and length are used for MA1 to MA9. It's important to remember that these values should be smaller. For example, if we set 55, it means that MA1 is the average of 55 periods of MA0, MA2 will be 55 periods of MA1, and so on. I encourage trying different combinations of MA types as it can be easily adjusted for ur type of trading. RMA looks quirky.
Moving on to the last line, we define some inputs for the background color:
TSH: The threshold value when using 3-TSHOLD-BGC. It's a good idea to change the chart to a pane below for easier adjustment. The default values are based on EURUSD-5M.
BG_DIR: The value that must be crossed or equal to the MA score if using 4-DIRECT-BGC. There are 10 MAs, so the maximum value is also 10. For example, if you set it to 9, it means that at least 9 MAs must be below/above the price for the script to detect a trend. Higher values are recommended as most of the time, this indicator oscillates either around the maximum or minimum value.
-SUMMARY OF SETTINGS:
L1 - PLOT MAs and general info tooltip
L2 - Select the source for MA0 and type of trend detection.
L3 - Set the type and length of MA0 (important).
L4 - Turn smoothing on/off for MA0 and set the period for super smoothing.
L5 - Set the type and length for the rest of the MAs.
L6 - Set values if using 4-DIRECT or 3-TSHOLD for the trend detection.
-OTHERS:
To see trend indicators, you need to turn off the plotting of MAs (first line), and then choose the variant you want for the background color. This will plot it on the chart below.
Keep in mind that M1 int settings stands for MA0 and MA2 for all of the 9 MAs left.
Yes, it may seem more complicated than it actually is. In a nutshell, these are 10 MAs, and each one after MA0 uses the previous one as its source. Plus few conditions for range detection. rest is mainly plots and colors.
There are tooltips to help you with the parameters.
I hope this will be useful to someone. If you have any ideas, feedback, or spot errors in the code, LET ME KNOW.
Stay tuned for the remaining two scripts using skittles indicators and check out my other scripts.
-ALSO:
I'm always looking for ideas for interesting indicators and strategies that I could code, so if you don't know Pinescript, just message me, and I would be glad to write your own indicator/strategy for free, obviously.
-----May the force of the market be with you, and until we meet again,
MTF Fusion - High Volume Expansion Channel [TradingIndicators]Exceptionally high volume and rapid price expansion are key markers of powerful moves, especially when they occur during a breakout or breakdown. The High Volume Expansion Channel (HVEC) uses our multi-timeframe fusion and price compression/expansion algorithms to look for high volume and rapid expansion from multiple higher timeframes at once. It uses this info to determine a high volume and expansion 'grade', and then encodes this result into a colored channel. This channel coloring varies in intensity based on how exceptionally high volume is and how rapidly price is expanding in either direction.
What is MTF Fusion?
Multi-Timeframe (MTF) Fusion is the process of combining calculations from multiple timeframes higher than the chart's into one 'fused' value or indicator. It is based on the idea that integrating data from higher timeframes can help us to better identify short-term trading opportunities within the context of long-term market trends.
How does it work?
Let's use the context of this indicator, which calculates a 'high volume and expansion grade' (let's call it HVEG), as an example to explain how MTF Fusion works and how you can perform it yourself.
Step 1: Selecting Higher Timeframes
The first step is to determine the appropriate higher timeframes to use for the fusion calculation. These timeframes should typically be chosen based on their ability to provide meaningful data and action which actively affect the price action of the smaller timeframe you're focused on. For example, if you are trading the 5 minute chart, you might select the 15 minute, 30 minute, and hourly timeframe as the higher timeframes you want to fuse in order to give you a more holistic view of the trends and action affecting you on the 5 minute. In this indicator, four higher timeframes are automatically selected depending on the timeframe of the chart it is applied to.
Step 2: Gathering Data and Calculations
Once the higher timeframes are identified, the next step is to calculate the data from these higher timeframes that will be used to calculate your fused values. In this indicator, for example, the HVEG value is calculated by determining the HVEG for all four higher timeframes.
Step 3: Fusing the Values From Higher Timeframes
The next step is to actually combine the values from these higher timeframes to obtain your 'fused' indicator values. The simplest approach to this is to simply average them. If you have calculated the HVEG value from three higher timeframes, you can, for example, calculate your 'multi-timeframe fused HVEG' as (HigherTF_HVEG_1 + HigherTF_HVEG_2 + HigherTF_HVEG_3) / 3.0.
Step 4: Visualization and Interpretation
Once the calculations are complete, the resulting fused indicator values are plotted on the chart. These values reflect the fusion of data from the multiple higher timeframes, giving a broader perspective on the market's behavior and potentially valuable insights without the need to manually consider values from each higher timeframe yourself.
What makes this script unique? Why is it closed source?
While the process described above is fairly unique and sounds simple, the truly important key lies in determining which higher timeframes to fuse together, and how to weight their values when calculating the fused end result in such a way that best leverages their relationship for useful TA.
This MTF Fusion indicator employs a smart, adaptive algorithm which automatically selects appropriate higher timeframes to use in fusion calculations depending on the timeframe of the chart it is applied to. It also uses a dynamic algorithm to adjust and weight the high volume and price expansion grade calculations depending on each higher timeframe's relationship to the chart timeframe. These algorithms are based on extensive testing and are the reason behind this script's closed source status.
Included Features
MTF Fusion high volume and expansion coloring
MTF Fusion ATR-based channel for visual effect
Channel width customization and explanatory labels
Pre-built color stylings
Options
Show Channel Lines: Show/hide the upper and lower lines of the channel
Fill Channel: Fill the channel with coloring depicting the current degree of high volume and rapid price expansion
Channel Width Multiplier: Sets the width of the ATR-based channel
Explanatory Labels: Show/hide explanatory labels describing the visuals
Lookback: Select how you want the degree of high volume expansion to be calculated (longer = long-term high volume and expansion, shorter = short-term high volume and expansion)
Pre-Built Color Styles: Use a pre-built color styling (uncheck to use your own colors)
Manual Color Styles: When pre-built color styles are disabled, use these color inputs to define your own
StdDev ChannelsThis script draws two sets of standard deviation channels on the price chart, providing a nuanced view of price volatility over different lengths.
The script starts by declaring a set of user-defined inputs allowing traders to customize the tool according to their individual requirements. The price input sets the source of the price data, defaulting to the closing price but customizable to use open, high, or low prices. The deviations parameter defines the width of the channels, with larger numbers resulting in wider channels. The length and length2 inputs represent the number of periods (in bars) that the script considers when calculating the regression line and standard deviation. Traders can also personalize the visual aspects of the indicator on the chart using the color, linewidth, and linestyle parameters.
Calculation of Standard Deviation:
The core of this script lies in calculating the regression line and standard deviation. This is where the InertiaAll function comes into play. This function calculates the linear regression line, which serves as the middle line of each channel. The function takes in two parameters: y (price data) and n (length for calculation). It returns an array containing the values for the regression line (InertiaTS), counter variable (x), slope of the line (a), and y-intercept (b). The standard deviation is then calculated using the built-in function ta.stdev, which measures the amount of variation or dispersion from the average.
After the calculation, the script proceeds to draw the channels. It creates two sets of lines (upper, middle, and lower) for each channel. These lines are initialized at the lowest price point on the chart (low). The coordinates for these lines get updated in the last section of the script, which runs only on the last bar on the chart (if barstate.islast). The functions line.set_xy1 and line.set_xy2 are used to adjust the starting and ending points for each line, forming the channels.
If the "full range" toggle is enabled, the script uses the maximum number of bars available on the chart to calculate the regression and standard deviation. This can give a broader perspective of the price's volatility over the entire available data range.
A Basic Strategy
The channels generated by this script may inform your trading decisions. If the price hits the upper line of a channel, it could suggest an 'overbought' condition indicating a potential selling opportunity. Conversely, if the price hits the lower line, it might signal an 'oversold' condition, suggesting a buying opportunity. The second channel, calculated over a different length, may serve to confirm these signals or identify longer-term trends.
Daily SPY PlanThe Daily SPY Plan indicator is a technical analysis tool designed to provide traders with a visual representation of price levels and take profit points for the SPY (S&P 500 ETF) on a daily timeframe. This indicator utilizes the Average True Range (ATR) to calculate projected price levels and take profit points, aiding traders in identifying potential breakout and profit-taking opportunities.
Indicator Description:
The indicator is written in Pine Script, specifically for use on the TradingView platform. It plots several levels on the price chart, each representing a potential breakout or take profit point. The levels are determined based on a fraction of the ATR added or subtracted from the closing price. The fractions used are 0.25, 0.5, 0.75, 1.0, 1.25, and 1.5 times the ATR.
The indicator distinguishes between breakout levels and take profit levels using different colors. Breakout levels, which indicate potential entry or exit points, are displayed in green, while take profit levels are shown in gray.
Key Features and Use:
ATR Calculation: The indicator calculates the Average True Range (ATR) using a specified length (default value of 14). ATR is a measure of market volatility and represents the average range between the high and low prices over a specific period.
Projected Price Levels: The indicator plots several projected price levels above and below the closing price. These levels are calculated by adding or subtracting a fraction of the ATR from the closing price. Traders can use these levels as potential breakout points or areas to set stop-loss orders.
Take Profit Points: The indicator also plots take profit points at specific levels above and below the closing price. These levels are designed to help traders identify potential areas to secure profits or partially exit their positions.
Visual Representation: The indicator utilizes step-like lines to plot the projected price levels and take profit points, providing a clear visual representation on the price chart. Traders can easily identify the relevant levels and incorporate them into their trading strategies.
Customizability: The indicator allows traders to customize the ATR length and choose whether to display Fibonacci levels (although there are no Fibonacci calculations in the provided code). These customization options enable traders to adapt the indicator to their preferred trading style and timeframe.
Limitations and Considerations:
Complementary Analysis: The Daily SPY Plan indicator should be used as a complementary tool alongside other technical analysis techniques and indicators. It provides price levels and take profit points based on ATR calculations, but it doesn't incorporate additional market factors or trading strategies.
Timeframe Suitability: The indicator is specifically designed for the daily timeframe of the SPY. Traders should consider adjusting the parameters and adapting the indicator if using it on different timeframes or instruments.
Risk Management: While the indicator suggests potential breakout and take profit points, it does not provide explicit stop-loss levels or risk management parameters. Traders should incorporate appropriate risk management techniques to protect their capital.
Conclusion:
The Daily SPY Plan indicator is a valuable technical analysis tool for traders focusing on the SPY ETF and the daily timeframe. By utilizing the ATR, it helps traders identify potential breakout levels and take profit points. However, traders should remember that this indicator is just one piece of the puzzle and should be used in conjunction with other technical analysis tools and risk management strategies to make informed trading decisions.
Apeiron Fair Value BandsThe Apeiron Fair Value Bands take into account a given MA and determine a Fair Value Area (FVA) for the price of a certain asset. The script plots a MA and a tolerance ribbon for it, as well as 2 bands (preset to 1 Standard deviations and 2 Standard deviations respectively, which can be manually changed) with a tolerance ribbon as well.
This creates 3 areas of interest:
The MA ribbon
The inside of the first upper and lower band (1 standard deviation) where price should stay within around 68% percent of the time according to the normal distribution
The inside of the second upper and lower band (2 standard deviations) where price should stay within around 95% percent of the time according to the normal distribution
Taking this into account, Fair Value analysis can be done:
Premium and Discount Prices: From a very simplistic point of view, when price is below a MA it can be considered to be at a discount and when it is above at a premium. Combining that idea with the levels given by the bands, we can determine if we are buying at premium or at a discount, specially on HTF and when considering investing, thus allowing to enter or exit the market with a higher probability of being on the right side of the trend and at a good level. As seen on the example, buying or selling at the highlighted levels would have been profitable with little drawdown.
VAH & VAL: (1 Standard Deviation Bands) Same as a Market Profile, price will stay in here "most" of the time. And particularly during ranging periods, they will provide potential revesal levels. As well, once prices breaks out of it, depending of the reaction to the second band, we can consider it a deviation or the beggining of a new trend. During strong trends, the bands can also serve as a correction support as the MA would do
New Fair Vaue Range: Once a new trend has begun, it will often slide on or break through Band 2, which can be interpreted as price creating a new Fair Value Range low or high. As seen on the chart, once price breaks out, those levels tend to be respected and relevant during corrections. I must make it very clear that this is just an analytical feature meant to be used in confluence with S/R, Supply & Demand, FVGs, Fibs or others. While it can be accurate sometimes, it might not be other times and be only "close".
Exhaustions: I call exhaustions to the scenarios when price keeps going up/down but it fails to keep pushing the fair value area with it. This indicates weakness in the trend and a potential reversal or correction. These appear on all Timeframes and symbols and are very good indications of tops and bottoms, specially after strong rallies or crashes. In the latter cases, waiting for price to re-enter it's FVA, provides great entries at the Bands levels.
Other features / Suggested Uses:
Middle levels: On the setup menu you can select different Standard deviation settings for each band including: 0.5, 1, 1.5, 2, 2.5 and 3. While the most relevant settings are 1 & 2, having their middle levels on the chart can provide extra levels for very tight ranges or just in general potential reversal levels.
Multi Timeframe & Multi symbol: The bands work on very low TF as well as High TF, though on HTF it might be limited by the MA length settings and the historical data of the symbol. It is important to note that each symbol and market type will have its own ideal MA and Bands settings.
Multi Bands Confluence: Same as you would use a short and long MA in a single setup, you can do the same with the bands and the confluence of levels can be very accurate.
Multi Timeframe Confluence: One of the best ways to use the bands so far is by using it in confluence with itself in other TFs, when price moves sharply into a confluent level given by multiple TFs, it is more likely for price to reverse there.
Most of the examples show a 200 SMA, but depending on what and how you are trading a shorter or longer MA might be a better fit for you. As well, if you are trading ranges, a VWMA might be much better, and if you are following a trend the EMA could be the better option.
I also want to make it clear that the bands can but are NOT meant to be a standalone indicator. They are meant to be used for confluence with other strategies, systems or indicators.
Grid Strategy with MA0. Preface
Hello traders,
This is a strategy script that allows you to utilize a Grid Strategy using moving averages.
It is very simple, but I decided to post it because it was hard to find such shared open-source codes in Pine Script.
1. Main
This is a very simple trading method.
Based on the moving average line you set, if the price drops by a certain ATR (or percent) below it, you buy, and when it goes back up, you sell.
In basic settings, you choose the moving average line and its length, and decide how much to set the distance between each grid through the 'Band Multiplier/Percent' item.
I believe that it is advantageous to widen the bandwidth for stocks with strong upward momentum.
2. Conclusion
I have confirmed that this works better in the stock market than in the crypto market,
and that it is suitable for use on index stocks like NASDAQ because it follows trends.
In addition, through backtesting, I have confirmed that this grid strategy is more suitable for buying strategies than selling strategies, so I uploaded it as a strategy focused on buying strategies.
Personally, I have developed my own strategy by adjusting buying and selling strategies according to trends and managing risks.
I hope you can use this to create a script that suits you.
Thank you.
Order Block & Fractal Zones (OBFZ) Indicator.The "Order Block & Fractal Zones (OBFZ) Indicator." indicator is a technical analysis tool designed to identify and display key price levels on a chart. It utilizes the concept of Order Blocks and the Fractal Value Zone (FVG) to highlight potential support and resistance areas in the market.
The indicator marks bearish and bullish Order Blocks, which are significant price structures characterized by consecutive higher highs and higher lows for a bearish block, or consecutive lower lows and lower highs for a bullish block. These blocks suggest potential areas of market reversal.
Additionally, the indicator calculates and displays retracement and extension levels within each Order Block. These levels are derived from the previous highest and lowest values within a specified number of candles. The retracement levels include 38.2%, 50%, and 61.8%, while the extension levels include 138.2%, 150%, and 161.8%.
Furthermore, the Fractal Value Zone (FVG) is determined to identify the highest high and lowest low within the selected number of candles. The FVG helps identify areas of significant price action and potential breakout zones.
Overall, the "Order Block & Fractal Zones (OBFZ) Indicator." indicator assists traders in identifying potential support and resistance levels, as well as areas of market reversal or breakout. It can be used to make informed trading decisions based on key price levels within the observed price action.
Edri Extreme Points Buy & SellEDRI EXTREME POINTS BUY & SELL INDICATOR
This Buy and Sell (non-repainting) indicator uses signals based on the combined CCI/Momentum and RSI indicators and optional regular divergence.
The idea of the indicator is to look for a potential reversal after the price reached extreme points (overbought or oversold) and signals an entry when the price shows signs of momentum for reversal.
Optionally, it considers finding a divergence while RSI is at the extreme levels to improve the predictability of a possible reversal.
Additionally, the indicator includes a simple Mean Reversion visual on the chart to assist users in identifying extreme price levels and potential reversal opportunities. It features upper and lower bands that can be optionally plotted, showing calculated values where price bounces at those extreme levels.
The purpose of these bands is to help traders avoid getting trapped in the middle of a trend and to guide them to buy low and sell high. (It's important to note that this is purely a visual aid and does not impact the generation of trade signals.)
By utilizing the Mean Reversion bands alongside the entry conditions, traders can gain insights into potential price reversals and make more informed decisions about when to enter or exit trades.
Buy and Sell Entry conditions:
• The indicator looks at the CCI/Momentum indicator to turn positive (if buy) or negative (if sell) after the RSI was overbought or oversold in the recent past.
• It also checks if there is a 3-period regular bullish divergence in the RSI (if buy), or regular bearish divergence (if sell) and consider these in the entry condition.
• If these conditions are met, this indicator suggests that it may be a good time to enter a trade.
In summary this is how this indicator works:
• The indicator takes input settings such as the choice between using CCI or Momentum as the entry signal source, length parameters for CCI/Momentum, RSI levels for overbought and oversold conditions, RSI length, and options to plot mean reversion bands on the chart.
• It calculates the CCI and Momentum and RSI values based on user-defined length..
• It checks for regular bullish and bearish divergences (3 periods) in the RSI if the option is enabled.
• The script plots shapes on the chart to indicate the buy and sell signals based on the entry conditions.
• If the mean reversion bands option is enabled, it calculates the mean reversion, standard deviation, upper band, and lower band values.
• It also plots the upper band, mean reversion line, and lower band on the chart if the mean reversion bands option is enabled.
• This indicator includes alert conditions to generate alerts for the buy and sell signals.
• On top of that, users can opt to use only one alert for both buy and sell signals. (This can save Trading view subscribers with limited alerts.)
Important! Please do not consider everything you read here as financial advice. Additionally, do not rely solely on indicators for making your trading decisions. It is important to note that no indicator or strategy is perfect. Therefore, it is always recommended to backtest everything and practice proper risk management.
I appreciate your feedback on this indicator. As I am new to script development, I am open to comments and suggestions to improve it. If you encounter any issues while using this indicator, please let me know in the comments section. If you find it helpful, I kindly ask for your support in boosting it. Thank you for your cooperation.
[Rygel] Dual time frame Bollinger Bands with signals and alertsThis indicator displays two Bollinger Bands coming from two different time frames, chart's current one and a higher one.
It analyzes these two Bollinger Bands data and combines them with RSI, MFI and MACD divergences and SuperTrend to identify areas of opportunity where price is the most likely to be at a local top or bottom.
It uses probabilistic data, the Bollinger Bands, to identify convergence areas where the price is statistically overbought or oversold simultaneously at two different time frames, it then looks for signs of a trend exhaustion, using RSI, MFI and MACD divergences, and finally it looks for an early confirmation of a trend reversal, using SuperTrend data with aggressive settings.
This indicator does not produce buy and sell signals. You won't get a buy for every sell or a sell for every buy. In a bearish trend, you may get multiple consecutive bullish signals and in a bullish trend multiple bearish signals.
It is meant to help you to identify and to alert you about areas of opportunity where you could, for instance, consider taking some profits or opening a trade.
It is meant to support your investment or trading decisions, not to induce them.
SIGNALS
This indicator generated multiple types of signals. Diamonds are better than squares. Colored ones are better than grey ones.
Green square: a bullish signal confirmed by a regular divergence
Red square: a bearish signal confirmed by a regular divergence
Blue square: a bullish signal confirmed by a hidden divergence (disabled by default as these signals are less reliable)
Orange square: a bearish signal confirmed by a hidden divergence (disabled by default as these signals are less reliable)
Diamonds: same as the square signals but the signal is forming a divergence with a previous one. Diamond signals are always stronger (i.e. more reliable) than square signals.
Grey signals: same as the previous ones but for weaker signals. These signals appear when price in the current time frame is overbought or oversold but only close to be at the higher timeframe. (disabled by default as these signals are less reliable)
When a weak signal follows a strong one and creates a MACD divergence with it, it will be considered as a strong signal and displayed as a colored signal, even when weak signals are disabled.
When a strong signal follows a weak one, forming a MACD divergence, it will be shown as a diamond signal, even when weak signals are disabled.
Most reliable signals are green and red diamonds.
SETTINGS
Bollinger Bands
Source: the source used to calculate the Bollinger Bands ("close" by default)
Length: the moving-average length of the Bollinger Bands (20 by default)
You will most likely have no need to change these settings. If you're wondering what they actually do, you should most likely not touch them.
Main channel standard deviation: the standard deviation used to calculate the classical Bollinger Bands channel. (2.0 by default)
Outer bands standard deviation: additional channels outside the main one, using a larger standard deviation. (3.0 by default)
Theoretically, with a 1.0 standard deviation, around 68% of the price action should be contained within the Bollinger Bands.
With a 2.0 standard deviation, around 95%.
With a 3.0 standard deviation, around 99.7%.
With a 4.0 standard deviation, around 99.99%.
But as security prices returns have no actual statistical distribution, these probabilities don't strictly apply to Bollinger Bands. According to Wikipedia, studies have found that with a 2.0 standard deviation, only about 88% (85–90%) of the price data remain with the Bollinger Bands, instead of the theoretical 95%.
The higher you set the values, the less signals you'll get.
You should most likely keep the main channel standard deviation between 2 and 3 and add between +0.5 and +1 for the outer bands.
Most commonly used value for Bollinger Bands is 2.0.
Current time frame
Show current time frame Bollinger Bands: these are the Bollinger Bands you're used to. (enabled by default)
Show current time frame outer bands: add two additional bands outside the main channel using a larger standard deviation. (enabled by default)
Higher time frame
Show higher time frame Bollinger Bands: display secondary Bollinger Bands from a higher time frame. Time frames are configured in the below "Time frames" section. (enabled by default)
Show higher time frame outer bands: add two additional bands outside the main channel using a larger standard deviation (enabled by default)
Overbought and oversold
Show oversold and overbought background: add a background to the higher time Bollinger Bands whose color depends on the dual time frame Bollinger Bands oversold / overbought status. (enabled by default)
Asset is considered overbought/oversold when its price is outside of the Bollinger Bands' main channel.
Asset is considered strongly overbought/oversold when its price is outside of the Bollinger Bands' outer bands.
Dark red: both time frame are overbought (outside the main channel)
Red: one time frame is strongly overbought (outside the outer bands) and the other one is overbought (outside the main channel)
Bright red: both time frame are strongly overbought (outside the outer bands)
Dark green: both time frame are oversold (outside the main channel)
Green: one time frame is strongly oversold (outside the outer bands) and the other one is oversold (outside the main channel)
Bright green: both time frame are strongly oversold (outside the outer bands)
Signals
Show signals: display signals when an area of opportunity is detected. Read the introduction and the Signals section for more information. (enabled by default)
Show weak signals: display signals although at the higher time frame price is not yet overbought or oversold but close to be (disabled by default)
Divergences
Use MACD for divergences (enabled by default)
Use MFI for divergences (enabled by default)
Use RSI for divergences (enabled by default)
At least one source of divergences must be enabled for signals to work.
Enable hidden divergences: signals don't use hidden divergences by default as they generate more false positives than regular divergences. You can enable them to get more signals, it can be especially useful at high time frames (like weekly, monthly, etc.) where signals are rarer. (disabled by default)
Show divergences: draw MACD, MFI and RSI divergences on the chart. (disabled by default)
Green: regular bullish divergence
Red: regular bearish divergence
Blue: hidden bullish divergence
Orange: hidden bearish divergence
Confirmation
Confirmation speed: a faster confirmation speed will generate more false positive signals, a slower one will produce delayed but more reliable signals.
Fastest: don't wait for a SuperTrend confirmation, only wait for a divergence confirmation. Lot of false positives.
Fast: wait for a fast SuperTrend confirmation (SuperTrend factor = 1).
Medium: wait for a slower but more reliable SuperTrend confirmation (SuperTrend factor = 2). Fewer false positives but more lagging signals.
Slow: wait for an even slower but very reliable SuperTrend confirmation (SuperTrend factor = 3). Very few false positives but very late signals.
Time frames
You can define the higher time frames you wish to use here.
Default values try to adhere to a x6 to x8 ratio, x4 to x12 at maximum.
Some pairs are more significant than others, like 4 hour + daily, daily + weekly and weekly + monthly.
1 second: 10 seconds
5 seconds: 30 seconds
10 seconds: 1 minute
15 seconds: 2 minutes
30 seconds: 3 minutes
1 minute: 10 minutes
2 minutes: 15 minutes
3-4 minutes: 30 minutes
5-9 minutes: 45 minutes
10-11 minutes: 1 hour
12-14 minutes: 1 hour
15-29 minutes: 2 hours
30-44 minutes: 4 hours
45-59 minutes: 6 hours
1 hour: 8 hours
2 hours: 12 hours
3 hours: 1 day
4-5 hours: 1 day
6-7 hours: 2 days
8-11 hours: 3 days
12-23 hours: 4 days
1 day: 1 week
2 days: 2 weeks
3 days: 3 weeks
4 days: 1 month
5 days: 1 month
6 days: 1 month
1 week: 1 month
2 weeks: 2 months
3 weeks: 3 months
1 month: 6 months
2 months: 9 months
3 months: 12 months
4 months: 15 months
5 months: 21 months
6 months: 24 months
Time frames use the TradingView units:
s = seconds
h = hours
D = days
W = weeks
M = months
no unit = minutes
Time frame strings follow these rules:
They are composed of the multiplier and the time frame unit, e.g., “1S”, “30” (30 minutes), “1D” (one day), “3M” (three months).
The unit is represented by a single letter, with no letter used for minutes: “S” for seconds, “D” for days, “W” for weeks and “M” for months.
When no multiplier is used, 1 is assumed: “S” is equivalent to “1S”, “D” to “1D, etc. If only “1” is used, it is interpreted as “1min”, since no unit letter identifier is used for minutes.
There is no “hour” unit; “1H” is not valid. The correct format for one hour is “60” (remember no unit letter is specified for minutes).
The valid multipliers vary for each time frame unit:
- For seconds, only the discrete 1, 5, 10, 15 and 30 multipliers are valid.
- For minutes, 1 to 1440.
- For days, 1 to 365.
- For weeks, 1 to 52.
- For months, 1 to 12.
Styles
You can configure the appearance of the Bollinger Bands, the overbought / oversold background, the divergences and the signals here.
Advanced - MACD
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - MFI
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - RSI
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - SuperTrend
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
ALERTS
Any signal: a bullish or bearish signal has been detected.
Bullish signal: a bullish signal has been detected.
Bullish signal with divergence: a bullish signal forming a divergence with a previous bullish signal has been detected.
Bearish signal: a bearish signal has been detected.
Bearish signal with divergence: a bearish signal forming a divergence with a previous bearish signal has been detected.
Overbought/oversold = asset price is outside of the Bollinger Bands' main channel.
Strongly overbought/oversold = asset price is outside of the Bollinger Bands' outer bands.
Current time frame - Entering overbought: asset is now overbought at the current time frame.
Current time frame - Exiting overbought: asset is not overbought anymore at the current time frame.
Current time frame - Entering strongly overbought: asset is now strongly overbought at the current time frame.
Current time frame - Exiting strongly overbought: asset is not strongly overbought anymore at the current time frame.
Current time frame - Entering oversold: asset is now oversold at the current time frame.
Current time frame - Exiting oversold: asset is not oversold anymore at the current time frame.
Current time frame - Entering strongly oversold: asset is now strongly oversold at the current time frame.
Current time frame - Exiting strongly oversold: asset is not strongly oversold anymore at the current time frame.
Higher time frame - Entering overbought: asset is now overbought at the higher time frame.
Higher time frame - Exiting overbought: asset is not overbought anymore at the higher time frame.
Higher time frame - Entering strongly overbought: asset is now strongly overbought at the higher time frame.
Higher time frame - Exiting strongly overbought: asset is not strongly overbought anymore at the higher time frame.
Higher time frame - Entering oversold: asset is now oversold at the higher time frame.
Higher time frame - Exiting oversold: asset is not oversold anymore at the higher time frame.
Higher time frame - Entering strongly oversold: asset is now strongly oversold at the higher time frame.
Higher time frame - Exiting strongly oversold: asset is not strongly oversold anymore at the higher time frame.
Dual time frame - Entering overbought: asset is now overbought at current and higher time frames.
Dual time frame - Exiting overbought: asset is not overbought anymore at current and higher time frames.
Dual time frame - Entering oversold: asset is now oversold at current and higher time frames.
Dual time frame - Exiting oversold: asset is not oversold anymore at current and higher time frames.
Dual time frame - Entering strongly overbought: asset is now strongly overbought at current and higher time frames.
Dual time frame - Exiting strongly overbought: asset is not strongly overbought anymore at current and higher time frames.
Dual time frame - Entering strongly oversold: asset is now strongly oversold at current and higher time frames.
Dual time frame - Exiting strongly oversold: asset is not strongly oversold anymore at current and higher time frames.
ABOUT THE HIGHER TIME FRAME BOLLINGER BANDS
Using a classical higher time frame Bollinger Bands would produce lagging data. For instance, if we are using a weekly BB at the daily time frame, we'll have to wait up to 7 days for the weekly bar to close to get the actual final weekly BB values. Instead, this indicator generates real time higher time frame Bollinger Bands by multiplying the moving average length of the Bollinger Bands by the higher time frame / current time frame ratio. For instance, a weekly BB in the daily time frame will use a x7 ratio (i.e. a 20 * 7 = 140 days MA BB).
It produces slightly different but very similar bands that are as meaningful and can be used in real time at lower time frames.
Alternatives would have been to wait up to seven days for signals to be finalized, which would have render them meaningless. Or to use previous week data, which would have made the signal inaccurrate.
To sum up, weekly Bollinger Bands use a 20 weeks moving average updated one time a week. In the daily time frame, this indicator also use a 20 weeks (140 days) moving average but updated daily instead of weekly.
A comparison between a traditional higher time frame Bollinger Bands vs the ones used by this indicator:
Blue and orange lines are the actual weekly BBs, grey ones are the daily updated ones.
ABOUT THE DIVERGENCES
This indicator uses the same divergences algorithm as my other indicators:
- RSI with divergences
- MACD with divergences
- Trend Reversal Indicator
You'll find more information about this algorithm on my RSI page.
[MAD] CurveBuilderThe CurveBuilder is a versatile indicator that constructs channels using selectable input averages weighted together.
It also incorporates scalable and shiftable offsets on the resulting bands.
This indicator allows users to customize various settings to tailor the channel construction according to their trading strategy.
here a example screenshot of 3 different settings overlayed
Key Features:
-------------------
1. Moving Average Timeframe: Select the timeframe for the moving average calculation on the middle line.
-------------------
2. Middleline Settings:
Allow you to customize the parameters related to the middle line of the channel.
The middle line is constructed using two moving averages, which can be selected from the various types available.
Here are the details of the Middleline Settings:
1. MA Type: This setting allows you to choose the type of moving average for the first average. You have the following options:
Weighted Moving Average (WMA), Hull Moving Average (HMA), Volume Weighted Moving Average (VWMA), Linear Moving Average (LMA),
Regular Moving Average (RMA), Simple Moving Average (SMA), Exponential Moving Average (EMA), EMA, Ehlers Gaussian,
Ehlers Smoother, Ehlers Supersmoother, Ehlers Butterworth, ChebyshevI, ChebyshevII
Length (1st MA): This parameter allows you to set the length or period of the first moving average. The length determines the number of bars considered in the calculation of the moving average.
2. MA Type: Similar to the first moving average, this setting lets you choose the type of moving average for the second average.
Length (2nd MA): This parameter sets the length or period of the second moving average. The length determines the number of bars considered in the calculation of the moving average.
3. Weighting:
This option allows you to adjust the weighting factor when merging from the first moving average to the second moving average.
By modifying the weighting, you can control the influence of the first average on the second average.
By selecting different moving average types, adjusting their lengths, and modifying the weighting factor, you can fine-tune the behavior of the middle line in the channel.
This flexibility allows you to customize the indicator to align with your preferred trading strategy and market conditions.
Best results are given when there is a maximum hitrate on retraces to the middleline, and many relevant directionchanges are near that line.
-------------------
3. Averaging Settings:
Offset of Curve in Bars: Shifts the indicator into the future by specifying the number of bars.
-------------------
4. Band Settings:
The Band Settings in the Multitimeframe Channel Builder indicator allow you to configure the parameters related to the construction of the bands around the middle line.
The bands provide an upper and lower boundary that help define the width of the channel. Here are the details of the Band Settings:
Band Mode:
This setting determines the method used to calculate the bands. You have the following options:
Off: Bands are turned off, and no calculations are performed.
True Range: Bands are calculated using the True Range.
Average True Range: Bands are calculated using the Average True Range.
Standard Deviation: Bands are calculated using the Standard Deviation.
Rate of Change: Bands are calculated using the Rate of Change.
Relative Strength Index: Bands are calculated using the Relative Strength Index.
Length (Bands):
This parameter sets the length or period used in the calculation of the bands. The length determines the number of bars considered when calculating the bands.
Band 1-3 Multiplicator:
These parameters allow you to adjust the scaling factor for each band. The multiplicative factor determines the width of the bands relative to the middle line.
Higher values result in wider bands, while lower values result in narrower bands.
Offset in % (Bands):
These parameters enable you to specify the offset percentage for each band. The offset represents the distance between the middle line and the bands.
A positive offset moves the bands further away from the middle line, while a negative offset brings the bands closer to the middle line.
By selecting the desired band mode, adjusting the length parameter, and modifying the multiplicators and offsets,
you can customize the width and positioning of the bands.
This flexibility allows you to adapt the indicator to different market conditions and trading strategies.
Note that if the Band Mode is set to "Off," the bands will not be displayed, regardless of the other band settings.
-------------------
5. Band Final Smooth:
The Band Final Smooth settings in the Multitimeframe Channel Builder indicator enable you to apply a smoothing technique to the constructed bands.
By selecting the desired smoothing type and adjusting the length parameter, you can customize the level of smoothing applied to the bands.
This helps to filter out short-term fluctuations and emphasize the underlying trend, providing a clearer visualization of the price channel.
Smooth Bands: This option allows you to enable or disable the smoothing of the bands. When enabled, the indicator applies the selected smoothing technique to the bands.
Smooth Type: You can choose the type of smoothing to apply to the bands. The available options include:
Weighted Moving Average (WMA), Hull Moving Average (HMA), Volume Weighted Moving Average (VWMA), Linear Moving Average (LMA),
Regular Moving Average (RMA), Simple Moving Average (SMA), Exponential Moving Average (EMA), EMA, Ehlers Gaussian,
Ehlers Smoother, Ehlers Supersmoother, Ehlers Butterworth, ChebyshevI, ChebyshevII
Length (Smooth Bands): This parameter sets the length or period of the smoothing technique applied to the bands.
A longer length will result in a smoother representation of the bands, while a shorter length will provide more responsiveness to price changes.
Final Smooth settings are optional, and you can choose to exclude smoothing if it does not align with your trading strategy or preferences.
-------------------
6. Alert Settings:
The Alert Settings in the Multitimeframe Channel Builder indicator allow you to configure the parameters related to the generation of alert notifications based on specific conditions.
Alerts can help you stay informed about potential trading opportunities. Here are the details of the Alert Settings:
Alert Mode: This setting determines the type of alert triggered by the indicator. You have the following options:
Band-outside: Generates an alert when the price moves outside the constructed channel bands.
Band-crossin: Generates an alert when the price crosses above or below the channel bands.
Band-crossout: Generates an alert when the price crosses back inside the channel bands.
Trend: Generates an alert when there is a significant trend change (over or under the middleline).
Oscillator: Generates an alert based on the behavior of the oscillator, if in Oscillator mode.
Spikedetection: This option allows you to enable or disable spike detection in the alerts. When enabled, the indicator considers spikes or sudden price movements when generating alerts.
By selecting the appropriate Alert Mode and configuring spike detection, you can receive alert notifications that align with your trading strategy and help you identify potential trading opportunities.
It's important to note that alert settings alone do not place trades automatically.
They serve as notifications for you to review and analyze the situation before making trading decisions.
Make sure to have a proper understanding of the selected alert mode and its implications in your trading strategy.
-------------------
7. Operation Mode:
The Multitimeframe Channel Builder indicator offers three operation modes: Channels, Oscillator, and Noplot.
This setting determines how the indicator is displayed on the chart and what type of information it provides.
Channels Mode:
When the indicator is set to channel mode, it will be displayed as an overlay on the chart. It generates channel lines based on the selected moving average types and their lengths.
These channels can help identify support and resistance levels or potential price breakout points. The channel lines are plotted on the chart,
providing a visual representation of the price movements within the channels.
Oscillator Mode: In Oscillator mode, the indicator is presented on a separate plane below or above the main chart, which you need to move manually.
It generates an oscillator based on the configured settings, including the selected moving averages and their lengths.
The oscillator provides insights into the market's momentum and overbought/oversold conditions.
It consists of horizontal lines representing different levels, such as upper and lower boundaries, and a middle line.
Traders can analyze the oscillator's movements and crossovers to identify potential trading signals.
Noplot Mode: Setting the indicator to Noplot mode disables all visual plotting on the chart. However, the indicator still generates alerts based on the configured settings.
This mode is useful if you only want to receive alert notifications for trading opportunities without cluttering the chart with additional visual elements.
Channels mode is ideal for analyzing price movements within defined channels,
Oscillator mode provides insights into market momentum, and
Noplot mode allows for focus on alert notifications without visual distractions on the chart.
-------------------
8. Oscillator Settings (Only applicable in Oscillator mode):
Hline from highest to lowest: Set the values for the highest to lowest horizontal lines.
POW-Compression: Adjust the compression factor for the oscillator.
Multiplier: Set the multiplier for the oscillator.
Oscillator Normalization Lockback: Specify the minimum time for normalization in the oscillator.
Detection Length and Filter Length: Set the lengths for the oscillator detection and filter.
Show Acceleration: Enable or disable the display of acceleration.
-------------------
9. Label Settings:
Decimals for Labels: Choose the number of decimals for label values.
Show Alerts (L1, L2, L3): Toggle the visibility of alerts for each level. Alert 1 is a minor alert, 3 a major
Label Color: Set the color for the labels.
Display Lines: Show or hide the lines on the chart.
Display Prices: Show or hide the price levels on the chart.
-------------------
10. Signal Config:
This Indicator offers a signal transmission configuration section specifically for Multibit implementation.
This feature allows you to transmit signals between multiple instances of the indicator, creating a daisychain effect. Here are the details of the Multibit implementation settings:
Signal Type: This setting determines the type of signal transmission used. You have the following options:
MultiBit: Enables the Multibit signal transmission.
MultiBit_pass: Enables the Multibit signal transmission with infusion.
NoInput: Disables the signal transmission.
Select Incoming Indicator: This parameter allows you to select the incoming indicator for signal transmission. You can choose any valid input source, such as the closing price or another indicator.
Channel configuration:
Channel long signal 1: Specify the channel used to transmit long signals for the first instance in the daisychain. Choose a value from -1 to 15 to represent different channels.
Channel short signal 1: Specify the channel used to transmit short signals for the first instance in the daisychain. Choose a value from -1 to 15 to represent different channels.
Channel long signal 2: Specify the channel used to transmit long signals for the second instance in the daisychain.
Channel short signal 2: Specify the channel used to transmit short signals for the second instance in the daisychain.
Channel long signal 3: Specify the channel used to transmit long signals for the third instance in the daisychain.
Channel short signal 3: Specify the channel used to transmit short signals for the third instance in the daisychain.
Channel Sideways only: Specify the channel used to transmit signals related to sideways movements.
Channel Trend: Specify the channel used to transmit signals related to trend movements.
Here's a overview of the current settings.
-------------------
Librarys used:
djmad/Signal_transcoder_library
djmad/MAD_MATH
djmad/Mad_Standardparts
Premium VWAP Trendfollow Strategy [wbburgin]This is a strongly-revised version of my VWAP Trendfollow Strategy, which follows a substantial reworking to address various structural inefficiencies with the script, such as the narrowing of the standard deviation band upon anchor reset. I will continue updating the original script with planned adjustments, this is a different proof-of-concept that builds off of the original script thesis with a different calculation method and execution.
This strategy is not built for any specific asset or timeframe, and has been backtested on crypto and equities from 1 min-1 day. The previous experimental strategy was heavily-correlated with the actual movement of the asset, which added unpalatable risk to the strategy and increased drawdown. This revised form has a more stable backtesting curve, but I want to heavily emphasize that I cannot guarantee that the strategy will be profitable for your circumstances. Backtesting only goes so far and every exchange has a different fee schedule, which can substantially eat into your profits. At the bottom I will explain the parameters behind the strategy results.
**********
The VWAP Trendfollow Strategy begins with a simple premise: to enter long when the price breaks above the upper standard deviation of a VWAP, and to close the position when the price breaks below the lower standard deviation of the VWAP. This is more effective than initiating the same strategy for a VWMA because the VWAP resets its anchor depending on your chosen anchor period, and the act of resetting its anchor also resets its standard deviation value. As a consequence, in sustained uptrends, the standard deviation is pulled upward to meet the price when the anchor resets, instead of requiring the price to fall all the way back down, as in the lower standard deviation band of the VWMA. This essentially acts as the VWAP itself raising the stop loss at each anchor period, which works well for the overall trend-following strategy.
However, this narrowing can still have consequences for a simple breakout strategy; as the price gradually oscillates towards above or below its standard deviation band, it may cross over the other and produce false signals. This oscillation is worrisome especially when fees are taken into account.
Thus, the premium VWAP Trendfollow strategy has a variable width which detects abnormal narrowing of the band, and adjusts it until it is reasonable to close the variability period. Additionally, a filter is added to the open/close signals to soften the frequency of signals without impacting performance significantly.
This script contains an ATR stop loss and an ATR take profit (which is also a difference between it and the original experimental script), with customizable inputs. The strategy results shown below are with initial capital of $1000, qty entry of 10%, and commissions of 0.06%. It works best on 24/7 instruments, like crypto, but I have found it also works with FAANG stocks or other high volatility / high volume assets. The issue with stocks, however, is that the price can jump/plummet because of abnormal events after-hours, which the strategy cannot pick up on until pre-trading begins the next morning. For that reason I suggest it be used on crypto and, because of its low % profitable (but high average winning trade in relation to its average losing trade), be used on an exchange that has minimal fees or volume-based discounts. In the unfortunate case that you cannot find a minimal fee or volume-discounted fee exchange (such as fellow Americans following the liquidity-retreat on Binance.US), I encourage you to test out the higher anchor periods for the higher timeframes, which will reduce the number of trades and increase the average % per trade.
Additionally, this is a long-term strategy used best for accumulation. It is currently long-only; that may change based off of user input.
**********
Disclaimer
Copyright by wbburgin.
The information contained in my Scripts/Indicators/Algorithms 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.
Breakout Band v1.0This indicator uses a custom source to define a point of relativity to which regions are based off to aid in technical analysis.
Breakout Band's use is:
- Monitoring trends
- Defining trends
- Defining areas of consolidation
- Trend support / resistance levels
- Aid in technical analysis
However, the band provides information different to that of an EMA, as they are not created from the same source, ref Fig 1.
---
Fig 1
Breakout Band compared to an EMA, both with a length setting of 20.
---
The primary band uses your charts timeframe to plot the band. This can be useful for more immediate information, ref Fig 2.
Fig 2
BTC on a 15m chart with Breakout Band's Chart Timeframe option.
---
There is also a functionality for a higher timeframe band to be plotted ( currently limited to 4 higher timeframes ) which can help to view higher timeframe moves with lower timeframe information, ref Fig 3. The higher timeframe band has an added smoothing effect.
Fig 3.
The same chart as referenced in Fig 2., while using Breakout Bands HTF option ( 60m band ).
---
USING BREAKOUT BAND
The band provides potential areas of consolidation, as seen in Fig 4., and when price action falls outside of the band, it can be considered trending.
Fig 4.
Defining areas of consolidation, trends, and monitor trends with Breakout Band.
---
Different zones are given different colors. The closer to the middle of the band, the higher chance of reactivity. Meaning, there is a greater chance that price will have a reaction within this zone. Whether that be trend continuation or a break of structure, showing signs of weakness of a trend, ref Fig 5.
Fig 5.
Breakout Bands reactivity region showing an area of potential resistance, which price action enters, then the trend continues.
---
NOTE : The same principles apply if you're using the HTF band for monitoring HTF trends.
I hope you enjoy the Breakout Band. Should you encounter any issues or have any suggestions for improving this indicator, let me know.
Any and all feedback is appreciated.
Filtered Momentum Indicator (FMI)The Filtered Momentum Indicator (FMI) is a tool created to assist traders in identifying changes in momentum and gaining insights into potential shifts in price trends. By combining the concepts of momentum and Bollinger Bands, the FMI offers a unique perspective on momentum values and their relationship to price movements, helping traders make informed trading decisions. The FMI is calculated using two main components:
-- Momentum Calculation : Momentum measures the strength and velocity of price changes. It is calculated by comparing the current price to the price 14 (default) periods ago and expressing it as a percentage.
-- Bollinger Bands Calculation : Bollinger Bands are based on the momentum values and provide a range within which the momentum is expected to fluctuate. The upper and lower bands are determined using a specified period (default of 20) and deviations (default of 2.0).
The FMI consists of two lines : F+ (Filtered Plus) and F- (Filtered Minus). These lines help gauge the strength of bullish and bearish momentum:
-- F+ represents the difference between the upper Bollinger Band and the momentum values. It indicates the strength of bullish momentum. F+ is colored aqua.
-- F- represents the difference between the momentum values and the lower Bollinger Band. It indicates the strength of bearish momentum. F- is colored yellow.
When analyzing the FMI, pay attention to the relationship between F+ and F-:
-- If F- is greater than F+ , it suggests potential bullish momentum, indicating that prices may have room to rise.
-- If F+ is greater than F- , it suggests potential bearish momentum, indicating that prices may have room to decline.
Coloration of the FMI enhances its interpretability - when F- is greater than F+, the indicator color is set to lime (green), signaling potential bullish momentum; when F+ is greater than F-, the indicator color is set to fuchsia (purple), signaling potential bearish momentum.
The FMI can be applied in various ways for trading strategies:
-- Identifying Potential Reversals : Watch for crossovers between the F- and F+ lines, as they may indicate a potential shift in momentum and offer opportunities to enter or exit trades.
-- Confirmation Tool : Combine the FMI with other technical indicators or price patterns to validate potential trend reversals or continuations. By aligning signals from different indicators, you can strengthen your trading decisions.
-- Trade Timing : Consider taking trades in the direction of the dominant FMI color. When the indicator shows strong bullish momentum (F- > F+), consider going long. Conversely, when it shows strong bearish momentum (F+ > F-), consider going short.
It is essential to be aware of the limitations of the FMI:
-- False Signals : The FMI, like any indicator, may generate false signals, especially during low volatility or choppy market conditions. Always use the FMI in conjunction with other analysis techniques for confirmation.
-- Lagging Nature : The FMI relies on historical price data, causing it to lag behind sudden market moves. Keep in mind that the FMI provides insights based on past momentum and may not capture immediate changes in market conditions.
By combining momentum and Bollinger Bands, this indicator provides a unique perspective for making informed trading decisions. Utilize the FMI in conjunction with other analysis techniques, considering its limitations, to enhance your trading strategy and improve decision-making.
Market Price Order Divergence + Trapped Positions [Pt]█ Introduction
Specifically designed for trading on NYSE, NASDAQ, Dow Jones, and AMEX related instruments like SPY, QQQ, ES, NQ...etc., this innovative tool provides traders with advanced market insights to help them comprehend the market intricacies and make well-informed decisions. Comprising three primary features: Price Order Divergence (POD) Bubbles, Market Order Bubbles, and Trapped Positions/Zones, this tool assists traders in deciphering the nuances of market order flow and trends.
An important point to note is that TradingView doesn't currently provide direct access to market order data, such as buy and sell order flow. Therefore, this tool cleverly leverages TICK index data to estimate the overall market buy and sell strength.
█ Price Order Divergence (POD)
POD serves to detect disparities between the prices of US indices and estimated market orders during regular trading hours (9:30 to 16:00 EST). Bullish divergence indicates that the estimated market order flow is biased towards buy orders, despite bearish price action. In contrast, bearish divergence indicates that the market order flow is biased towards sell orders while the price exhibits bullish action. By default, PODs are visually represented as green bubbles under the candle for bullish divergence and red ones above the candle for bearish divergence. The bubble's size symbolizes the estimated market order strength.
█ Market Order Bubbles (MOB)
During extended or Globex hours, instead of POD, the tool uses Market Order Bubbles (MOB) to estimate market orders using volume data. Sophisticated algorithm is used to distinguish between bullish vs bearish volume. A strong bullish volume represents significant buy orders, whereas a strong bearish volume represents substantial sell orders. By default, MOBs during these hours are shown in blue for bullish and yellow for bearish divergence. Again, the bubble's size symbolizes the estimated market order strength.
█ Trapped Positions/Zones
Trapped positions materialize when PODs or MOBs emerge in trending markets. For example, a bearish divergence during an uptrend suggests significant selling (including shorting), and if the price continues ascending without offering short positions any profit, these positions become 'trapped shorts' and is shown as 'TS' in the zone. The opposite is true for 'trapped longs' or 'TL'.
A price range zone can be delineated from the trapped position candles. If prices revisit these zones, and the prevailing market trend stays bullish, the trapped shorts will probably liquidate near the break-even point to mitigate losses. The same rationale applies to bullish divergence in a downtrend. Therefore, these zone often times represents support / resistance zones.
█ Potential Use Cases
► Trend Confirmation: POD or MOB can confirm the strength of an ongoing trend. For example, during a bullish trend, a plethora of green bubbles or blue MOBs can affirm the trend's solidity.
► Spotting Reversals: Large, isolated POD or MOB bubbles could indicate potential market reversals. For instance, a prominent red bubble or yellow MOB during an uptrend might hint at an impending trend reversal.
► Risk Management: The Trapped Positions/Zones feature could assist in risk management. When prices approach these zones, traders can anticipate potential large market orders impacting price movements.
► Profit Optimization: This tool can aid traders in optimizing profits by identifying when trapped positions are likely to liquidate, thus predicting potential sharp price movements.
Remember, as with any tool, this should be used alongside other market analyses and not as a standalone indicator. Happy trading!
================================================================================================================
█ Settings Overview
◊ Market - available options: NYSE, NASDAQ, Dow Jones, AMEX. This will be displayed
◊ Lookback period- # of bars to lookback for detecting price vs market order divergences
▼ Regular Hour - Price Order Divergence Bubbles
◊ Show Price Order Divergence (POD) Bubbles - toggle on/off for POD bubbles
◊ └ Use Market Order Sentiment only - Shows divergences between price movement and market order sentiment (amount of buying vs selling)
◊ └ Use Market Order Trend Bias - On top of market order sentiment, the indicator also looks at overall market short term trends to determine divergences
◊ └ Use Threshold Min. Threshold - For filtering order size, the lower the threshold, the more sensitive
◊ └ Use Volume Strength - Take volume into consideration as well, only shows divergence when there is strength in volume
▼ Extended Hour - Market Order Bubbles
◊ Show Market Order Bubbles - toggle on/off for MOB. Using volume data to estimate significant market order activities. Bubbles indicate possible large liquidation activities
◊ └ Volume Analysis period - lookback period for volume analysis
◊ └ Volume Strength period - lookback period for volume strength
▼ Trapped Position Zones
◊ Show Potential Traps - toggle on/off for un-activated trapped zones. They are shown as lightly shaded areas of potential traps. These areas will be activated once price hit the activation %
◊ Show Trapped positions (Regular Hours) - toggle on/off for POD trapped zones. By default, trapped shorts are shown in green, trapped tongs are shown in red.
◊ Show Trapped positions (Extended Hours) - toggle on/off for MOB bubbles. By default, trapped shorts are shown in blue, trapped tongs are shown in orange.
◊ └ Activation % - Trapped zones are activated if price goes x% of the potential trapped range in the undesirable direction. Default is 100%
◊ Liquidate display options - options: On first touch, Per touch, Fully liquidated
Trapped zones liquidate display options:
▼ Display
◊ General color settings for bubbles, trapped zones, and label size
◊ Use Emoji for bubbles - fun setting that displays bulls and bears by default. This helps really visualize where the bulls and bears are! 🤣🤣 These emoji can be changed in the style setting.
▼ Trapped Zone Channel
The trapped zone channel represents a continuous channel of the closest activated trapped zone area. This allows for creating alerts for trapped zones, and the plot outputs allows for custom Pinescript integration.
◊ Trapped Zone Channel Buffer % - Adds upper and lower buffer for trapped zone channel
◊ Show Trapped Channel - toggle on/off on trapped zone channels
◊ └ Remove channel changing lines - toggle on/off the transition plot lines when switching to the closest trapped zones
◊ Show Trapped Channel Fill - toogl
▼ Extra
◊ Display settings for chosen market and indicator title
▼ Trend Follower
◊ Show Trend Following Bar Color - toggle trend follower algorithm. This is an experimental trend following algorithm that attempts to detect bullish, neutral and bearish trends.
▼ Outputs
◊ Output Bubbles
Outputs for Bubbles for external interface. These can be used as inputs to your own indicator or strategy Pinescript. For more info, take a look at this TradingView blog:
www.tradingview.com
Bubble type can be chosen within the settings:
Both - Default, output will include both Market Price Order Divergence Bubbles (during Regular Hours) and Market Order Bubbles (during Extended Hours)
POD Only (RTH) - Output will include only Market Price Order Divergence Bubbles; otherwise, output = 0 during Extended Hours
MOB Only (ETH) - Output will include only Market Order Bubbles; otherwise, output = 0 during Regular Hours
Market Order Bubbles output values:
3 = Large size Bullish Bubble
2 = Medium size Bullish Bubble
1 = Small size Bullish Bubble
0 = No Bubble
-1 = Small size Bearish Bubble
-2 = Medium size Bearish Bubble
-3 = Large size Bearish Bubble
Simple Grid Lines VisualizerAbout Grid Bots
A grid bot is a type of trading bot or algorithm that is designed to automatically execute trades within a predefined price range or grid. It is commonly used in markets that exhibit ranging or sideways movement, where prices tend to fluctuate within a specific range without a clear trend.
The grid bot strategy involves placing a series of buy and sell orders at regular intervals within the predefined price range or grid. The bot essentially creates a grid of orders, hence the name. When the price reaches one of these levels, the bot will execute the corresponding trade. For example, if the price reaches a predefined lower level, the bot will buy, and if it reaches a predefined upper level, it will sell.
The purpose of the grid bot strategy is to take advantage of the price oscillations within the range. As the price moves up and down, the bot aims to generate profits by buying at the lower end of the range and selling at the higher end. By repeatedly buying and selling at these predetermined levels, the bot attempts to capture gains from the price fluctuations.
About this Script
Simple Grid Lines Visualizer is designed to assist traders in visualizing and implementing automated price grids on their charts. With just a few inputs, this script generates gridlines based on your specified top price, bottom price, and the number of grids or profit per grid.
How it Works:
Specify Top and Bottom Prices: Start by setting the top and bottom prices that define the range within which the gridlines will be generated. These prices can be based on support and resistance levels, historical data, or any other factors you consider relevant to your analysis.
Determine Grid Parameters: Choose either the number of grids or profit per grid, depending on your preference and trading strategy. If you select the number of grids, the script will evenly distribute the gridlines within the specified price range. Alternatively, if you opt for profit per grid, the script will calculate the price increment required to achieve your desired profit level per grid.
Note that when choosing Profit per Grid , an approximation usually is performed, as all grid lines must be evenly distributed. To achieve that, the script computes the grid distance using the mean price between top and bottom, then computes how many of those complete distances may enter the entire range, and lastly, creates a grid with evenly distributed distances as close as possible to the previously computed.
Customize Styling and Display: Adjust the line color, line style, transparency, and other visual aspects to ensure clear visibility on your charts.
Analyze and Trade: Once the gridlines are plotted on your chart, carefully observe how the market interacts with them. The gridlines can act as reference points for potential support and resistance levels, as well as simple buy/sell orders for a trading bot.
Try to find gridlines that intersect prices as frequently as possible from one to another.
A grid with too many lines will make lots of potential trades, but the amount traded will be minimal (as the total amount invested is divided over the number of grids).
A grid with too few lines will make lots of profits with each trade, but the trades will be less likely to occur (depending on the top/bottom distance).
This tool aims to help visually which grid parameters seem to optimize this problem.
Future versions may include automatic profit computation.