Blockunity Regime Monitoring (BRM)Efficiently analyze market conditions and detect overheating zones.
Regime Monitoring (BRM) is here to help you analyze the behavior of financial markets. The oscillator allows you to observe when an asset’s trend is likely to reverse. The trend is also given by the indicator, as is the phase the market is in (trending or congested). The BRM also provides the state of the Choppiness Index, indicating whether or not the asset is about to enter a more volatile phase.
The Idea
The goal is to provide the community with a comprehensive tool for tracking market conditions, with a visual approach to identifying overheating zones.
How to Use
This tool consists of 3 main components:
An oscillator, which we describe in detail below.
Bar color to transcribe oscillator information directly onto the graph. To activate Bar Color, make sure the first option is checked in the settings. You must also uncheck "Borders" and "Wick" in your Chart Settings.
A panel that summarizes the status of various indicator information.
Elements
The Regime Monitoring oscillator
The oscillator provides several information points. First, it gives the market trend of the asset:
Green: Bullish trend.
Red: Bearish trend.
Blue: Contested trend.
It then indicates areas of overheating, where it is considered statistically probable that we will see a change in trend dynamics. These moments are shown in yellow.
This market trend is also indicated in the table.
If you see that the oscillator is above or below these limits, but not yellow, this is because we use a Choppiness Index to filter this information.
The "Enable Choppiness Index Filter" is enabled by default in the settings. So, if the Chop is discharged (under 38.2), then the oscillator's overheating state is ignored.
You can see the difference in the images below, the first with the filter and the other without:
Market Phase
We use a Vertical Horizontal Filter (VHF) to define the market phase the asset is in. This phase can have two values:
Trending: Assets evolve within a trend.
Congestion: The asset is in a moment of congestion.
Chop State
Visualize the Choppiness Index, indicating whether an asset is gearing up to enter a phase of increased volatility. It can be:
Charged: Chop is considered to indicate to be entering a stable phase.
Neutral: Chop is neutral and does not provide any specific information.
Discharged: Chop is considered to indicate a continuation of the trend.
In addition, with the "Show Choppiness Index" option, you can plot the Chop on the oscillator:
Other Settings
You can also modify the standard Regime Monitoring parameters (Lookback, Smoothing, Limits), display or hide certain components, and change all the colors.
How it Works
Regime Monitoring's main oscillator is established as follows:
We calculate the percentage of times the closing price was higher than the opening price. This is then divided by a lookback period, which in this case defaults to 20. This calculation gives a probability of the current regime.
M-oscillator
Fourier Smoothed Volume Zone Oscillator (FSVZO) [AlgoAlpha]Description
The Fourier Smoothed Volume Zone Oscillator (FSVZO) is an implementation of the Discrete Fourier Transform in a Volume Zone Oscillator. Its purpose is to smooth price data and reduce noise to provide a more clear and accurate indication of price movement. This indicator also includes additional EMA smoothing to accurately depict reversals.
Discrete Fourier Transform
The Discrete Fourier Transform (DFT) is a mathematical algorithm used to convert discrete time-domain data into its frequency-domain representation. By decomposing a signal into its constituent frequencies, it reveals the amplitude and phase information associated with each frequency component.
Volume Zone Oscillator
The Volume Zone Oscillator is an indicator that combines volume and price data to provide insights into market trends and momentum. It calculates the difference between the volume traded above and below a specified price level and represents it as a line plot on the chart. The Volume Zone Oscillator helps traders identify periods of high buying or selling pressure and can be used to confirm trends, spot divergences, and generate trading signals. By analyzing the relationship between volume and price, traders can gain a deeper understanding of market dynamics and make more informed trading decisions.
Features
This indicator incorporates Ehler's Universal Oscillator concept and presents a histogram to provide valuable insights into the market's noise levels. Ehler's Universal Oscillator represents the statistical model that characterizes random and unpredictable market behavior. By utilizing this concept, the histogram enhances traders' ability to identify periods of increased or decreased volatility in the market.
How to use it?
Green dots and lines represent bullish price movement, while red dots and lines indicate bearish price movement. These signals gain additional strength when considering our oversold and overbought zones. Traders and investors can leverage these signals to initiate long positions when green signals coincide with oversold conditions, and vice versa. By combining these signals in synergy with Ehler's Universal Oscillator, a more precise representation of market trends can be achieved. To optimize its effectiveness, it is advisable to integrate this indicator with complementary technical analysis tools and incorporate it into a comprehensive trading strategy. Traders are encouraged to explore diverse settings and timeframes to align the indicator with their individual trading preferences and adapt it to prevailing market conditions.
Utility
By combining the FSVZO indicator with Ehler's white noise histogram, users gain a comprehensive perspective on volume-related market conditions. It empowers traders and investors to evaluate the intensity of buying or selling pressure, detect potential trend reversals or continuations, and ultimately make more informed trading decisions. This information can serve as confirmation or validation for other technical indicators, enabling traders to identify potential market turning points and enhance their comprehension of market dynamics.
The indicator offers several valuable applications, including the detection of divergence patterns between volume and price, identification of accumulation or distribution phases, and assessment of overall market trend strength. It accommodates various trading styles, such as swing trading, trend following, or mean reversion strategies. By leveraging these capabilities, traders can expand their toolkit and make more informed trading decisions.
Originality
The originality of the script lies in the combination of the Fourier analysis, white noise calculations, and the Volume Zone Oscillator. It provides a unique perspective on market dynamics and can be used to identify potential trading opportunities based on overbought and oversold conditions as well as trend reversals. Special thanks to @QuantiLuxe for their assistance in the development of this indicator
Indicator Guru OscillatorIndicator Guru Oscillator
The "Indicator Guru Oscillator" is a custom trading indicator designed for technical analysis on financial charts. It combines elements of the Relative Strength Index with additional features to provide insights into potential overbought and oversold conditions.
1. ING FAST: This component calculates the Relative Strength Index based on a ING FAST-period lookback period (len) using a specified source (src), which is set to the closing price by default. The result is color-coded for better visualization:
A. Red when ING FAST is greater than or equal to 80 (indicating potential overbought conditions).
B. Dark red when ING FAST is less than or equal to 20 (indicating potential oversold conditions).
C. Light red for values in between.
2. ING MID: This component calculates the longer ING MID-period lookback, providing a medium-term perspective. Similar color-coding is applied based on overbought and oversold conditions.
3. ING SLOW: This component calculates the with an even longer ING SLOW-period lookback, offering a more extended-term view. Users have the flexibility to customize the color for this component.
4. Modified Plots
The plots for each RSI component are displayed with sparkline-style lines, making it easier to visualize the oscillator's movement. The color-coding helps traders quickly identify potential trading signals.
The "ING FAST" plot is color-coded based on overbought and oversold conditions.
The "ING MID" plot follows a similar color-coding scheme with different colors.
The "ING SLOW" plot allows users to choose a custom color.
5. Overbought and Oversold Levels
Horizontal lines are drawn at 50 (the mid line), 80 (overbought level), and 20 (oversold level) to provide reference points for traders.
6. Usage
This script can be used for identifying potential trend reversals, overbought, and oversold conditions in the market. Traders can customize the input parameters, such as lookback periods and color preferences, to align the indicator with their trading strategies.
Long And Short Zone
1. When the line closes above the ING Fast 80 (overbought level) zone and changes from light red color to dark red color, then there is a strong bullish zone.
2. Whenever ING Fast and ING Mid simultaneously cross above ING Slow and closing is above ING Slow then a big move occurs.
A. We can also see how having all three together resulted in a better move.
3. There is a Long zone when ING Fast reaches the 20 (oversold level) zone and the light red color changes to green with a darker red color. The last bearish and profit book signal comes when ING FAST is 80 (overbought level) and goes from light red to dark red and then when ING FAST comes to light red there is an area for bearish and profit booking Is.
A. Let's look at another example: As soon as ING Fast reaches the 20 (oversold levels) are the light red color changes to green with a darker red color. from bullish zone
B. Similarly whenever ING FAST is 80 (overbought level) and goes from light red to dark red and then when ING FAST comes to light red there is an area for bearish.
4. When the BB is squeezed and ING Fast, ING Mid, ING Slow are inside it, then a range bond market exists. Then there is No market movement
A. One More Ex.
RSI 11 IndicatorThis script explains how RSI can be used to catch market moves in trend, reversal or sideways market.
What is RSI indicator:-
RSI is a momentum oscillator which measures the speed and change of price movements. RSI moves up and down (oscillates) between ZERO and 100. Generally RSI above 70 is considered overbought and below 30 is considered oversold. Some traders may use a setting of 20 and 80 for oversold and overbought conditions respectively. However this may reduce the number of signals. You can also use RSI to identify divergences, strength, reversals, general trend etc.
Calculation:-
There are three basic components in the RSI - Avg Gain, Avg Loss & RS.
Avg Gain = Average of Upward Price Change
Avg Loss = Average of Downward Price Change
RS = (Avg Gain)/(Avg Loss)
RSI = 100 – (100 / (1 +RS ))
First Calculation:-
RSI calculation is based on default 14 periods.
Average gain and Average loss are simple 14 period averages.
Average Loss equals the sum of the losses divided by 14 for the first calculation.
Average Gain equals the sum of the Gains divided by 14 for the first calculation.
First Average Gain = Sum of Gains over the past 14 periods / 14.
First Average Loss = Sum of Losses over the past 14 periods / 14.
The formula uses a positive value for the average loss.
RS values are smoothed after the first calculation.
Second Calculation:-
Subsequent calculations multiply the prior value by 13, add the most recent value, and divide the total by 14.
Average Gain = / 14.
Average Loss = / 14.
if
Average Loss = 0, RSI = 100 (means there were no losses to measure).
Average Gain = 0, RSI = 0 (means there were no gains to measure).
Logic of this indicator:-
RSI is an oscillator that fluctuates between zero and 100 which makes it easy to use for many traders.
Its easy to identify extremes because RSI is range-bound.
But remember that RSI works best in range bound market and is less trustworthy in trending markets.
A new trader need to be cautious because during strong trends in the market/security, RSI may remain in overbought or oversold for extended periods.
Chart Timeframe:-
RSI indicator works well on all timeframes.
Timeframe depends on which strategy or settings are you using.
Generally a lower timeframe like 1 min, 3 min, 5 min, 15 min, 30 min, 1 Hr etc is used for intraday trades or short duration trades
and higher timeframes like 1 day, 1 week, 1 month are used for positional or long term trades.
Please Read the Idea "Mastering RSI with 11 Strategies" to understand this indicator better.
Indicator 1
Basis Strategy of Overbought and Oversold
Usually an asset with RSI reading of 70 or above indicates a bullish and an overbought situation.
overbought can be seen as trading at a higher price than it should.
traders may expect a price correction or trend reversal and sell the security.
but RSI indicator can stay in the overbought for a long time when the stock is in uptrend - This may trap an immature trader.
an Immature trader will enter a sell position when RSI become overbought (70), whereas a mature trader will enter sell position when RSI line crosses below the overbought line (70).
An asset with RSI reading of 30 or below indicates a bearish and an oversold condition.
oversold can be seen as trading at a lower price than it should.
traders may expect a price correction or trend reversal and buy the security.
but RSI indicator can stay in the oversold for a long time when the stock is in downtrend - This may trap an immature trader.
an Immature trader will enter a buy position when RSI become oversold (30), whereas a mature trader will enter buy position when RSI line crosses above the oversold line (30).
Center dotted Mid line is RSI 50.
Chart RSI is shown in yellow colour.
Red shaded area above the red horizontal line shows the stock or security has entered overbought condition. "R" signal in red shows a likely downside reversal, means it may be a likely Selling opportunity.
Green shaded area below the green horizontal line shows the stock or security has entered oversold condition. "R" signal in green shows a likely upside reversal, means it may be a likely Buying opportunity.
Note:-
so its better to wait for reversal signal.
traders may use 20 instead of 30 as oversold level and 80 instead of 70 as overbought level.
new traders may learn to use the indicator as per the prevailing trend to get better results.
false signals may be avoided by using bullish signals in bullish trend and bearish signals in bearish trend.
Indicator 2
RSI Strength Crossing 50
RSI crossing centreline 50 in the below chart showing strength and buy/sell signal.
Centre line is at RSI 50.
if RSI is above 50 its considered bullish trend. (increasing strength)
if RSI is below 50 its considered bearish trend. (decreasing strength)
RSI crossing centre line (50) upside may be a buy signal.
RSI crossing centre line (50) downside may be a sell signal.
"B" signal in green colour shows that RSI is crossing above Mid 50 horizontal line, which may be a likely Buy signal.
"S" signal in red colour shows that RSI is crossing below Mid 50 horizontal line, which may be a likely Sell signal.
Indicator 3
RSI 40 and RSI 60 Support and Resistance
RSI 40 acting as support in the below chart
In an uptrend RSI tends to remain in the 40 to 90 range with 40 as support (buying opportunity at support).
RSI 60 acting as resistance in the below chart
In a downtrend RSI tends to remain in 10 to 60 range with 60 as resistance (selling opportunity at resistance).
"40" signal in green colour shows that RSI is crossing above 40 horizontal line, which may be a likely Support in making and a Buy signal.
"60" signal in red colour shows that RSI is crossing below 60 horizontal line, which may be a likely Resistance in making and a Sell signal.
Note:-
These ranges may change depending on RSI settings and change in the market trend.
Indicator 4
RSI Divergence
Below chart shows a simple example of Bullish Divergence and Bearish Divergence.
An RSI divergence occurs when price moves in the opposite direction of the RSI.
A bullish divergence is when price is falling but RSI is rising. which means RSI making higher lows and price making lower lows (buy signal).
A bearish divergence is when price is rising but RSI is falling. which means RSI making lower high and price making higher highs (sell signal).
Divergences are more strong when appear in an overbought or oversold condition.
There may be many false signals during a strong uptrend or strong downtrend.
In a strong uptrend, RSI may show many false bearish divergences before finally reversing down.
same way in a strong downtrend, RSI may show many false bullish divergences before finally reversing up.
"Bull Div" signal along with divergence line in green colour shows Bullish Divergence, which may be a likely Buy signal.
"Bear Div" signal along with divergence line in red colour shows Bearish Divergence, which may be a likely Sell signal.
Indicator 5
Double Top & Double Bottom
Double Bottom = RSI goes below oversold (30). RSI comes back above 30. RSI falls back again towards 30 and again rise making a Double bottom. its a signal of buying and likely upside reversal.
Double Top = RSI goes above overbought (70). RSI comes back below 70. RSI rises back again towards 70 and again fall making a Double top. its a signal of selling and likely downside reversal.
Double Bottom is shown with Green Dashed line joining two low's of RSI indicating a likely Buy Signal.
Double Top is shown with Red Dashed line joining two High's of RSI indicating a likely Sell Signal.
Indicator 6
Trendline Support and Resistance
Below chart shows RSI Trendline Resistance and Support
RSI resistance trendline = Connect three or more points on the RSI line as it falls to draw a RSI downtrend line (RSI resistance trendline).
Everytime it takes resistance from a RSI downtrend line its a selling opportunity.
RSI support trendline = Connect three or more points on the RSI line as it rises to draw a RSI uptrend line (RSI support trendline).
Everytime it takes support on a RSI uptrend line its a buying opportunity.
RSI Resistance trendline shown in Red colour indicating a likely fall again after rejection from this Red trendline till the time RSI breaks above it to change the trend from Bearsih to Bullish.
RSI support trendline shown in Green colour indicating a likely Rise again after support from this Green trendline till the time RSI breaks below it to change the trend from Bullish to Bearish.
Indicator 7
Trendline Breakout and Breakdown
Below chart shows RSI Trendline Breakout and Breakdown
RSI resistance trendline Breakout = Connect three or more points on the RSI line as it falls to draw a RSI downtrend line (RSI resistance trendline).
Whenever it breakout above RSI resistance trendline its a buying opportunity.
RSI support trendline Breakdown = Connect three or more points on the RSI line as it rises to draw a RSI uptrend line (RSI support trendline).
Whenever it breakdown below RSI support trendline its a selling opportunity.
Note:-
Correlate both the RSI and the closing price to ensure proper breakout or breakdown.
Challenge is to correctly identify if a breakout or breakdown is sustainable or its a false signal.
Indicator 8
RSI Crossover same timeframe
RSI with two different RSI length crossing each other on same timeframe.
when lower RSI length crossing above higher RSI length its a buy signal.
when lower RSI length crossing below higher RSI length its a sell signal.
for example RSI with length 7 & length 14 on 15 Minutes timeframe.
Green Cross shows that Fast RSI is crossing above Slow RSI on the same timeframe with different RSI length Settings, which means it may be a likely Buy Signal.
Red Cross shows that Fast RSI is crossing below Slow RSI on the same timeframe with different RSI length Settings, which means it may be a likely Sell Signal.
Indicator 9
RSI Crossover Multi timeframe
RSI with same RSI length but on two different timeframes crossing each.
when lower timeframe RSI crossing above higher timeframe RSI its a buy signal.
when lower timeframe RSI crossing below higher timeframe RSI its a sell signal.
for example RSI with length 14 on 5 Minutes and 1 Hr timeframes.
Green Cross shows that Lower Timeframe RSI is crossing above Higher Timeframe RSI with same RSI length Settings, which means it may be a likely Buy Signal.
Red Cross shows that Lower Timeframe RSI is crossing below Higher Timeframe RSI with same RSI length Settings, which means it may be a likely Sell Signal.
Indicator 10
RSI EMA/WMA/SMA Crossover
when RSI crossing above EMA/WMA/SMA its a buy signal.
when RSI crossing below EMA/WMA/SMA its a sell signal.
Green Circle shows that RSI is crossing above EMA/WMA/SMA etc, which means it may be a likely Buy Signal.
Red Circle shows that RSI is crossing below EMA/WMA/SMA etc, which means it may be a likely Sell Signal.
Indicator 11
RSI with Bollinger bands
Bollinger bands and RSI complimenting each other and giving a Buy and Sell signal in below chart
if a security price reaches upper band of a Bollinger Band channel and also the RSI is above 70 (overbought), a trader can look for selling opportunities (reversal) (sell).
but in case price reaches upper band of a Bollinger Band channel but RSI is not above 70 (overbought), there may be chance that security remains in an uptrend, so a trader may wait before entering a sell position.
if a security price reaches lower band of a Bollinger Band channel and also the RSI is below 30 (oversold), a trader can look for buying opportunities (reversal) (buy).
but in case price reaches lower band of a Bollinger Band channel but RSI is not below 30 (oversold), there may be chance that security remains in an downtrend, so a trader may wait before entering a buy position.
so bollinger band with RSI can give a double confirmation on a reversal.
Buy Signal = If the RSI is below Green Horizontal line (Oversold zone) and also below Lower Bollinger Band it indicates that an upside reversal may come, which means that it may be a likely Buy Signal.
Sell Signal = If the RSI is above Red Horizontal line (Overbought zone) and also above Upper Bollinger Band it indicates that an Downside reversal may come, which means that it may be a likely Sell Signal.
Special Thanks to //© HoanGhetti for RSI Trendlines.
Limitations of the RSI:-
RSI works best in range bound market and is less trustworthy in trending markets.
So new traders may get trapped in an uptrend or a downtrend if they forget to see the overall long term trend of that security.
Traders should set stop loss and take profit levels as per risk reward ratio.
Note:
Don't confuse RSI and relative strength. RSI is changes in the price momentum of a security.
whereas relative strength compares the price performance of two or more securities.
Like other technical indicators, RSI also is not a holy grail. It can only assist you in building a good strategy. You can only succeed with proper position sizing, risk management and following correct trading Psychology (No overtrade, No greed, No revenge trade etc).
THIS INDICATOR OF RSI IS FOR EDUCATIONAL PURPOSE AND PAPER TRADING ONLY. YOU MAY PAPER TRADE TO GAIN CONFIDENCE AND BUILD FURTHER ON THESE. PLEASE CONSULT YOUR FINANCIAL ADVISOR BEFORE INVESTING. WE ARE NOT SEBI REGISTERED.
Hope you all like it
happy learning.
Market Forecast w/ Signals [QuantVue]The Market Forecast With Signals Indicator is an upgraded version of the popular ThinkorSwim platforms Market Forecast. This upgraded version utilizes stochastic oscillators, moving averages, and momentum calculations to find potential buying and selling opportunities.
Stochastic Oscillator
The indicator calculates three variations of the Fast Stochastic Oscillator for different time periods:
🔹Intermediate: Calculated over a medium-term period (default 31 bars).
🔹Momentum: Calculated over a short-term period (default 5 bars).
🔹Near Term: Calculated over a very short-term period (default 3 bars).
These calculations involve finding the highest and lowest values within their respective periods and comparing the current close to this range.
Moving Average Smoothing
The results of the Fast Stochastic Oscillator for the Intermediate and Near Term are then smoothed using a Simple Moving Average (SMA):
🔹Intermediate: 5-period SMA of the Intermediate Stochastic Oscillator.
🔹Near Term: 2-period SMA of the Near Term Stochastic Oscillator.
Momentum Indicator
A custom momentum calculation is performed, using the recent high and low prices over four periods.
Display
The indicator plots the smoothed Intermediate, Near Term, and custom Momentum calculations as separate lines on the chart.
Trading Signals
While the original indicator plots the lines mentioned above, the Market Forecast w/ Signals goes a step further by identifying key moments when nuanced signals fire. The built in alerts and visual aids make spotting these trading opportunities a breeze.
Clusters - Bullish and Bearish clusters are identified based on the convergence of all three lines (Intermediate, Near, and Momentum) above 80 (Bearish) or below 20 (Bullish).
The background color of the chart changes to indicate these clusters, aiding in quick identification of market extremes.
Trend Reversals - Marked with labels on the chart, this is based on the direction of the cluster (bullish or bearish) and the subsequent price movement crossing a threshold determined during the cluster formation.
Divergences - Divergences between the Near Term line and price highs/lows are detected using pivot points. These divergences are then plotted as lines on the chart, highlighting potential discrepancies between price action and momentum, which can signal reversals.
Indicator Features:
🔹Custom Colors
🔹Show/Hide Signals
🔹Alerts
Give this indicator a BOOST and COMMENT your thoughts!
We hope you enjoy.
Cheers!
Pullback and Throwback Candle [TrendX_]Pullback and Throwback candles can help traders determine the the potential reversal points
USAGE
The indicator identifies pullback and throwback in overbought and oversold zones by measuring the distance between the price and its relative strength index.
A Pullback is an expected rebound in a downtrend (painted in green area), while a Throwback is a bounceback from an uptrend (painted in red area).
The strategy is useful for valuing reversal points. Accordingly, it can also be helpful for traders to use alongside other Technical Analysis indicators.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions.
There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur.
Therefore, one should always exercise caution and judgment when making decisions based on past performance.
Index Top Holdings Advance DeclineThis indicator measures advance vs decline for the top 10 holdings of either SPX or NDX, or both together.
There's overlap within the top holdings for the two major indexes so by default SPX is only shown.
Adjustments to top holdings can be done at any time should they be updated before I adjust the script, also the threshold of when advancement or decline should be considered strong is defaulted to six holdings but adjust to preference.
The idea came out of a discord conversation and the results are compelling, and it's usage should be similar to the market internal ADD, which measures amount of stocks in broad market over or under previous session range.
If this indicator receives enough traction I'll look into creating a volume (VOLD), price (TICK) and perhaps some other versions - perhaps even one that combines it all together like my MIT indicator for market internals.
MACD-all in one_Pro[vn]👉 Hello traders.
Introducing the "MACD-All-in-One" indicator including functions:
• Automatically scan MACD-Histogram divergence
• Automatically scan MACD-Histogram divergence-missing right shoulder
• Automatically scan the Engulfing candlestick pattern when the MACD line crosses the Signal line
• Automatically create warnings when there are signals of Regular divergence, missing right shoulder divergence, Engulfing candlestick pattern
Explain:
💥1. Regular divergence
1.1 Bullish divergence
+ The price creates the next bottom lower than the previous bottom
+ The histogram of the next bottom is higher than the previous bottom and is located below the 0 axis (between the two histogram bottoms there must be a histogram located on the 0 axis for clear distinction)(Hình 1)👇👇
1.2 Bearish divergence
+ The price creates a higher peak than the previous peak
+ The histogram of the next bottom is lower than the previous bottom and is above the 0 axis (between the two histogram peaks there must be a histogram below the 0 axis for clear distinction)(Hình 2)👇👇
💥2. Divergence lacking right shoulder
2.1 Bullish divergence missing the right shoulder
+ The price creates the next bottom lower than the previous bottom
+ The histogram of the posterior bottom does not form and the histogram is still above the zero line (only the histogram of the previous bottom is below the zero line)
+ The meaning is that when the price creates a lower bottom but the buying force is already very strong, the histogram of the next bottom does not form and the price will increase(hình 3&4)👇👇
2.2 Bearish divergence missing the right shoulder
+ The price creates a higher peak than the previous peak
+ The histogram of the next peak does not form and the histogram is still below the zero line (only the histogram of the previous peak is on the zero line)
+ The meaning is that when the price creates a higher peak but the buying force has weakened, the histogram of the next bottom does not form and the price will go down.(hình 5 & 6)👇👇
💥3. Engulfing candlestick pattern
When the MACD and Signal lines intersect and there appears a pair of engulfing (completely) candlesticks, that candlestick will be marked as 'E⌃' in green (bullish engulfing) or 'E⌄' in red (Bearish engulfing)(hình 7 & 8)👇👇
💥4. Automatic alerts include 5 levels: Bull, Bear, Bullish Engulfing, Bearish Engulfing, bullish divergence missing the shoulder, bearish divergence missing the shoulder
//-------------------------Extra feature: Impulse System
This indicator also includes the “Impulse System”. The Impulse System is based on two indicators, a 13-day exponential moving average and the MACD-Histogram, and identifies inflection points where a trend speeds up or slows down. The moving average identifies the trend, while the MACD-Histogram measures momentum. This unique indicator combination is color coded into the price bars or macd histogram bars for easy reference.
Calculation:
Green Price Bar: (13-period EMA > previous 13-period EMA) and
(MACD-Histogram > previous period's MACD-Histogram)
Red Price Bar: (13-period EMA < previous 13-period EMA) and
(MACD-Histogram < previous period's MACD-Histogram)
Histogram bars are colored blue when conditions for a Red Histogram Bar or Green Histogram Bar are not met. The MACD-Histogram is based on MACD(12,26,9).
The Impulse System works more like a censorship system. Green histogram bars show that the bulls are in control of both trend and momentum as both the 13-day EMA and MACD-Histogram are rising (you don't have permission to sell). A red histogram bar indicates that the bears have taken control because the 13-day EMA and MACD Histogram are falling (you don't have permission to buy). A blue histogram bar indicates mixed technical signals, with neither buying nor selling pressure predominating (either both buying or selling are permitted).
-------------------------------//
💥5. Additional:
+Shows a pair of EMA12 vs EMA24.
+Shows Keltner Channels (using ATR) are volatility-based envelopes set above and below an exponential moving average.
//-------------------------------------------------------------------------------------------------------------//
✍️Conclude:
From this indicator there are 3 ways to trade:
• Method 1: Enter an order following the automatic Bull or Bear signal when the indicator appears
• Method 2: Enter an order following the automatic signal of the green vertical line (Long) or the red vertical line (Short) when the indicator appears
• Method 3: Enter orders according to the pair of engulfing candles 'E⌃' or 'E⌄' (because this is a combination of the method of engulfing candles and 2 MA lines intersecting each other)
• From this indicator, I created a "bot" that scans for "right shoulder missing divergence" signals for 40 trading pairs at the same time in real time. (hình 9)👇👇👇
//---------------------------------------------------------------------------------------------------------------
👉 Xin chào trader Việt Nam.
Giới thiệu chỉ báo "MACD-Tất cả trong một " bao gồm các chức năng:
• Tự động quét phân kì MACD-Histogram
• Tự động quét phân kì MACD-Histogram-thiếu vai phải
• Tự động quét mô hình nến nhấn chìm(Engulfing) khi đường MACD cắt đường Signal
• Tự động tạo cảnh báo khi có tín hiệu phân kì thường(Regular) , phân kì thiếu vai phải, mô hình nến Engulfing
Diễn giải:
💥1. Phân kì thường
1.1 Phân kì tăng
+ Giá tạo đáy sau thấp hơn đáy trước
+ Histogram của đáy sau cao hơn đáy trước và nằm bên dưới trục số 0(giữa hai đáy histogram phải có histogram nằm trên trục số 0 để phân biệt rõ ràng)(Hình 1 bên trên)☝️☝️
1.2 Phân kì giảm
+ Giá tạo đỉnh sau cao hơn đỉnh trước
+ Histogram của đáy sau thấp hơn đáy trước và nằm trên trên trục số 0(giữa hai đỉnh histogram phải có histogram nằm dưới trục số 0 để phân biệt rõ ràng)(Hình 2 bên trên)☝️☝️
💥2. Phân kì thiếu vai phải
2.1 Phân kì tăng thiếu vai phải
+ Giá tạo đáy sau thấp hơn đáy trước
+ Histogram của đáy sau không hình thành và histogram vẫn nằm bên trên trục số 0(chỉ có histogram của đáy trước dưới trục số 0)
+ Ý nghĩa rằng khi giá tạo đáy sau thấp hơn nhưng lực mua đã rất mạnh làm cho histogram đáy sau không hình thành và giá sẽ tăng lên(Hình 3 vs 4 bên trên)☝️☝️
2.2 Phân kì giảm thiếu vai phải
+ Giá tạo đỉnh sau cao hơn đỉnh trước
+ Histogram của đỉnh sau không hình thành và histogram vẫn nằm bên dưới trục số 0(chỉ có histogram của đỉnh trước trên trục số 0)
+ Ý nghĩa rằng khi giá tạo đỉnh sau cao hơn nhưng lực mua đã yếu dần làm cho histogram đáy sau không hình thành và giá sẽ đi xuống(Hình 5 vs 6 bên trên)☝️☝️
💥3.mô hình nến nhấn chìm
Khi hai đường MACD và Signal cắt nhau mà tại đó xuất hiện cặp nến nhấn chìm (hoàn toàn) thì trên thanh nến đó sẽ đánh dấu là 'E⌃' màu xanh (nhấn chìm tăng) hay 'E⌄' màu đỏ(nhấn chìm giảm)(Hình 7 vs 8 bên trên)☝️☝️
💥4. Cảnh báo tự động bao gồm có 5 mức : Bull, Bear, Bullish Engulfing, Bearish Engulfing, phân kì tăng thiếu vai, phân kì giảm thiếu vai
//--------------------Tính năng bổ sung: Hệ thống Impulse(xung)
Chỉ báo này cũng bao gồm “Hệ thống xung”. Hệ thống Impulse dựa trên hai chỉ báo, đường trung bình động hàm mũ EMA13 và Biểu đồ MACD, đồng thời xác định các điểm uốn trong đó xu hướng tăng tốc hoặc chậm lại. Đường trung bình động xác định xu hướng, trong khi biểu đồ MACD đo động lượng. Sự kết hợp chỉ báo độc đáo này được sơn thanh biểu đồ macd-histogram để dễ tham khảo.
Phép tính:
Thanh giá xanh lá : (EMA13 kỳ > EMA 13 kỳ trước đó) và (histogram sau > histogram trước)
Thanh giá màu đỏ: (EMA13 kỳ < EMA 13 kỳ trước đó) và (histogram sau < histogram trước)
Thanh biểu đồ có màu xanh lam khi các điều kiện cho histogram màu đỏ hoặc histogram màu xanh lá không được đáp ứng. Biểu đồ MACD dựa trên MACD(12,26,9).
Lưu ý: Hệ thống Impulse hoạt động giống một hệ thống kiểm duyệt hơn. Các thanh biểu đồ màu xanh lá cho thấy phe bò đang kiểm soát cả xu hướng và động lượng vì cả EMA13 và MACD-Histogram đều tăng (bạn không được phép bán). Thanh biểu đồ màu đỏ cho biết phe gấu đã nắm quyền kiểm soát vì biểu đồ EMA13 và MACD histogram đang giảm (bạn không được phép mua). Thanh biểu đồ màu xanh lam biểu thị các tín hiệu kỹ thuật hỗn hợp, không có áp lực mua và bán chiếm ưu thế (cho phép cả mua hoặc bán).
-------------------------//
💥5. Bổ sung:
+ Hiển thị một cặp EMA12 vs EMA24.
+ Hiển thị Kênh Keltner (sử dụng ATR) là các đường bao dựa trên mức độ biến động được đặt ở trên và dưới đường trung bình động hàm mũ.
//----------------------------------------------------------------------------------------------------------------//
✍️Kết luận:
Từ chỉ báo này có 3 cách giao dịch:
• Cách 1: Vào lệnh theo tín hiệu tự động Bull hoặc Bear khi chỉ báo hiện ra
• Cách 2: Vào lệnh theo tín hiệu tự động đường dọc xanh(Long) hoặc đường dọc đỏ(Short) khi chỉ báo hiện ra
• Cách 3: Vào lệnh theo cặp nến nhấn chìm 'E⌃' hay 'E⌄'(vì đây là tổng hợp từ phương pháp của nến nhấn chìm và 2 đường MA cắt nhau)
• Từ chỉ báo này tôi có lập nên "con bot" quét tín hiệu "phân kì thiếu vai phải " cùng lúc 40 cặp giao dịch theo thời gian thực. (Hình 9 bên trên)☝️☝️☝️
RSI MFI MultiTimeframe Oversold/OverboughtHello Traders,
This indicator is designed to easily visualize the overbought/oversold states of RSI and MFI across multiple timeframes.
The indicator is very straightforward.
The deeper the red, the closer it is to 0, and the deeper the green, the closer it is to 100. The intermediate values are rendered in a transparent gray to focus on the key regions.
However, I understand that traders may have an interest in knowing the most recent state of the oscillator, whether it was overbought or oversold.
For this reason, I have included the 'Gradient Color' option in the color settings.
By turning off this option, you can easily see at a glance which region the oscillator was in most recently.
(Gradient Color Option Off)
In addition, I know that many traders are interested in the actual RSI/MFI values across multiple timeframes.
Thus, I have displayed the RSI/MFI values for each timeframe on the far right.
Furthermore, although the name of this indicator is RSI MFI MultiTimeframe Oversold/Overbought, I have also included the Stochastic RSI as an option, as I find it personally useful.
Feel free to use it if you find it helpful.
TSI Market Timer + Volatility MeterThis is the TSI Market Timer. It is years in the making and it is comprised of four indicators in one. The stock (or source) is run through an indicator called the True Strength Indicator with settings(5,15) , then the TSI is run on both the Index(SPY) by default and what I call a Trigger line which is basically the TSI applied to the DXY (US Dollar Index).
Midline Volatility Indicator:
Lastly, we have a volatility indicator on the midline. The colors of the midline indicate levels of volatility. For the lowest volatility in the last 100 days, the dot turns dark blue. For the lowest volatility in 30 days, the dot turns aqua. For regular volatility, it remains orange. And last, for higher volatility of the last 100 days, it turns red. These are more or less arbitrary but they do come in handy.
Settings for Green/Red Shading:
Next on the indicator are the settings. You can toggle a color change between the stock/source and the index(spy). If the stock/source is greater than the index, it will color the area in between a green and if it is below the index, it will be red.
There is also a toggle for the stock/source and the trigger/DXY. This will also show green when the stock is above the trigger and red if it is below the trigger.
By turning on both of these, you get light green and dark green areas as well as red and darker red areas. The lighter green represent when the stock is above both the index and the trigger and conversely for the red areas.
Settings for vertical line crossings:
When the stock crosses the trigger/dxy line, it shows a green vertical line signal. When the stock crosses below the trigger/dxy, a red vertical line is shown.
You can turn these off by toggling them in the settings.
Stacked Condition:
Lastly, we have a "stacked condition" which shows up as a white triangle at the bottom when the condition of the stock being above the index and the trigger below the zero line.
New Highs:
If you see the stock line turn lime green, this indicates a new high was reached for the last 255 days/periods. This is like a new 52 week high signal.
Note:
This indicator is made mostly for the stock market. It may work ok during the week for crypto but using the trigger/dxy and index lines on the weekends doesn't work too well as they will be flat.
Also note that this indicator is not a recommendation to buy or sell any stock/instrument. It is only a study of market conditions. Any analysis should be followed up with volume analysis or other confirming indicators.
Advanced Divergence OscillatorIntroduction to ADO
The Advanced Divergence Oscillator (ADO) is a modern tool crafted for traders in various markets like stocks, forex, or cryptocurrencies. Imagine it as a smart gadget that helps you understand the ebb and flow of market prices. Unlike standard tools, ADO provides a more nuanced view, enabling you to grasp subtle changes in market trends.
Functionality of ADO
ADO operates by observing and comparing market price movements over different timeframes. Picture a racetrack where cars are moving at various speeds. Some are racing ahead, while others are gradually picking up pace. ADO keeps track of these varying 'speeds' in market prices.
By analyzing these movements, ADO generates a smooth, flowing line – the oscillator. This line moves in a wave-like pattern, offering hints about the market's momentum and possible future trends. When the line moves up, it suggests increasing prices, and when it moves down, it hints at falling prices.
How to Use ADO
Setup: You can easily integrate ADO into your trading platform, adjusting settings like length and color to suit your preference.
Reading the Oscillator: Watch for the oscillator's movement. Rising and falling patterns can indicate potential buying or selling opportunities.
Identifying Divergences: ADO excels in spotting divergences – situations where market prices and the oscillator don't align. For instance, if prices are climbing but the oscillator is falling, it might signal a potential price drop ahead.
Brief History of the Ultimate Oscillator
The concept of oscillators in trading isn’t new. The Ultimate Oscillator, developed by Larry Williams in the 1970s, is a foundational tool in this field. Williams' innovation was to combine short, intermediate, and long-term market trends into a single oscillator. This approach offered a more comprehensive market view, helping traders make informed decisions.
The ADO is a step further in this evolution. It takes the core principles of the Ultimate Oscillator and enhances them with proper smoothing and divergence detection methods. This evolution represents the continuous effort in the trading community to refine tools for better market analysis and decision-making.
Fisher Transform RevisitedFisher Transform developped by Ehlers is used mostly to detect peaks and troughs, which it does with little lag, but there are many false signals. Looking at its formula and construction, we can revisit it for the purpose of detecting trends and flat market.
How do we want to do that? There are 3 different actions:
Increase the default value from usual 9 or 10 to 30
Show the indicator as seen from upper time frame with synthetic rolling candles
Change the weights in first formula in order to saturate the input signal, push the trend data to the limits, so therefore leaving a good view when market is flat
As can be seen from the chart above, the revisited Fisher is above 2 for uptrend markets, below -2 for downtrending markets and in-between when the market is flat.
Notes
Weights for Fisher transform formula can be changed as parameters. Recommended valeus are 0.6 and 0.6 to saturate signal. You may come back to original formula by setting 0.33 and 0.66.
Parameter n allows view from upper time, a multiple of current time frame. n = 1 for current chart, n = 5 for 5 minutes view on the 1 min chart
Usage
Of course, it should be not be used in standalone mode. Indicator is for trend traders who can stay away when market is flat. Trend start when indicator goes above 2 but like all trade indicators, it will be late; it is therefore a good idea to change n back to 1 to get a timely entry, to be confirmed of course with other elements of technical analysis.
MACD-Histogram Divergence missing right shoulder_Pro[vn]👉Hello Traders!
Many traders have asked me about MACD's Histogram divergence, how to use it effectively, because the signal occurs a lot, I suddenly remembered the famous book by Dr. Alexander Elder's "Two Roads Diveged" has an introduction and definition of "MACD Histogram divergence lacking the right shoulder". It is an extremely strong signal of reversal divergence and it is difficult to determine, mainly experienced traders discover it.
- From that book, I wrote the code for the indicator "MACD Histogram divergence lacking the right shoulder" so that it automatically scans over 40 trading codes and when a signal appears I can identify it.
- For the MACD-Histogram signal to have bullish divergence (Regular) occur when:
+ The price creates the next bottom lower than the previous bottom
+ The histogram of the next bottom is higher than the previous bottom and is below the 0 axis (between the two histogram bottoms there must be a histogram on the 0 axis for clear distinction)👇👇👇(Hình 1)
- For MACD-Histogram signal to have bearish divergence (Regular) occur when:
+ The price creates a higher peak than the previous peak
+ The histogram of the next bottom is lower than the previous bottom and is on the 0 axis (between the two histogram peaks there must be a histogram below the 0 axis for clear distinction)👇👇👇(Hình 2)
💥 So to go from MACD-Histogram to regularization to right shoulder missing increase divergence is when:
+ The price of creating the following bottom is lower than the previous bottom
+ The histogram of the back bottom does not form and the histogram remains on the zero axis (only the histogram of the previous bottom is below the zero axis)
+ It means that when the price creates a lower bottom but the buying force is very strong, the posterior bottom histogram does not form and the price will increase 👇👇👇(Hình 3)
💥 So to go from MACD-Histogram to regularized divergence to right shoulder deficiency divergence is when:
+ The price creates the following peak higher than the previous peak
+ The histogram of the posterior vertex does not form and the histogram remains below the zero axis (only the histogram of the anterior vertex is above the zero axis)
+ It means that when the price creates a higher peak but the buying force has weakened, the posterior bottom histogram does not form and the price will go down 👇👇👇(Hình 4)
//-------------------------Extra feature: Impulse System
This indicator also includes the “Impulse System”. The Impulse System is based on two indicators, a 13-day exponential moving average and the MACD-Histogram, and identifies inflection points where a trend speeds up or slows down. The moving average identifies the trend, while the MACD-Histogram measures momentum. This unique indicator combination is color coded into the price bars or macd histogram bars for easy reference.
Calculation:
Green Price Bar: (13-period EMA > previous 13-period EMA) and
(MACD-Histogram > previous period's MACD-Histogram)
Red Price Bar: (13-period EMA < previous 13-period EMA) and
(MACD-Histogram < previous period's MACD-Histogram)
Histogram bars are colored blue when conditions for a Red Histogram Bar or Green Histogram Bar are not met. The MACD-Histogram is based on MACD(12,26,9).
The Impulse System works more like a censorship system. Green histogram bars show that the bulls are in control of both trend and momentum as both the 13-day EMA and MACD-Histogram are rising (you don't have permission to sell). A red histogram bar indicates that the bears have taken control because the 13-day EMA and MACD Histogram are falling (you don't have permission to buy). A blue histogram bar indicates mixed technical signals, with neither buying nor selling pressure predominating (either both buying or selling are permitted).
-------------------------------//
- When on the MACD indicator, the Histogram bars of the current price are the color, then the corresponding cell |0| shows that color, because I define |0| as the current candle.
|1| is the candle preceding the current candle |0|
|2| is the candle immediately preceding candle |1|
|3| is the candle immediately preceding candle |2|
from cells |3| |2| |1| |0| so that traders know that the cell colors green, blue, and red correspond to the colors of the histogram bar and when there is a signal to enter a Long order. '🅻', Short '🆂' will display on those cells.
- When the Bot identifies a divergence lacking the right shoulder, the "Result" cell will be displayed corresponding to "Long" - bullish divergence or "Short" - bearish divergence.👇👇👇(Hình 5)
- When the trader hovers over the "Long" or "Short" cell, a tooltip will be displayed indicating the order entry time, order entry price, stoploss point(Stl), stoploss percentage(%Stl), current price (C.price), previous peak and low Histogram counts (Hist +, Hist -) and the number of Histogram bars when entering the order. From there, traders can filter out the best signals to enter orders.👇👇👇(Hình 6)
- When the entry point is in the same trend as the price with a given profit percentage, it will display a profit, and when the above two MACD and Signal lines intersect, it will notify the Trader to take profit '✅', otherwise when entering Orders that go against the price trend will be reported to exit the order early '❌' 👇👇👇(Hình 7)
- When the MACD and Signal lines intersect and there appears a pair of engulfing candles (completely), the box will be marked as 'E⌃' (bullish engulfing) or 'E⌄' (bearish engulfing) plus add % of the engulfing candle body 👇👇👇 (Hình 8)
- There are 6 smart warning functions to find the right target including: 'Long', 'Short', 'Long-Short', 'Take Profit', 'Stoploss', 'All' . Where 'All' includes all 5 preceding warnings
--------------------------------------------------------------------------------------------------------------
✍️ Conclude:
From this indicator there are 2 ways to trade:
+ Method 1: Enter an order following the automatic Long or Short signal when the indicator appears
+ Method 2: Enter orders according to the pair of engulfing candles 'E⌃' or 'E⌄' (because this is a combination of the method of engulfing candles and 2 MA lines intersecting each other)
--------------------------------------------------------------------------------------------------------
Vietnamese
👉 Xin chào các Trader Việt Nam
Rất nhiều nhà giao dịch có hỏi tôi về phân kì Histogram của MACD làm sao để sử dụng hiệu quả, vì tín hiệu xảy ra rất nhiều, tôi chợt nhớ đến cuốn sách nổi tiếng của tiến sĩ Dr. Alexander Elder là " Two Roads Diveged " có giới thiệu và cách xác định về "phân kì MACD Histogram thiếu vai phải". Nó là tín hiệu cực mạnh về phân kì đảo chiều và rất khó để xác định, chủ yếu trader có kinh nghiệm mới phát hiện ra nó.
- Từ sách đó tôi có viết codes về chỉ báo "phân kì MACD Histogram thiếu vai phải" để nó tự động quét trên 40 mã giao dịch và khi có tín hiệu xuất hiện tôi có thể xác định được nó.
- Để tín hiệu MACD-Histogram phân kì tăng (Regular) xảy ra khi:
+ Giá tạo đáy sau thấp hơn đáy trước
+ Histogram của đáy sau cao hơn đáy trước và nằm dưới trục số 0(giữa hai đáy histogram phải có histogram nằm trên trục số 0 để phân biệt rõ ràng) (Hình 1 bên trên)☝️☝️☝️
- Để tín hiệu MACD-Histogram phân kì giảm (Regular) xảy ra khi:
+ Giá tạo đỉnh sau cao hơn đỉnh trước
+ Histogram của đáy sau thấp hơn đáy trước và nằm trên trục số 0(giữa hai đỉnh histogram phải có histogram nằm dưới trục số 0 để phân biệt rõ ràng) (Hình 2 bên trên)☝️☝️☝️
💥 Vậy để từ MACD-Histogram phân kì tăng (pk thường) trở thành phân kì tăng thiếu vai phải là khi :
+ Giá tạo đáy sau thấp hơn đáy trước
+ Histogram của đáy sau không hình thành và histogram vẫn nằm trên trục số 0(chỉ có histogram của đáy trước dưới trục số 0)
+ Ý nghĩa rằng khi giá tạo đáy sau thấp hơn nhưng lực mua đã rất mạnh làm cho histogram đáy sau không hình thành và giá sẽ tăng lên (Hình 3 bên trên) ☝️☝️☝️
💥 Vậy để từ MACD-Histogram phân kì giảm (regular) trở thành phân kì giảm thiếu vai phải là khi :
+ Giá tạo đỉnh sau cao hơn đỉnh trước
+ Histogram của đỉnh sau không hình thành và histogram vẫn nằm dưới trục số 0(chỉ có histogram của đỉnh trước trên trục số 0)
+ Ý nghĩa rằng khi giá tạo đỉnh sau cao hơn nhưng lực mua đã yếu dần làm cho histogram đáy sau không hình thành và giá sẽ đi xuống (Hình 4 bên trên) ☝️☝️☝️
//--------------------Tính năng bổ sung: Hệ thống Impulse(xung)
Chỉ báo này cũng bao gồm “Hệ thống xung”. Hệ thống Impulse dựa trên hai chỉ báo, đường trung bình động hàm mũ EMA13 và Biểu đồ MACD, đồng thời xác định các điểm uốn trong đó xu hướng tăng tốc hoặc chậm lại. Đường trung bình động xác định xu hướng, trong khi biểu đồ MACD đo động lượng. Sự kết hợp chỉ báo độc đáo này được sơn thanh biểu đồ macd-histogram để dễ tham khảo.
Phép tính:
Thanh giá xanh lá : (EMA13 kỳ > EMA 13 kỳ trước đó) và (histogram sau > histogram trước)
Thanh giá màu đỏ: (EMA13 kỳ < EMA 13 kỳ trước đó) và (histogram sau < histogram trước)
Thanh biểu đồ có màu xanh lam khi các điều kiện cho histogram màu đỏ hoặc histogram màu xanh lá không được đáp ứng. Biểu đồ MACD dựa trên MACD(12,26,9).
Lưu ý: Hệ thống Impulse hoạt động giống một hệ thống kiểm duyệt hơn. Các thanh biểu đồ màu xanh lá cho thấy phe bò đang kiểm soát cả xu hướng và động lượng vì cả EMA13 và MACD-Histogram đều tăng (bạn không được phép bán). Thanh biểu đồ màu đỏ cho biết phe gấu đã nắm quyền kiểm soát vì biểu đồ EMA13 và MACD histogram đang giảm (bạn không được phép mua). Thanh biểu đồ màu xanh lam biểu thị các tín hiệu kỹ thuật hỗn hợp, không có áp lực mua và bán chiếm ưu thế (cho phép cả mua hoặc bán).
-------------------------//
- Khi trên chỉ báo MACD những thanh Histogram của giá hiện tại là màu gì thì tại ô(cell) |0| tương ứng thể hiện màu đó, bởi vì tôi định nghĩa |0| là cây nến hiên tại.
|1| là nến đứng trước liền kề nến hiện tại |0|
|2| là nến đứng trước liền kề nến |1|
|3| là nến đứng trước liền kề nến |2|
từ những ô |3| |2| |1| |0| để trader biết rằng màu ô(cell) xanh lá , xanh lam, đỏ tương ứng với những màu của thanh histogram và khi có tín hiệu vào lệnh Long '🅻', Short '🆂' sẽ hiển thị trên những ô đó.
- Khi Bot xác định được phân kì thiếu vai phải thì tại ô(cell) "Result" sẽ hiển thị tương ứng với "Long"- phân kì tăng giá hoặc "Short"- phân kì giảm giá (Hình 5 bên trên) ☝️☝️☝️
- Khi trader di chuột vào tại ô(cell) "Long", hoặc "Short" thì tại đó hiển thị tooltip cho biết thời gian vào lệnh, giá vào lệnh , điểm stoploss(Stl), phần trăm stoploss(%Stl),giá hiện tại(C.price), số đếm Histogram đỉnh đáy trước(Hist +, Hist -) và số thanh Histogram khi vào lệnh.Từ đó trader có thể lọc ra được những tín hiệu đẹp nhất để vào lệnh (Hình 6 bên trên) ☝️☝️☝️
- Khi điểm vào lệnh cùng xu hướng với giá mà đã cho % lời thì nó sẽ hiển thị được lợi nhuận, và đến khi hai đường MACD và Signal trên cắt nhau thì sẽ báo Trader nên chốt lời '✅', ngược lại khi vào lệnh ngược với xu hướng giá thì sẽ báo thoát lệnh sớm '❌' (Hình 7 bên trên) ☝️☝️☝️
- Khi hai đường MACD và Signal cắt nhau mà tại đó xuất hiện cặp nến nhấn chìm (hoàn toàn) thì trên ô đó sẽ đánh dấu là 'E⌃' (nhấn chìm tăng) hay 'E⌄'(nhấn chìm giảm) cộng thêm % của thân nến nhấn chìm (Hình 8 bên trên) ☝️☝️☝️
- Có 6 chức năng cảnh báo thông minh tìm đúng đối tượng bao gồm:'Long', 'Short', 'Long-Short', 'Take Profit', 'Stoploss', 'All'
trong đó 'All' là bao gồm toàn bộ 5 cảnh báo đứng trước đó
---------------------------------------------------------------------------------------------------------------------
✍️ Kết luận:
Từ chỉ báo này có 2 cách giao dịch:
+ cách 1: Vào lệnh theo tín hiệu tự động Long hoặc Short khi chỉ báo đưa ra
+ cách 2: Vào lệnh theo cặp nến nhấn chìm 'E⌃' hay 'E⌄'(vì đây là tổng hợp từ phương pháp của nến nhấn chìm và 2 đường MA cắt nhau)
SVZO [Orderflowing]SVZO | Smoothed Volume Zone Oscillator | Volume Analysis | Customizable Smoothing (+)
Built using Pine Script V5.
Introduction
The Smoothed Volume Zone Oscillator / SVZO indicator, is a smoothed edition of the classic Volume Zone Oscillator concept by Walid Khalil and David Steckler.
This tool is specifically designed for traders focusing on volume-based analysis, offering a slick perspective on volume, momentum and market strength with user input based smoothing capability.
Innovation and Inspiration
The SVZO indicator is a creative viewpoint of the original VZO, introducing smoothing methods for both the SVZO and VZOMA and allowing flexible input options.
This development provides a more detailed and accurate analysis of volume fluctuations relative to price movements.
It's a response to the needs of traders who demand flexible volume-based market analysis tools.
Core Features
SVZO Line: This advanced version of the VZO employs contemporary smoothing techniques for a more accurate analysis of volume changes against price trends.
Customizable Smoothed SVZO: Choose from EMA, HMA, SMA, or no smoothing to adjust the SVZO line's sensitivity and clarity to match trading needs.
Dynamic Moving Average Line: Features an optional MA line with customizable smoothing, providing a benchmark for volume trend and assisting in identifying market shifts.
Signals: Visual cues in the form of dots signal confirmed crossover points, aiding traders in making informed decisions by highlighting key market events.
Period Setting: Tailor the calculation period for both the SVZO and MA line to suit diverse trading strategies.
Input Parameters
SVZO Smoothing Options: Select from EMA, HMA, SMA, or no smoothing to control the SVZO line's responsiveness.
SVZO and MA Line Periods: Configure the calculation periods for the SVZO and MA lines to align with your trading approach.
MA Line Smoothing Options: Opt from EMA, HMA, SMA, or no smoothing for the MA line.
Example of HMA SVZO (Default Values):
Example of HMA SVZO & VZOMA (Default Values):
Example of SMA SVZO & VZOMA (Smooth Length 2):
Usage and Applications
Volume-Based Market Analysis: The SVZO offers a sleek approach to analyzing market volume.
Decision-Making Visual Cues: Its visual signals and dynamic MA line are crucial for spotting potential entry and exit points, as well as anticipating market turns.
Smoother View of Market Conditions: With its customizable settings, the SVZO is versatile across various market conditions and trading styles, from rapid scalping to extended trend following.
The Value
The SVZO indicator is a tool that delivers substantial value through its unique approach to volume analysis and adaptable settings.
Its capacity to provide a view into volume momentum makes it a great volume-based component of any trader's arsenal, justifying its status as a closed-source product.
Conclusion
The SVZO indicator stands out as a slick tool, (based on the concepts of Khalil & Steckler) for volume-based market analysis, with good features and superior customization.
Its unique approach to volume analysis and flexible settings makes it an essential volume-based instrument for traders.
However, it's important to integrate the SVZO indicator into a broader trading strategy and not solely depend on its signals for trading decisions.
Multi-data oscillatorThe multi-data oscillator is a tool created to help traders visualize clearly how an oscillator works and moves considering different input parameters.
In this tool, you can choose to visualize the script as the RSI, the CCI, the LOC indicator, a custom-created formula that simply shows the location of the data considering X past values, or the average of all of these three indicators.
In the settings, you can choose both the length of the indicator and the smoothing factor.
Additionally, the indicator has a gradient color that changes considering the deviation and the variance of the different lines used to calculate the average line, displayed with more thickness.
Normalized Volume Zone [Orderflowing]Normalized Volume Zone | Normalized VZO | Volume Analysis | Normalization (+) | Customizable (+)
Built using Pine Script V5.
Introduction
The Normalized Volume Zone is an indicator rooted in the classic VZO concept, this indicator takes a step further by normalizing the volume data.
Ideal for traders who rely heavily on volume data and seek a normalized dataset to interpret volume trends and signals.
Inspiration and Innovation
The tool builds upon the foundational concepts of the Volume Zone Oscillator (VZO), introduced by Walid Khalil and David Steckler.
This indicator enhances the traditional VZO by introducing advanced normalization calculations, offering traders a new approach to volume-based market analysis.
Core Features
Calculation Sources: Choose from HLC3, OHLC4, close, or open for VZO calculations.
Customizable Periods: Set your preferred periods for VZO calculation, MA length, and percentile lookback, the indicator bends to your trading style.
Advanced Smoothing Options: Select from a range of smoothing methods like HMA, Fourier, SMA, EMA, WMA, DEMA, and TEMA for the VZO line.
Normalization Techniques: Apply normalization methods such as Percentile, Min-Max, Z-Score, or Log to the VZO data.*
Visual Enhancements: Color-coded VZO and MA lines, along with optional dots for significant changes, provide clear visual cues for easier interpretation.
Multi-Timeframe: Can be used on different timeframes for calculation.
*Some of the normalization methods require that you change the length of smoothing.
Example of Multi-Timeframe (4H Calculation on 30M Chart):
Example of HMA Smoothing & Z-Score Normalization:
Functionality
Normalization: The indicator normalizes the smoothed VZO data, making it more consistent and comparable across different trading scenarios.
Visual: The color changes in the VZO and MA lines, along with the optional dots, offer dynamic visual feedback on market conditions.
Usage and Applications
Volume Trend Analysis: The normalized VZO provides a good picture of volume trends, helping traders identify potential reversals or continuation patterns.
Comparative Analysis: Normalization allows for more meaningful comparisons of volume data across different instruments or time frames.
Risk Management: Use the indicator to filter instrument strength and volatility.
Conclusion
The Normalized Volume Zone indicator stands as a great indicator in volume-based trading analysis.
By normalizing the data, it offers traders a custom view of the volume oscillation.
This indicator is particularly valuable for those who prioritize volume in their analysis, providing a good view of market strength and momentum.
It is important to remember that while this indicator offers volume analysis, it is not recommended to only use this for trading decisions.
LuxAlgo - Backtester (OSC)The OSC Backtester is an innovative strategy script that allows users to create a wide variety of strategies using various unique oscillators.
By utilizing our 'Step' and 'Match' algorithms, users can create custom and complex strategy entries from each of the supported oscillators and included conditions, as well as any external sources, allowing users to create entries from a sequence of conditions and/or multiple matching conditions.
We included a complete alert system that will send a notification for each action taken by the strategy and we also allow users to set custom messages for each action taken by a strategy.
🔶 Features
🔹 Step & Match Algorithm
More complex entry rules can be created by using multiple conditions together, this is done thanks to the Step dropdown setting on the right of each condition.
The Step setting is directly related to the Step & Match algorithm and works in two ways:
When two or more conditions have the same step number, both conditions are evaluated. Used to test matching conditions.
When two or more conditions have different step numbers, each conditions will be evaluated in order, testing for the first step and switching to the next step once the previous one is true. When the final step is true the strategy will open a market order. Used to create sequence of conditions.
This operation is complementary, as you can create a sequence of conditions with one step consisting of two or more matching conditions as long as they have the same step number.
🔹 Fully Customizable Entries From Various Oscillators And Conditions
We allow the users to set entries using our unique HyperWave, Smart Money Flow, and their derived conditions as entries.
The Hyper Wave is a normalized adaptive oscillator aiming to reflect price trends without returning a high amount of noise.
The Smart Money Flow aims to detect trends based on market activity, by doing a comparative analysis between current volume and historical volume. A Smart Money Flow above 50 suggest market participants are bullish, else bearish. Derived from this oscillator we have Overflow indications, this indicator detects when market is overbought or oversold based on participants activity.
Other entries include proprietary reversal signals, real-time divergence detection, oscillator confluence (indicating how aligned each oscillator is), as well as entries using external sources.
🔹 Complete Alert System
Users can get alerted for any action executed by a strategy, from opening positions to closing them.
The message field in the Alert Messages setting section allows for the strategy to send a custom alert message depending on the action taken by the strategy, if no messages are set the strategy will send default messages.
🔶 Usage
Users can create a wide variety of strategies from this script, whether they are trend-following or contrarian traders.
Let's see a contrarian (revesal-based) strategy example using the following entry conditions:
Long: Hyperwave bullish divergence and oversold Hyperwave (lower than 20).
Short: Hyperwave bearish divergence and overbought Hyperwave (greater than 20).
We can also introduce take-profit and stop-loss exit conditions based on external indicators, allowing more control over exits in our strategy. For example:
Long: Hyperwave crossing over 50 while money flow is bearish.
Short: Hyperwave crossing under 50 while money flow is bullish.
Exit Long on a profit (long exit tp): Hyperwave crossing 80.
Exit Short on a profit (short exit tp): Hyperwave crossing 20.
While this strategy script can be used as a standalone, we recommend using other indicators creatively to assist with entries and exits as well as TP/SLs.
Our Step & Match algorithm can magnify interoperability, allowing for way more complete strategies through complex conditions, let's demonstrate this using the following entries:
Long: Any bullish reversal occurring after the price crosses over the lowest upper reversal zone of the Signals & Overlays™.
Short: Any bearish reversal occurring after the price crosses under the highest lower reversal zone of the Signals & Overlays™.
Long TP/SL: 5 ATR's away from the entry price.
Short TP/SL: 5 ATR's away from the entry price.
🔶 Strategy Properties (Important)
This script backtest is done on daily EURGBP, using the following backtesting properties:
Balance (default): 10 000 (default base currency)
Order Size: 10% of the equity
Comission: 3.4 pips (average spread for EURGBP)
Slippage: 3 tick
Stop Loss: 0.02 points away from entry price
We use these properties to ensure a realistic preview of the backtesting system, do note that default properties can be different for various reasons described below:
Order Size: 1 contract by default, this is to allow the strategy to run properly on most instruments such as futures.
Comission: Comission can vary depending on the market and instrument, there is no default value that might return realistic results.
We strongly recommend all users to ensure they adjust the Properties within the script settings to be in line with their accounts & trading platforms of choice to ensure results from the strategies built are realistic.
🔶 How To Access
You can see the Author's Instructions below to learn how to get access.
Machine Learning: Optimal Length [YinYangAlgorithms]This Indicator aims to solve an issue that most others face; static lengths. This Indicator will scan lengths from the Min to Max setting (1 - 400 by default) to calculate which is the most Optimal Length in the current market condition. Almost every Indicator uses a length in some part of their calculation, and this length is usually adjustable via the Settings; however it is generally a static fixed length. Static non changing lengths may not always produce optimal results. As market conditions change generally the optimal length will too. For this reason we have created this indicator.
This Indicator will create a Neutral (Min - Max Length), Fast (Min - Mid Length ((Max - Min) / 2)) and Slow (Mid Length ((Max - Min) / 2) - Max Length). This allows you to understand which the Optimal Fast, Slow and Neutral lengths are within the given Mix and Max length settings.
This Indicator then plots these Optimal Lengths as an Oscillator which can then be used within ANOTHER Indicator as a Source within its Settings. Stand alone this Indicator may not prove all that useful, however when its Lengths are inputted into another Indicator it may prove very useful. This allows other Indicators to use the Optimal Length within its calculations from the Settings rather than relying on simply a fixed length. Unfortunately this results in users needing to manually plug the Optimal Length plots into the second Indicator; but it also allows for endless possibilities with applying Machine Learning Optimal Lengths within both Traditional and Non-Traditional Indicators and may give other Pine Coders an easy and effective way to add Machine Learning auto adjustable lengths within their already created Indicators.
The beautiful part about this Indicator is that aside from inputting the Optimal Length Plot into another Indicator, there is no manual updating needed. When the Optimal Length changes, the change will automatically reflect in the other Indicator without the need for you to manually adjust its length. This may be very useful with both time preservation, as well as if there is an automated strategy based upon said Indicator that now won’t need manual intervention.
Tutorial:
By default this is what the Machine Learning: Optimal Length Indicator looks like. It is simply a way of both Displaying and Plotting our current Optimal Length so that we may then use it as a source within ANOTHER Indicator. This will allow the automation of an Optimal Length to be updated, rather than needing any manual input from yourself (aside from set up).
For instance if you set the start length to 1 and the end length to 400 (default settings), it will scan to find the optimal Length setting between 1 and 400. This features 3 types of lengths:
Fast (Green Line): 1-199 (from start length to half way of total)
Slow (Red Line): 200 - 400 (mid way to end length)
Neutral (Blue Line): 1 - 400 (start to end length)
By breaking down the Optimal Length detection into these 3 different types, we can see how the Optimal Length compares and changes based on the lengths allotted to them and how performance changes.
For instance, you may notice that both the Fast and Slow Optimal Length didn’t change much in the example above; however the Neutral Optimal Length changed quite a bit. This is due to the fact that the Neutral is inclusive of all lengths available and may be considered the more accurate due to that. However, this doesn’t mean the Fast and Slow lengths aren’t important and should be used. They may be useful for seeing how something fairs in a Fast and Slow standpoint.
If you change your TimeFrame from 15 minute to 1 Day, you’ll notice that the Optimal Lengths gravitate towards their upper bounds:
199 is max for Fast, it’s at 195
400 is max for Slow, its at 393
400 is max for Neutral, its at 399
The Optimal Length may move up to its upper bounds on Higher Time Frames because there is a lot of price action and long term data being displayed. This may lead to higher lengths performing better in a profitability standpoint since its data is based on so far back and such drastic price movements.
Below we’re going to go through a few examples, including the code so you may reproduce the example and have an understanding of how versatile Inputting an Optimal Length as a source may be within Traditional Indicators.
Adding the Machine Learning: Optimal Length to another Indicator:
You may add the Optimal Length to another Indicator as shown in the example above. In the example we are adding the ‘Machine Learning: Optimal Length - Neutral’ to our Neutral Length within the Settings. The external Indicator needs to have the ability to input the Optimal Length as a Source, this way it can automatically change within the external Indicator when the Optimal Length Indicator changes its Optimal Length.
Please note you may get an error within an external Indicator that accepts the Length as a Source if you don’t select the Machine Learning: Optimal Length. For instance, if you use ‘Close’ within BTC/USDT the length used would be ~36,000. This length is too long and will throw an error.
For this reason, we will ensure the Max Length that may be used is 1000.
Please note, on lower Time Frames you may need to adjust the Max Length. For instance if 20k bar data is used, the Max Length ‘may’ fail to load when going by default Min: 1 and Max: 400. Generally with most pairs it will load if your TradingView subscription is Premium or greater; however if it is less there is a chance it may fail. If it fails for you too often please lower the Max Length Amount; or send us a message we can look into a fix for this.
*** If it fails to load, please try removing the external Indicator and re-adding it and adding the Lengths back as a Source within the Settings. Sometimes it fails, but re-adding may fix it. If it keeps failing afterwards, reduce the Max Length Amount as mentioned above. ***
Simple Moving Average:
In this example above have the Fast, Slow and Neutral Optimal Length formatted as a Slow Moving Average. The first example is on the 15 minute Time Frame and the second is on the 1 Day Time Frame, demonstrating how the length changes based on the Time Frame and the effects it may have.
Here is the code for the example Indicator shown above. This example shows how you may use the Optimal Length as a Source and then use that Optimal Length and plot it as a Simple Moving Average:
//@version=5
indicator("Optimal Length - Backtesting - MA", overlay=true, max_bars_back=5000)
outputType = input.string("All", "Output Type", options= )
lengthSource = input.source(close, "Neutral Length")
lengthSource_fast = input.source(close, "Fast Length")
lengthSource_slow = input.source(close, "Slow Length")
showNeutral = outputType == "Neutral" or outputType == "Fast + Neutral" or outputType == "Slow + Neutral" or outputType == "All"
showFast = outputType == "Fast" or outputType == "Fast + Neutral" or outputType == "Fast + Slow" or outputType == "All"
showSlow = outputType == "Slow" or outputType == "Slow + Neutral" or outputType == "Fast + Slow" or outputType == "All"
//Neutral
optimalLength = math.min(math.max(math.round(lengthSource), 1), 1000)
optimalMA = ta.sma(close, optimalLength)
//Fast
optimalLength_fast = math.min(math.max(math.round(lengthSource_fast), 1), 1000)
optimalMA_fast = ta.sma(close, optimalLength_fast)
//Slow
optimalLength_slow = math.min(math.max(math.round(lengthSource_slow), 1), 1000)
optimalMA_slow = ta.sma(close, optimalLength_slow)
plot(showNeutral ? optimalMA : na, color=color.blue)
plot(showFast ? optimalMA_fast : na, color=color.green)
plot(showSlow ? optimalMA_slow : na, color=color.red)
Bollinger Bands:
In the two examples above for Bollinger Bands we have first the 15 Minute Time Frame and then the 1 Day Time Frame. As described above in ‘Adding the Machine Learning: Optimal Length to another Indicator’ sometimes it may fail to load, for this reason in the 15 Minute it was reduced to a max of 300 Length.
Bollinger Bands are a way to see a Simple Moving Average (SMA) that then uses Standard Deviation to identify how much deviation has occurred. This Deviation is than Added and Subtracted from the SMA to create the Bollinger Bands which help Identify possible movement zones that are ‘within range’. This may mean that the price may face Support / Resistance when it reaches the Outer / Inner bounds of the Bollinger Bands. Likewise, it may mean the Price is ‘Overbought’ when outside and above or ‘Underbought’ when outside and below the Bollinger Bands.
By applying All 3 different types of Optimal Lengths towards a Traditional Bollinger Band calculation we may hope to see different ranges of Bollinger Bands and how different lookback lengths may imply possible movement ranges on both a Short Term, Long Term and Neutral perspective. By seeing these possible ranges you may have the ability to identify more levels of Support and Resistance over different lengths and Trading Styles.
Below is the code for the Bollinger Bands example above:
//@version=5
indicator("Optimal Length - Backtesting - Bollinger Bands", overlay=true, max_bars_back=5000)
outputType = input.string("All", "Output Type", options= )
lengthSource = input.source(close, "Neutral Length")
lengthSource_fast = input.source(close, "Fast Length")
lengthSource_slow = input.source(close, "Slow Length")
showNeutral = outputType == "Neutral" or outputType == "Fast + Neutral" or outputType == "Slow + Neutral" or outputType == "All"
showFast = outputType == "Fast" or outputType == "Fast + Neutral" or outputType == "Fast + Slow" or outputType == "All"
showSlow = outputType == "Slow" or outputType == "Slow + Neutral" or outputType == "Fast + Slow" or outputType == "All"
mult = 2.0
src = close
neutralColor = color.blue
slowColor = color.red
fastColor = color.green
//Neutral
optimalLength = math.min(math.max(math.round(lengthSource), 1), 1000)
optimalMA = ta.sma(close, optimalLength)
//Fast
optimalLength_fast = math.min(math.max(math.round(lengthSource_fast), 1), 1000)
optimalMA_fast = ta.sma(close, optimalLength_fast)
//Slow
optimalLength_slow = math.min(math.max(math.round(lengthSource_slow), 1), 1000)
optimalMA_slow = ta.sma(close, optimalLength_slow)
//Neutral Bollinger Bands
dev = mult * ta.stdev(src, math.round(optimalLength))
upper = optimalMA + dev
lower = optimalMA - dev
plot(showNeutral ? optimalMA : na, "Neutral Basis", color=color.new(neutralColor, 0))
p1 = plot(showNeutral ? upper : na, "Neutral Upper", color=color.new(neutralColor, 50))
p2 = plot(showNeutral ? lower : na, "Neutral Lower", color=color.new(neutralColor, 50))
fill(p1, p2, title = "Neutral Background", color=color.new(neutralColor, 96))
//Slow Bollinger Bands
dev_slow = mult * ta.stdev(src, math.round(optimalLength_slow))
upper_slow = optimalMA_slow + dev_slow
lower_slow = optimalMA_slow - dev_slow
plot(showFast ? optimalMA_slow : na, "Slow Basis", color=color.new(slowColor, 0))
p1_slow = plot(showFast ? upper_slow : na, "Slow Upper", color=color.new(slowColor, 50))
p2_slow = plot(showFast ? lower_slow : na, "Slow Lower", color=color.new(slowColor, 50))
fill(p1_slow, p2_slow, title = "Slow Background", color=color.new(slowColor, 96))
//Fast Bollinger Bands
dev_fast = mult * ta.stdev(src, math.round(optimalLength_fast))
upper_fast = optimalMA_fast + dev_fast
lower_fast = optimalMA_fast - dev_fast
plot(showSlow ? optimalMA_fast : na, "Fast Basis", color=color.new(fastColor, 0))
p1_fast = plot(showSlow ? upper_fast : na, "Fast Upper", color=color.new(fastColor, 50))
p2_fast = plot(showSlow ? lower_fast : na, "Fast Lower", color=color.new(fastColor, 50))
fill(p1_fast, p2_fast, title = "Fast Background", color=color.new(fastColor, 96))
Donchian Channels:
Above you’ll see two examples of Machine Learning: Optimal Length applied to Donchian Channels. These are displayed with both the 15 Minute Time Frame and the 1 Day Time Frame.
Donchian Channels are a way of seeing potential Support and Resistance within a given lookback length. They are a way of withholding the High’s and Low’s of a specific lookback length and looking for deviation within this length. By applying our Fast, Slow and Neutral Machine Learning: Optimal Length to these Donchian Channels way may hope to achieve a viable range of High’s and Low’s that one may use to Identify Support and Resistance locations for different ranges of Optimal Lengths and likewise potentially different Trading Strategies.
The code to reproduce these Donchian Channels as displayed above is so:
//@version=5
indicator("Optimal Length - Backtesting - Donchian Channels", overlay=true, max_bars_back=5000)
outputType = input.string("All", "Output Type", options= )
lengthSource = input.source(close, "Neutral Length")
lengthSource_fast = input.source(close, "Fast Length")
lengthSource_slow = input.source(close, "Slow Length")
showNeutral = outputType == "Neutral" or outputType == "Fast + Neutral" or outputType == "Slow + Neutral" or outputType == "All"
showFast = outputType == "Fast" or outputType == "Fast + Neutral" or outputType == "Fast + Slow" or outputType == "All"
showSlow = outputType == "Slow" or outputType == "Slow + Neutral" or outputType == "Fast + Slow" or outputType == "All"
mult = 2.0
src = close
neutralColor = color.blue
slowColor = color.red
fastColor = color.green
//Neutral
optimalLength = math.min(math.max(math.round(lengthSource), 1), 1000)
optimalMA = ta.sma(close, optimalLength)
//Fast
optimalLength_fast = math.min(math.max(math.round(lengthSource_fast), 1), 1000)
optimalMA_fast = ta.sma(close, optimalLength_fast)
//Slow
optimalLength_slow = math.min(math.max(math.round(lengthSource_slow), 1), 1000)
optimalMA_slow = ta.sma(close, optimalLength_slow)
//Neutral Donchian Channels
lower_dc = ta.lowest(optimalLength)
upper_dc = ta.highest(optimalLength)
basis_dc = math.avg(upper_dc, lower_dc)
plot(showNeutral ? basis_dc : na, "Donchain Channel - Neutral Basis", color=color.new(neutralColor, 0))
u = plot(showNeutral ? upper_dc : na, "Donchain Channel - Neutral Upper", color=color.new(neutralColor, 50))
l = plot(showNeutral ? lower_dc : na, "Donchain Channel - Neutral Lower", color=color.new(neutralColor, 50))
fill(u, l, color=color.new(neutralColor, 96), title = "Donchain Channel - Neutral Background")
//Fast Donchian Channels
lower_dc_fast = ta.lowest(optimalLength_fast)
upper_dc_fast = ta.highest(optimalLength_fast)
basis_dc_fast = math.avg(upper_dc_fast, lower_dc_fast)
plot(showFast ? basis_dc_fast : na, "Donchain Channel - Fast Neutral Basis", color=color.new(fastColor, 0))
u_fast = plot(showFast ? upper_dc_fast : na, "Donchain Channel - Fast Upper", color=color.new(fastColor, 50))
l_fast = plot(showFast ? lower_dc_fast : na, "Donchain Channel - Fast Lower", color=color.new(fastColor, 50))
fill(u_fast, l_fast, color=color.new(fastColor, 96), title = "Donchain Channel - Fast Background")
//Slow Donchian Channels
lower_dc_slow = ta.lowest(optimalLength_slow)
upper_dc_slow = ta.highest(optimalLength_slow)
basis_dc_slow = math.avg(upper_dc_slow, lower_dc_slow)
plot(showSlow ? basis_dc_slow : na, "Donchain Channel - Slow Neutral Basis", color=color.new(slowColor, 0))
u_slow = plot(showSlow ? upper_dc_slow : na, "Donchain Channel - Slow Upper", color=color.new(slowColor, 50))
l_slow = plot(showSlow ? lower_dc_slow : na, "Donchain Channel - Slow Lower", color=color.new(slowColor, 50))
fill(u_slow, l_slow, color=color.new(slowColor, 96), title = "Donchain Channel - Slow Background")
Envelopes / Envelopes Adjusted:
Envelopes are an interesting one in the sense that they both may be perceived as useful; however we deem that with the use of an ‘Optimal Length’ that the ‘Envelopes Adjusted’ may work best. We will start with examples of the Traditional Envelope then showcase the Adjusted version.
Envelopes:
As you may see, a Traditional form of Envelopes even produced with our Machine Learning: Optimal Length may not produce optimal results. Unfortunately this may occur with some Traditional Indicators and they may need some adjustments as you’ll notice with the ‘Envelopes Adjusted’ version. However, even without the adjustments, these Envelopes may be useful for seeing ‘Overbought’ and ‘Oversold’ locations within a Machine Learning: Optimal Length standpoint.
Envelopes Adjusted:
By adding an adjustment to these Envelopes, we may hope to better reflect out Optimal Length within it. This is caused by adding a ratio reflection towards the current length of the Optimal Length and the max Length used. This allows for the Fast and Neutral (and potentially Slow if Neutral is greater) to achieve a potentially more accurate result.
Envelopes, much like Bollinger Bands are a way of seeing potential movement zones along with potential Support and Resistance. However, unlike Bollinger Bands which are based on Standard Deviation, Envelopes are based on percentages +/- from the Simple Moving Average.
The code used to reproduce the example above is as follows:
//@version=5
indicator("Optimal Length - Backtesting - Envelopes", overlay=true, max_bars_back=5000)
outputType = input.string("All", "Output Type", options= )
displayType = input.string("Envelope Adjusted", "Display Type", options= )
lengthSource = input.source(close, "Neutral Length")
lengthSource_fast = input.source(close, "Fast Length")
lengthSource_slow = input.source(close, "Slow Length")
showNeutral = outputType == "Neutral" or outputType == "Fast + Neutral" or outputType == "Slow + Neutral" or outputType == "All"
showFast = outputType == "Fast" or outputType == "Fast + Neutral" or outputType == "Fast + Slow" or outputType == "All"
showSlow = outputType == "Slow" or outputType == "Slow + Neutral" or outputType == "Fast + Slow" or outputType == "All"
mult = 2.0
src = close
neutralColor = color.blue
slowColor = color.red
fastColor = color.green
//Neutral
optimalLength = math.min(math.max(math.round(lengthSource), 1), 1000)
optimalMA = ta.sma(close, optimalLength)
//Fast
optimalLength_fast = math.min(math.max(math.round(lengthSource_fast), 1), 1000)
optimalMA_fast = ta.sma(close, optimalLength_fast)
//Slow
optimalLength_slow = math.min(math.max(math.round(lengthSource_slow), 1), 1000)
optimalMA_slow = ta.sma(close, optimalLength_slow)
percent = 10.0
maxAmount = math.max(optimalLength, optimalLength_fast, optimalLength_slow)
//Neutral
k = displayType == "Envelope" ? percent/100.0 : (percent/100.0) / (optimalLength / maxAmount)
upper_env = optimalMA * (1 + k)
lower_env = optimalMA * (1 - k)
plot(showNeutral ? optimalMA : na, "Envelope - Neutral Basis", color=color.new(neutralColor, 0))
u_env = plot(showNeutral ? upper_env : na, "Envelope - Neutral Upper", color=color.new(neutralColor, 50))
l_env = plot(showNeutral ? lower_env : na, "Envelope - Neutral Lower", color=color.new(neutralColor, 50))
fill(u_env, l_env, color=color.new(neutralColor, 96), title = "Envelope - Neutral Background")
//Fast
k_fast = displayType == "Envelope" ? percent/100.0 : (percent/100.0) / (optimalLength_fast / maxAmount)
upper_env_fast = optimalMA_fast * (1 + k_fast)
lower_env_fast = optimalMA_fast * (1 - k_fast)
plot(showFast ? optimalMA_fast : na, "Envelope - Fast Basis", color=color.new(fastColor, 0))
u_env_fast = plot(showFast ? upper_env_fast : na, "Envelope - Fast Upper", color=color.new(fastColor, 50))
l_env_fast = plot(showFast ? lower_env_fast : na, "Envelope - Fast Lower", color=color.new(fastColor, 50))
fill(u_env_fast, l_env_fast, color=color.new(fastColor, 96), title = "Envelope - Fast Background")
//Slow
k_slow = displayType == "Envelope" ? percent/100.0 : (percent/100.0) / (optimalLength_slow / maxAmount)
upper_env_slow = optimalMA_slow * (1 + k_slow)
lower_env_slow = optimalMA_slow * (1 - k_slow)
plot(showSlow ? optimalMA_slow : na, "Envelope - Slow Basis", color=color.new(slowColor, 0))
u_env_slow = plot(showSlow ? upper_env_slow : na, "Envelope - Slow Upper", color=color.new(slowColor, 50))
l_env_slow = plot(showSlow ? lower_env_slow : na, "Envelope - Slow Lower", color=color.new(slowColor, 50))
fill(u_env_slow, l_env_slow, color=color.new(slowColor, 96), title = "Envelope - Slow Background")
Hopefully these examples, including reproducing code, have given you some insight as to how useful this Machine Learning: Optimal Length may be and how another Indicator may easily modify their existing code to incorporate the usage of such Machine Learning: Optimal Length. We likewise will publish a Backtesting Indicator which incorporates all of the concepts we’ve gone over within here; in case you wish to take advantage of the Traditional Indicators mentioned above that allow the input of Machine Learning: Optimal Length and don’t wish to code them.
If you have any questions, comments, ideas or concerns please don't hesitate to contact us.
HAPPY TRADING!
RS for VPAThis is a supporting Indicator for the Volume Price Analysis Script VPA 5.0.
Purpose
To indicate the performance of the stock compared to an Index or any other selected stock. It also provides an idea about the strength of the Reference Index as well.
Description
The indicator is an unbound oscillator moving around a zero line. If the stock is strong then the values are positive and if it is weak the values are negative. If the stock is performing better (Stronger) than the Index the indicator is positive and colored green. If the stock is weaker than the Index it is negative and is colored Red.
The background indicates the strength of the Reference Index/Stock. Bullishness/up trend of the Index/Stock is indicated by yellow colour. Short term uptrend, Mid term uptrend and Long term trends are indicated by different shades of yellow varying from light to Dark. The bearishness / down trend is indicated by blue back ground.
How it Works
The relative strength is calculated by using the formula
RS = Gain of the stock / (Gain of the Ref. Index -1)
= (Stock Price today / Stock Price (N period ago)) /
(Index Price today / Index price (N period ago)) – 1
The Index strength is calculated as below
Short term trend up = 5 ema > 22 ema
Mid Term trend up = 22 ema > 60 ema
Long term trend up = 60 ema > 130 ema
Trend down = 5 ema < 22 ema
How to use
Use this indicator to assist your Price Action Analysis using VPA 5.0. When the Price action and volume indicates Bullishness, you can check if the relative strength is also supporting (Positive and in green Territory). This adds credibility to the Price action. Also check if the index is also positive (the Back ground is yellow). This makes the Price action even stronger. Ideally both the stock and index should be strong. Many time you would find the that the stock is in green territory but the index is in blue territory. This calls for some caution in evaluating the Price Action.
When the price action is positive but the relative strength is negative then one should be cautious and wait for the relative strength to turn positive before any entry decision.
Option for the Indicator
One can select the following from the setting for the indicator
1. Index or reference stock – Default is CNX 500
2. Relative Strength Calculation period – Default is 22
3. The EMA periods for the Index/Reference stock strength calculation
[KVA]nRSIThe nRSI stands as a groundbreaking enhancement of the traditional Relative Strength Index (RSI), specifically engineered for traders seeking a more refined and accurate tool in fast-moving markets.
Customizable Price Change Period (n): Unlike the traditional RSI which solely relies on a fixed period for average gains and losses, the nRSI introduces an additional parameter, n, to calculate price changes.
This adaptation focuses on minimizing market noise, sharpening the indicator's sensitivity to genuine trends and patterns.
Enhanced Signal Precision : By reducing the influence of short-term price spikes and fluctuations, the nRSI delivers a more precise signal. This precision is particularly crucial in volatile market conditions, where traditional indicators may be swayed by transient movements.
Ideal Usage
Strategic Trading Decisions : Ideal for traders who need to filter out insignificant price movements to make more strategic, informed trading decisions.
Reliable Divergence Spotting : Enhanced noise reduction aids in identifying more reliable divergences, key for predicting potential market reversals.
Trend Confirmation : The smoothed RSI, assisted by the moving average, becomes an invaluable tool for confirming the validity of market trends, minimizing false signals.
Detrended Price Rate of ChangeThe Detrended Price Rate of Change is an oscillator developed to help traders identify potential conditions of overbought and oversold markets.
The formula of the oscillator includes both the Detrended price formula, useful to spot divergences, and the Rate of change simplified formula, which helps in identifying overextended markets and gives useful information on price momentum.
ATH Drawdown Indicator by Atilla YurtsevenThe ATH (All-Time High) Drawdown Indicator, developed by Atilla Yurtseven, is an essential tool for traders and investors who seek to understand the current price position in relation to historical peaks. This indicator is especially useful in volatile markets like cryptocurrencies and stocks, offering insights into potential buy or sell opportunities based on historical price action.
This indicator is suitable for long-term investors. It shows the average value loss of a price. However, it's important to remember that this indicator only displays statistics based on past price movements. The price of a stock can remain cheap for many years.
1. Utility of the Indicator:
The ATH Drawdown Indicator provides a clear view of how far the current price is from its all-time high. This is particularly beneficial in assessing the magnitude of a pullback or retracement from peak levels. By understanding these levels, traders can gauge market sentiment and make informed decisions about entry and exit points.
2. Risk Management:
This indicator aids in risk management by highlighting significant drawdowns from the ATH. Traders can use this information to adjust their position sizes or set stop-loss orders more effectively. For instance, entering trades when the price is significantly below the ATH could indicate a higher potential for recovery, while a minimal drawdown from the ATH may suggest caution due to potential overvaluation.
3. Indicator Functionality:
The indicator calculates the percentage drawdown from the ATH for each trading period. It can display this data either as a line graph or overlaid on candles, based on user preference. Horizontal lines at -25%, -50%, -75%, and -100% drawdown levels offer quick visual cues for significant price levels. The color-coding of candles further aids in visualizing bullish or bearish trends in the context of ATH drawdowns.
4. ATH Level Indicator (0 Level):
A unique feature of this indicator is the 0 level, which signifies that the price is currently at its all-time high. This level is a critical reference point for understanding the market's peak performance.
5. Mean Line Indicator:
Additionally, this indicator includes a 'Mean Line', representing the average percentage drawdown from the ATH. This average is calculated over more than a thousand past bars, leveraging the law of large numbers to provide a reliable mean value. This mean line is instrumental in understanding the typical market behavior in relation to the ATH.
Disclaimer:
Please note that this ATH Drawdown Indicator by Atilla Yurtseven is provided as an open-source tool for educational purposes only. It should not be construed as investment advice. Users should conduct their own research and consult a financial advisor before making any investment decisions. The creator of this indicator bears no responsibility for any trading losses incurred using this tool.
Please remember to follow and comment!
Trade smart, stay safe
Atilla Yurtseven
Gorb DNAIntroduction:
Gorb DNA is a versatile indicator using classic technical analysis components such as moving averages, stochastic oscillator, and histogram blending call/put flow analysis with our proprietary DNA algorithm. This indicator is designed to provide traders with useful market direction, volume, and momentum change visual cues.
Overview:
The Gorb DNA Indicator isn't just another momentum tool; it's a complex integration of innovative market analysis techniques.
By combining moving averages, stochastic oscillator, with proprietary algorithms, this indicator offers a multi-layered view of market trends, by merging call/put flow analysis with traditional market flow assessment.
This is designed for all kinds of traders, using a simple method to deliver visual changes in flow, volume, and momentum.
Core Features: Call/Put Flow & DNA
Call/Put Flow Analysis: This component examines the strength of market buying and selling pressures. It analyzes call (buying) and put (selling) flows using price range movements, providing insights smoothed over a defined period for analysis of market sentiment.
DNA Algorithm: A central feature of this indicator, the DNA algorithm utilizes a specialized moving average and oscillator technique to discern market trends. It presents an innovative approach, calculating the difference between bullish and bearish indicators to offer a detailed analysis of market momentum.
Visualization and Color Coding: The indicator employs a color-coded system for ease of interpretation, with distinct colors indicating different market conditions: white for upward/bullish movement and purple for downward/bearish movement. This feature translating complex data into a visual format that is simple to understand.
How Call/Put Flow Works:
Moving averages are used with volume and candlestick highs/lows over a specific range to help determine the overall flow. It then plots a colored line area that looks like a colored wave using just two colors to provide traders with a visual of the current market flow. This can help traders identify changes in sentiment with simple color cues.
How DNA Works:
A stochastic oscillator is used to measure the current price level relative to its price over a specific range period to analyze the momentum for the two DNA strands. Additionally moving averages are used to confirm trend and identify any divergences relative to the momentum. This is then plotted as two lines(DNA Strands) following the same color scheme as Call/Put Flow. When momentum is picking up in a specific direction, the lines will change colors and cross each other, this gives a visual of momentum now being fully on one side until it starts to change colors and flip that direction.
Custom Algorithm Elements:
Gorb DNA isn't just common tools combined into one indicator. It includes proprietary algorithmic elements tailored to enhance technical analysis and timing. These are the reasons what set this indicator apart from common momentum, sentiment, and volume methods.
We recommend experimenting with these features to choose what best suits your trading style.
Settings:
All skill-level friendly presets, easy to enable features with one-click
Call Flow: allows the user to plot a colored area that looks like waves showing increases/decreases in bullish volume (not to be followed blindly)
Put Flow: allows the user to plot a colored area that looks like waves showing increases/decreases in bearish volume (not to be followed blindly)
DNA Strand 1: allows the user to plot one of the algorithm lines to visualize momentum direction (not to be followed blindly)
DNA Strand 2: allows the user to plot one of the algorithm lines to visualize momentum direction (not to be followed blindly)
DNA Strength: allows the user to a histogram displaying momentum volume bars in the background
Flow Threshold: allows users to plot a dotted line to identify when call/put flow is now above average flow range
All colors are changeable for the user to customize to their liking
Call/Put Flow & DNA Demonstration
In the image below, we can see a basic illustration of how these core features function.
As stated above, call/put flow carefully monitors changes in moving averages, volume, and price action. If the market sentiment is shifting one direction, the call/put flow will plot those changes. If market is bullish, call flow should rise and put flow should decrease. The same goes for the opposite if the market is bearish.
As is the same for the DNA strands, if markets momentum is becoming bullish, the lines will change color and then cross to signify a change in momentum and the call flow in the background should match this change. This creates two layers of confluence in an easy understandable visual method.
Using Call/Put Flow
In the image below, we disabled everything but call flow to demonstrate usage.
On the left side of the image, you can see call flow matched price increase, then started to decline. This created a flow divergence, identifying a possible change in price action coming. This happened once flow crossed back below the threshold line and price then beginning to move lower. On the right side of the image, you can see call flow rising and price increasing. This is a good confluence showing there is bullish sentiment building in the market.
In this next image, we disabled everything but put flow to demonstrate usage.
The left side shows a put flow divergence. Put flow is slowly rising just like price is, this can help a trader identify a possible shift in sentiment coming. And on the right side, we have put flow rising above the threshold line and price beginning to decrease. Now we have confluence of bearish sentiment building in the market.
The image below shows only call & put flow enabled, to display what the above two images combined look like.
As you can see in the image above, these flow visuals help identify the underlying market sentiment. And when they cross, it leads to a change in price action in the direction of the sentiment over the threshold line.
Using DNA Strands
The image below has just DNA strands enabled to demonstrate usage.
On the left is a box highlighting bearish momentum cross. In the circles is the change in momentum shifting from bullish to bearish. The move gets stronger as the DNA strands get closer to cross over signifying strength in the move. On the right side is a box highlighting a bullish momentum cross. The circles again, show the change from bearish to bullish momentum. Like previously said, the move gets stronger as the DNA strands get closer to crossing over, signifying strength in that direction.
The next image shows call/put flow and DNA strands enabled for a full complete picture.
The circles labeled (1) are showing the change in momentum from bullish to bearish. Circle (2) shows call flow decreasing and put flow rising above calls. Finally the arrow points to the DNA strands crossing over and put flow rising above the threshold line. This is 3 levels of easy visual confluence showing a change in sentiment, volume, and momentum to the downside.
The next image will be showing the bullish side with call/put flow and DNA strands enabled.
The circles that are labeled (1), show the visual change in momentum on the DNA strands from bearish to bullish. Circle (2) is the crossing of call flow over put flow and the arrow points to the DNA strands crossing over and call flow above the threshold line. Three simple to use visual confluences to identify change in sentiment, volume, and momentum to the upside.
Conclusion:
Our goal is to provide a unique, yet simple approach to market sentiment & momentum analysis. It's a tool developed for traders seeking user-friendly and easy to use tools that provide easy visual insights of market dynamics. We believe in simplicity, effectiveness, and creating tools to support decision making for all traders.
How to get access:
You can see the Author's instructions to get access to this indicator
RISK DISCLAIMER
All content, tools, scripts & education provided by Gorb Algo are for informational & educational purposes only. Trading is risky and most lose their money, past performance does not guarantee future results.
Dope DPOThe "Dope DPO" (DDPO) indicator is a technical analysis tool designed for traders to identify trends and potential trend changes in the market. It's based on the concept of the Detrended Price Oscillator (DPO), but with several enhancements for greater versatility and user customization.
Key Features of the Dope DPO Indicator:
Averaging Multiple Periods: The indicator averages the DPO calculations over ten different time periods. This averaging helps in smoothing out the volatility and providing a more comprehensive view of the market trend.
Customizable Smoothing: Users can choose the length of the smoothing as well as the type of moving average (SMA, EMA, WMA, or RMA) for smoothing. This allows for flexibility in how the indicator responds to price changes.
Trend Change Detection: The indicator includes a feature to detect changes in the market trend. It does this by comparing the current value of the smoothed DPO to its value a specified number of bars back. This helps in identifying potential reversals or shifts in momentum.
Dynamic Color Coding: The indicator uses color coding (green and red) to visually represent the trend direction. If the smoothed DPO is trending upwards compared to a previous value, the color will be green, indicating bullish momentum. Conversely, a red color signifies bearish momentum.
Horizontal Reference Lines: It includes horizontal lines at specific levels (overbought, zero, and oversold) to provide reference points for interpreting the indicator's values.
Usage:
Traders can use the Dope DPO to gauge the overall market trend and to look for potential entry and exit points based on trend changes.
The color-coded histogram makes it easy to spot when the trend might be reversing, which can be particularly useful in conjunction with other technical analysis tools.
The flexibility in choosing the smoothing method and length allows traders to tailor the indicator to different trading styles and timeframes.