GKD-C Universal Oscillator [Loxx]Giga Kaleidoscope Universal Oscillator Confirmation is a Confirmation module included in Loxx's "Giga Kaleidoscope Modularized Trading System".
What is Loxx's "Giga Kaleidoscope Modularized Trading System"?
The Giga Kaleidoscope Modularized Trading System is a trading system built on the philosophy of the NNFX (No Nonsense Forex) algorithmic trading.
What is an NNFX algorithmic trading strategy?
The NNFX algorithm is built on the principles of trend, momentum, and volatility. There are six core components in the NNFX trading algorithm:
1. Volatility - price volatility; e.g., Average True Range, True Range Double, Close-to-Close, etc.
2. Baseline - a moving average to identify price trend (such as "Baseline" shown on the chart above)
3. Confirmation 1 - a technical indicator used to identify trends. This should agree with the "Baseline"
4. Confirmation 2 - a technical indicator used to identify trends. This filters/verifies the trend identified by "Baseline" and "Confirmation 1"
5. Volatility/Volume - a technical indicator used to identify volatility/volume breakouts/breakdown.
6. Exit - a technical indicator used to determine when a trend is exhausted.
How does Loxx's GKD (Giga Kaleidoscope Modularized Trading System) implement the NNFX algorithm outlined above?
Loxx's GKD v1.0 system has five types of modules (indicators/strategies). These modules are:
1. GKD-BT - Backtesting module (Volatility, Number 1 in the NNFX algorithm)
2. GKD-B - Baseline module (Baseline and Volatility/Volume, Numbers 1 and 2 in the NNFX algorithm)
3. GKD-C - Confirmation 1/2 module (Confirmation 1/2, Numbers 3 and 4 in the NNFX algorithm)
4. GKD-V - Volatility/Volume module (Confirmation 1/2, Number 5 in the NNFX algorithm)
5. GKD-E - Exit module (Exit, Number 6 in the NNFX algorithm)
(additional module types will added in future releases)
Each module interacts with every module by passing data between modules. Data is passed between each module as described below:
GKD-B => GKD-V => GKD-C(1) => GKD-C(2) => GKD-E => GKD-BT
That is, the Baseline indicator passes its data to Volatility/Volume. The Volatility/Volume indicator passes its values to the Confirmation 1 indicator. The Confirmation 1 indicator passes its values to the Confirmation 2 indicator. The Confirmation 2 indicator passes its values to the Exit indicator, and finally, the Exit indicator passes its values to the Backtest strategy.
This chaining of indicators requires that each module conform to Loxx's GKD protocol, therefore allowing for the testing of every possible combination of technical indicators that make up the six components of the NNFX algorithm.
What does the application of the GKD trading system look like?
Example trading system:
Backtest: Strategy with 1-3 take profits, trailing stop loss, multiple types of PnL volatility, and 2 backtesting styles
Baseline: Hull Moving Average
Volatility/Volume: Volatility Ratio
Confirmation 1: Universal Oscillator as shown on the chart above
Confirmation 2: Vortex
Exit: Universal Oscillator
Each GKD indicator is denoted with a module identifier of either: GKD-BT, GKD-B, GKD-C, GKD-V, or GKD-E. This allows traders to understand to which module each indicator belongs and where each indicator fits into the GKD protocol chain.
Now that you have a general understanding of the NNFX algorithm and the GKD trading system. Let's go over what's inside the GKD-E Universal Oscillator itself.
What is Universal Oscillator?
In his article, "Whiter is Brighter," Dr. Ehlers discusses that market data is akin to "pink noise" (a scientific term that refers to a type of noise where the power spectral density is stronger at lower frequencies). Isolating the white spectrum (whose power spectral density is the same at all frequencies) is said to output data that can be transformed into a zero-lag oscillator.
The isolation of the white spectrum data is done via a momentum-based equation. This data is further subjected to Ehlers Super Smoother so that undesirable wave components are eliminated. The filtered data is then transformed into an oscillator by using the automatic gain control algorithm.
What's different in this version?
This version also includes Loxx's Exotic Source Types. You can read about these sources here:
Signals
A GKD-C Confirmation indicator can be used as either a Confirmation 1, Confirmation 2, or Solo Confirmation indicator. See step 3 & 4 of the NNFX algorithm above to understand how this indicator fits into the GKD trading system. The Solo Confirmation setting allows you to test this indicator by itself without an additional GKD-C indicator present in the GKD protocol chain.
On the chart shown above, this indicator is shown as GKD-C Universal Oscillator and is set to Solo Confirmation. The GKD-B Baseline, GKD-V Volatility Ratio, and this indicator satisfy the first three steps in the GKD trading system chain: GKD-B => GKD-V => GKD-C(solo).
Overbought and oversold levels are included for a point of reference and have no bearing on the generated signals.
The signals from each of these settings are as follows:
Confirmation 1 Signal
Initial Long (L): Universal Oscillator crosses-up over zero-line*
Initial Short (S): Universal Oscillator crosses-down under zero-line*
Continuation Long (CL): Universal Oscillator is over zero-line, then crosses-up over the signal**
Continuation Short (CS): Universal Oscillator is under zero-line, then crosses-down under the signal**
Post Baseline Cross Long (BL): Universal Oscillator crossed-up over zero-line but Baseline is still in downtrend, then Baseline turns to uptrend within XX bars***
Post Baseline Cross Short (BS): Universal Oscillator crossed-down under zero-line but Baseline is still in uptrend, then Baseline turns to downtrend within XX bars***
BL Recovery Continuation Long (RL): Universal Oscillator is above zero-line. Baseline already crossed down into downtrend, then baseline crosses back up to uptrend; then, Universal Oscillator crosses-up over the signal****
BL Recovery Continuation Short (RS): Universal Oscillator is below zero-line. Baseline already crossed up into uptrend, then baseline crosses back down to downtrend; then, Universal Oscillator crosses-down under the signal****
*All signals are shown regardless of Baseline and Volatility/Volume qualification
**All signals are shown regardless of Baseline qualification; however, when Baseline filter is active, only true continuations are shown. When the Baseline filter is not active, then all continuations are shown. True continuations are when the Baseline is active and maintains its uptrend/downtrend after the initial cross-up/cross-down over the zero-line respectively. This means that if the Baseline trend then moves against the Universal Oscillator then any continuation signals are voided until another initial Long/Short. All continuations are will either show as regular continuations or be converted into recovery continuations
***All signals are shown regardless of Volatility/Volume qualification
****When the Baseline filter is active, some regular continuations are converted to recovery continuations and are shown. When the Baseline filter is not active, then these signals are not shown.
Confirmation 2 Signal
Initial Long (L): Universal Oscillator crosses-up over zero-line*
Initial Short (S): Universal Oscillator crosses-down under zero-line*
Continuation Long (CL): Universal Oscillator is over zero-line, then crosses-up over the signal**
Continuation Short (CS): Universal Oscillator is under zero-line, then crosses-down under the signal**
Post Baseline Cross Long (BL): Universal Oscillator crossed-up over zero-line but Baseline is still in downtrend, then Baseline turns to uptrend within XX bars***
Post Baseline Cross Short (BS): Universal Oscillator crossed-down under zero-line but Baseline is still in uptrend, then Baseline turns to downtrend within XX bars***
BL Recovery Continuation Long (RL): Universal Oscillator is above zero-line. Baseline already crossed down into downtrend, then baseline crosses back up to uptrend while Universal Oscillator is still above zero-line; then, Universal Oscillator crosses-up over the signal****
BL Recovery Continuation Short (RS): Universal Oscillator is below zero-line. Baseline already crossed up into uptrend, then baseline crosses back down to downtrend while Universal Oscillator is still below zero-line; then, Universal Oscillator crosses-down under the signal****
*All signals are shown regardless of Baseline and Volatility/Volume qualification
**All signals are shown regardless of Baseline qualification; however, when Baseline filter is active, only true continuations are shown. When the Baseline filter is not active, then all continuations are shown. True continuations are when the Baseline is active and maintains its uptrend/downtrend after the initial cross-up/cross-down over the zero-line respectively. This means that if the Baseline trend then moves against the Universal Oscillator then any continuation signals are voided until another initial Long/Short. All continuations are will either show as regular continuations or be converted into recovery continuations
***All signals are shown regardless of Volatility/Volume qualification
****When the Baseline filter is active, some regular continuations are converted to recovery continuations and are shown. When the Baseline filter is not active, then these signals are not shown.
Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
Initial Long (L): The imported GKD-C Confirmation 1 indicator crosses-up over zero-line, then Universal Oscillator crosses-up over the zero-line on the same bar or "Number of Bars Confirmation" bars in the future (see X-bar rule below)
Initial Short (S): The imported GKD-C Confirmation 1 indicator crosses-down under zero-line, then Universal Oscillator crosses-down under the zero-line on the same bar or "Number of Bars Confirmation" bars in the future (see X-bar rule below)
Continuation Long Confirmation 1 (CL): The imported GKD-C Confirmation 1 indicator is over zero-line, then crosses-up over the signal
Continuation Short Confirmation 1 (CS): The imported GKD-C Confirmation 1 indicator is under zero-line, then crosses-down under the signal
Post Baseline Cross Long (BL): The imported GKD-C Confirmation 1 crossed-up over zero-line but Baseline is still in downtrend; and Universal Oscillator crossed-up over zero-line on the same bar or XX bars in the future but Baseline is still in downtrend; then Baseline turns to uptrend within "Maximum Allowable PSBC Bars Back" bars (see X-bar rule below)
Post Baseline Cross Short (BS): The imported GKD-C Confirmation 1 crossed-down under zero-line but Baseline is still in uptrend; and, Universal Oscillator crossed-down under zero-line on the same bar or XX bars in the future but Baseline is still in uptrend; then Baseline turns to downtrend within "Maximum Allowable PSBC Bars Back" bars (see X-bar rule below)
BL Recovery Continuation Long (RL): The imported GKD-C Confirmation 1 indicator is above zero-line. Baseline already crossed down into downtrend, then baseline crosses back up to uptrend while Universal Oscillator is still above zero-line; then, The imported GKD-C Confirmation 1 crosses-up over the signal
BL Recovery Continuation Short (RS): The imported GKD-C Confirmation 1 indicator is below zero-line. Baseline already crossed up into uptrend, then baseline crosses back down to downtrend while Universal Oscillator is still below zero-line; then, The imported GKD-C Confirmation 1 crosses-down under the signal
Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 2
Initial Long (L): same as Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
Initial Short (S): same as Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
Continuation Long Confirmation 2 (CL): Universal Oscillator is over zero-line, then crosses-up over the signal
Continuation Short Confirmation 2 (CS): Universal Oscillator is under zero-line, then crosses-down under the signal
Post Baseline Cross Long (BL): same as Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
Post Baseline Cross Short (BS): same as Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
BL Recovery Continuation Long (RL): Universal Oscillator is above zero-line. Baseline already crossed down into downtrend, then baseline crosses back up to uptrend; then, Universal Oscillator crosses-up over the signal
BL Recovery Continuation Short (RS): Universal Oscillator is below zero-line. Baseline already crossed up into uptrend, then baseline crosses back down to downtrend; then, Universal Oscillator crosses-down under the signal
Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Both
Initial Long (L): same as Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
Initial Short (S): same as Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
Continuation Long Confirmation 2 (CL): The imported GKD-C Confirmation 1 indicator is over zero-line, then crosses-up over the signal; Universal Oscillator is over zero-line, then crosses-up over the signal within "Number of Bars Confirmation" bars in the future
Continuation Short Confirmation 2 (CS): The imported GKD-C Confirmation 1 indicator is under zero-line, then crosses-down under the signal; Universal Oscillator is under zero-line, then crosses-down under the signal within "Number of Bars Confirmation" bars in the future
Post Baseline Cross Long (BL): same as Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
Post Baseline Cross Short (BS): same as Confirmation 2 Confluence Background Color Signals; Confirmation Order: Regular; Confirmation Type: Confirmation 1
BL Recovery Continuation Long (RL): The imported GKD-C Confirmation 1 indicator is above zero-line and Universal Oscillator is above zero-line. Baseline already crossed down into downtrend, then baseline crosses back up to uptrend; then, the imported GKD-C Confirmation 1 crosses-up over its signal, and Universal Oscillator crosses-up over its signal within "Number of Bars Confirmation" bars in the future
BL Recovery Continuation Short (RS): The imported GKD-C Confirmation 1 indicator is below zero-line and Universal Oscillator is below zero-line. Baseline already crossed up into uptrend, then baseline crosses back down to downtrend; then, the imported GKD-C Confirmation 1 crosses-down under its signal, and Universal Oscillator crosses-down under its signal within "Number of Bars Confirmation" bars in the future
Confirmation 2 Confluence Background Color Signals; Confirmation Order: Both; Confirmation Type: (continuations don't change from the variations above)
Initial Long (L): The imported GKD-C Confirmation 1 indicator crosses-up over zero-line, then Universal Oscillator crosses-up over the zero-line on the same bar or "Number of Bars Confirmation" bars in the future (see X-bar rule below); OR, Universal Oscillator crosses-up over zero-line, then the imported GKD-C Confirmation 1 indicator crosses-up over the zero-line on the same bar or "Number of Bars Confirmation" bars in the future (see X-bar rule below)
Initial Short (S): The imported GKD-C Confirmation 1 indicator crosses-down under zero-line, then Universal Oscillator crosses-down under the zero-line on the same bar or "Number of Bars Confirmation" bars in the future (see X-bar rule below); OR, Universal Oscillator crosses-down under zero-line, then the imported GKD-C Confirmation 1 indicator crosses-down under the zero-line on the same bar or "Number of Bars Confirmation" bars in the future (see X-bar rule below)
Post Baseline Cross Long (BL): The imported GKD-C Confirmation 1 crossed-down under zero-line but Baseline is still in uptrend; and, Universal Oscillator crossed-down under zero-line on the same bar or XX bars in the future but Baseline is still in uptrend; then Baseline turns to downtrend within "Maximum Allowable PSBC Bars Back" bars (see X-bar rule below); OR, Universal Oscillator crossed-down under zero-line but Baseline is still in uptrend; and, the imported GKD-C Confirmation 1 crossed-down under zero-line on the same bar or XX bars in the future but Baseline is still in uptrend; then Baseline turns to downtrend within "Maximum Allowable PSBC Bars Back" bars (see X-bar rule below)
Post Baseline Cross Short (BS): The imported GKD-C Confirmation 1 crossed-down under zero-line but Baseline is still in uptrend; and, Universal Oscillator crossed-down under zero-line on the same bar or XX bars in the future but Baseline is still in uptrend; then Baseline turns to downtrend within "Maximum Allowable PSBC Bars Back" bars (see X-bar rule below); OR, Universal Oscillator crossed-down under zero-line but Baseline is still in uptrend; and, the imported GKD-C Confirmation 1 crossed-down under zero-line on the same bar or XX bars in the future but Baseline is still in uptrend; then Baseline turns to downtrend within "Maximum Allowable PSBC Bars Back" bars (see X-bar rule below)
Solo Confirmation Signals
Initial Long (L): Universal Oscillator crosses-up over zero-line
Initial Short (S): Universal Oscillator crosses-down under zero-line
Continuation Long (CL): Universal Oscillator is over zero-line, then crosses-up over the signal
Continuation Short (CS): Universal Oscillator is under zero-line, then crosses-down under the signal
Post Baseline Cross Long (BL): Universal Oscillator crossed-up over zero-line but Baseline is still in downtrend, then Baseline turns to uptrend within XX bars
Post Baseline Cross Short (BS): Universal Oscillator crossed-down under zero-line but Baseline is still in uptrend, then Baseline turns to downtrend within XX bars
BL Recovery Continuation Long (RL): Universal Oscillator above zero-line. Baseline already crossed down into downtrend, then baseline crosses back up to uptrend while Universal Oscillator is still above zero-line
BL Recovery Continuation Short (RS): Universal Oscillator below zero-line. Baseline already crossed up into uptrend, then baseline crosses back down to downtrend while Universal Oscillator is still below zero-line
X-bar Rule settings
This rule only applies when this indicator "Confirmation Type" set to "Confirmation 2"
Requirements
Inputs: Confirmation 1 and Solo Confirmation: GKD-V Volatility/Volume indicator; Confiration 2: GKD-C Confirmation indicator
Output: Confirmation 2 and Solo Confirmation: GKD-E Exit indicator; Confiration 1: GKD-C Confirmation indicator
Additional features will be added in future releases.
This indicator is only available to ALGX Trading VIP group members . You can see the Author's Instructions below to get more information on how to get access.
M-oscillator
Fair Value Strategy UltimateThis is a strategy using an index's (SPX, NDX, RUT) Fair Value derived from Net Liquidity.
Net Liquidity function is simply: Fed Balance Sheet - Treasury General Account - Reverse Repo Balance
Formula for calculating the fair value of and Index using Net Liquidity looks like this: net_liquidity/1000000000/scalar - subtractor
The Index Fair Value is then subtracted from the Index value which creates an oscillating diff value.
When diff is greater than the overbought threshold, Index is considered overbought and we go short/sell.
When diff is less than the oversold signal, Index is considered oversold and we cover/buy.
The net liquidity values I calculate outside of TradingView. If you'd like the strategy to work for future dates, you'll need to update the reference to my NetLiquidityLibrary , which I update daily.
Parameters:
Index: SPX, NDX, RUT
Strategy: Short Only, Long Only, Long/Short
Inverse (bool): check if using an inverse ETF to go long instead of short.
Scalar (float)
Subtractor (int)
Overbought Threshold (int)
Oversold Threshold (int)
Start After Date: When the strategy should start trading
Close Date: Day to close open trades. I just like it to get complete results rather than the strategy ending with open trades.
Optimal Parameters:
I've optimized the parameters for each index using the python backtesting library and they are as follows =>
SPX
Scalar: 1.1
Subtractor: 1425
OB Threshold: 0
OS Threshold: -175
NDX
Scalar: 0.5
Subtractor: 250
OB Threshold: 0
OS Threshold: -25
RUT
Scalar: 3.2
Subtractor: 50
OB Threshold: 25
OS Threshold: -25
Rotational Gravity OscillatorMade using elements from two Cheatcountry scripts:
Includes a Bollinger Band for bounds that forms a trend follower based on the 0 point.
Includes CheatCountry color code signals, different color scheme. Bright colors are strong signals, ark are weak, green bull, red bear, the basics.
Switches for Bollinger Band color codes, which can actually be useful signals.
This oscillator can be used for divergences, trends, signal strength, confirmation, volatility readings, you name it.
It is a comparative oscillator, that compares adaptively smoothed, weighted modified Change of Gravity oscillators between 2 symbols and multiple lengths to determine directional momentum as one asset compares to another.
The default uses the Crypto TOTAL market cap to help trade cryptocurrencies. You will notice that BTC will give sell signals in uptrends at times. That is because it is being compared to an index of the total Crypto market cap, and since alt-coins move faster, BTC will lag behind this index.
Give CheatCountry a follow, hes one of the MVPs of Tradingview Pinescripters, constantly giving us access to novel new concepts as they are published by professionals.
TwV Market Signals ScreenerMarket Signals Screener
This indicator allows traders to have a view of multiple pairs and timeframes Long/Short signals and specific information of parameters, based on the TwV Market Signals also developed by me and that can be found on my profile.
Full Screener Panel
This panel allows the trader to monitor multiple pairs at a single screen, giving an immediate vision of possible entries and exits (Long/Short). Moreover, allows traders to have handy all information of the TwV Market Signals Indicator that might be analyzed further for each pair. It has the following characteristics:
It can be placed anywhere on the screen through the main menu of the indicator.
It can be combined with the same indicator multiple times, as per screener is limited to show 40 pairs, you can select the number of panels being added to adjust position one next to each other.
It strengthens colors when a pair has changed its signals in order to the trader to know immediate changes and then do the follow up
The screener shows the pairs, which can be changed within the menus.
The screener shows the Long and Short Signals in its las column but previously, it shows the most critical parameters in the strategies (Market Signals Indicator) that determined the possible Long/Short position. Therefore, the EMAs, STOCH, SQZ, ADX, and TTM, are summarized in the screener for each pair.
For analyzing a specific pair, refer to the the Twv Market Signals Indicator, which is other indicator that might be on my TradingView Profile and that was used as base for the screener.
How to use this indicator and work with the strategies of the TwV Market Signals Indicator
The use of EMAs 10,20 and 50 draw the medium to long term trends, therefore avoiding signals against the trend. Furthermore, the EMAs will advise possible change in trends, especially considering the 10 and 20 cross, considering that crossing the 10,20 and 50, might confirm the change in med to long term trend change of the price. This is completely visual in the chart as it tints green for positive trend and yellow to red for negative trend.
The 200 SMA is included as it also gives better confirmation to the trend, the basics tell that when the EMAs mentioned above are below the 200 SMA then the likelihood for entries in long positions are not the best and vice versa for short.
Therefore, the trader shall filter Long and Short Signals accordingly as this EMAs are not used to send Long and Short signals considering that they confirm the trend in a slow pace and not reactively to the price volatility.
There are two strategies built-in within the indicator:
Strategy 1 – Longer time trades and high volatility handling
The Long and Short Signals are based on 14 and EMAs (by default). This two Mas are used to send signals based on their crossovers as they are way more reactive to the price movement.
Trader shall consider that EMAs are used for higher timeframes, therefore the indicator has the possibility to adjust the EMAs and use SMAs or WMAs instead for one or the two parameters (14 and 21).
WMAs react faster to the price volatility so the trader shall adjust this according to the timeframe being used. (Lower timeframes suggested).
This strategy is used for trades that might keep running for longer periods of times.
For reference on what the SMAs, EMAs and WMAs are, please see below sections in the description.
Strategy 2 - Shorter time trades and unhandled high volatility
The Long and Short Signals are bases on HMA. HMAs (Hull Moving Averages) track the price movement and volatility way faster that SMAs, EMAs and WMAs, therefore as the HMA follow the price quicker, it is intended for short time trades even in higher timeframes.
Scalping is not suggested using this strategy as HMA do not handle high volatility even on higher timeframes.
One of the biggest differences from the first strategy is that there is no more than a single HMA length to work with, which is 24 as default.
HMAs calculation is different to other MAs, therefore combining various HMAs lengths looking for crossovers become trend identification a lot less precise. HMAs are not intended to be used with different length crossovers.
Exit points = The use of Stochastic and VRVP
Stochastic RSI
It is well known that when Stochastic RSI resets when overbought or oversold therefore traders have within a summary box the possibility to check whether the K & D lines in the Stochastic RSI hace crossed over bullish or bearish.
Although the crossover is not mandatory for a change trend, the crossover might be used by the trader to exit a position considering that the price might move on the opposite direction.
Traders shall look at the summary box, where bullish and bearish crossovers are shown, so they evaluate their position exit.
Visible Range Volume Profile
The use of the VRVP is to find support and resistance on the price movements. Although high and lows are used as possible supports and resistances, VRVP shows an area of confluence on the order book, where volume of positions are accumulated and that might act as support or resistance depending on the price direction.
Traders can visually activate the VRVP to see the Point of Control (POC) directly on the chart as a line (similar as how a support or resistance would be drawn). Moreover, traders have the ability to see within the summary box, whether to see if the price is above or below the POC, so they clearly know if it is acting as support or resistance.
Price Direction
Trade the market trend is well known to be used to identify possible price direction. It is important not to confuse the longer time trend drawn by the EMAs with the TTM Trend bar color. The TTM trend colors bars according to the price direction, helping traders not to confuse when a red bar appears on an uptrend or green bars on a down trend.
This coloring helps traders not to exit trades based on bar coloring, which might psychologically affect when scalping or short-term trading specially.
Originally, the TTM trend is used considering the ADX in and indicator called TTM Squeeze, where the strength of the movement is measured, therefore although candle colors help with the price direction, ADX provides the trader the ability to see whether the direction is losing momentum and then catch the best possible exit before the direction change.
Terminology basics
Trend indicators
Exponential Moving Average (EMAs): The base indicator is composed of moving averages of 10, 20 and 55 exponential periods, to determine a possible bullish or bearish trend (EMA Crossing)
Simple Moving Average (SMA): The base indicator is composed of a moving average of 200 simple periods, which in conjunction with the EMAs can lead to estimate potential upward or downwards moves, as well as possible resistances. (SMA Positioning)
Weighted moving average (WMA): It is a technical indicator that traders use to generate trade direction and make a long or short position. It assigns greater weighting to recent data points and less weighting on past data points. (WMA Crossing)
Strength and S/R indicators
VPVR (Volume Profile Visible Range): It allows to determine the Point of Control (POC) which is the node with the highest volume profile. This can be used as an important retest point or to calculate potential support and resistance. The POC level is represented with a red dotted line in the graph.
The VPVR is a simplified version of the “TwV Multi-timeframe Dynamic VRVP” that you can find for free use in my profile. This version calculates the main’s timeframe POC and also has the possibility to be fixed range if the trader enables it from the menu. (Dynamic range by default).
ADX (Average Directional Index): The ADX helps the indicator to estimate the strength of the movement, always considering the DI+ and DI- to not go against the trend strength. This is represented as summary text in a table.
/
Exit indicator
Stochastic RSI: It is an indicator used in technical analysis that ranges between zero and a hundred and is created by applying the Stochastic oscillator formula to a set of relative strength index (RSI) values rather than to standard price data. Using RSI values within the Stochastic formula gives traders an idea of whether the current RSI value is overbought or oversold (Exit zones)
/
How to use Summary
1. Receive the Long or Short Signals using strategy 1 or 2, depending on the selected in the main menu of the indicator.
2. Evaluate the trend based on the 10,20, 50 and 200 MAs. Filter the Long and Short signals accordingly.
3. Monitor constantly the TTM Trend and the ADX for the direction and strength of the position entered and review if the momentum is being lost, considering step 4 or other possible reasons that might lead to exiting the position.
4. Once entered to a position evaluate constantly the Stochastic RSI bearish or bullish crossover or POC value on screen or summary box to exit the position.
5. Consider that for doing the evaluation individually, you shall use the TwV Market Signals.
MATHR3E Range Conquest Index█ OVERVIEW
MATHR3E Range Conquest Index (RCI) is an arithmetic oscillator for trend analysis.
█ CONCEPTS
Disclaimer
MATHR3E RCI indicator is intended for advanced traders and may fit your profile, whether you are a day trader or a long-term investor.
It was originally developed by a renowned market analyst and documented in numerous books. Among them is the author Jason Perl.
It is recommended to have read the trading techniques mentioned in the books covering this indicator beforehand.
Introduction
MATHR3E RCI can serve several purposes:
• By helping to confirm price reversals.
• By giving low risk potential entry indication
• By outlining the emergence of a price trend
How to use
MATHR3E RCI is a dual oscillator.
Each oscillator compares the price evolution of a given day with that of two trading days earlier.
They differ in the amount of trading bars taken into account when calculating the RCI.
Oscillator values fluctuate between overbought and oversold levels
The time spent above or below these levels is compared to the Duration Analysis parameter (in bars).
When it is greater than this Duration, an excessive move is underway which usually require the oscillator to return to the neutral zone.
Strengths or weaknesses are then detected when the oscillator returns to its zone of excess by marking a mild reading, i.e. spending less time than the duration analysis parameter.
█ FEATURES & BENEFITS
Versatile
The indicator is designed to work with other indicators by the same author, including the identification of exhaustion points.
This indicator can be applied to any market or time frame.
Price Oscillator Qualifier
Identify low-risk buy or sell opportunities with
• Qualified upside breakouts
• Qualified downside breakouts
Fully Customizable
Multiples settings available to configure
• Oscillator Periods
• Duration Analysis
• Overbought and oversold reading
Alerts
Get notified on:
• Weakness signal
• Strength signal
• POQ signals
True Range Adjusted Exponential Momentum [CC]-[burgered]Original Script by CheatCountry, used with permission (chill guy):
I have made a sort of conversion of CheatCountries implementation of the True Range Adjusted Exponential Moving Average into a momentum oscillator.
Being True Range based, it the bounds vary based on the chart.
Includes a Bollinger Band for bounds that forms a trend follower based on the 0 point.
Includes CheatCountry color code signals, different color scheme. Bright colors are strong signals, ark are weak, green bull, red bear, the basics.
This oscillator can be used for divergences, trends, signal strength, confirmation, volatility readings, you name it.
Works well on smoothed/filtered signals as well.
Give CheatCountry a follow, hes one of the MVPs of Tradingview Pinescripters, constantly giving us access to novel new concepts as they are published by professionals.
Dynamic Linear Regression Oscillator | AdulariDescription:
This dynamic linear regression oscillator visualizes the general price trend of specific ranges in the chart based on the linear regression calculation, it automatically determines these ranges with pivot detection. The central line of the indicator is the baseline of the linear regression itself. This is a good tool to use to determine when a price is unusually far away from its baseline. The lines above or below it are overbought and oversold zones. These zones are based on the high or low of the range, in combination with the set multipliers.
The overbought and oversold lines indicate support and resistance; when the prices stay outside these levels for a significant period of time, a reversal can be expected soon. When the oscillator's value crosses above the signal or smoothed line the trend may become bullish. When it crosses below, the trend may become bearish.
This indicator is quite special, as it first determines price ranges using pivot detection. It then uses the middle of the range to determine how far the current price is from the baseline. This value is then rescaled compared to a set amount of bars back, putting it into relevant proportions with the current price action.
How do I use it?
Never use this indicator as standalone trading signal, it should be used as confluence.
When the value crosses above the signal this indicates the current bearish trend is getting weak and may reverse upwards.
When the value crosses below the signal this indicates the current bullish trend is getting weak and may reverse downwards.
When the value is above the middle line this shows the bullish trend is strong.
When the value is below the middle line this shows the bearish trend is strong.
When the value crosses above the upper line this indicates the trend may reverse downwards.
When the value crosses below the lower line this indicates the trend may reverse upwards.
Features:
Oscillator value indicating how far the price has currently deviated from the middle of the range. Proportioned to data from a set amount of bars ago.
Signal value to indicate whether or not the price is abnormally far from the middle of the range.
Horizontal lines such as oversold, overbought and middle lines, indicating possible reversal zones.
Automatic range detection using pivots.
Built-in rescaling functionality to ensure values are proportionate with the latest data.
How does it work? (simplified)
1 — Calculate the middle of the range.
2 — Define whether the current price is above the middle of the range or below.
3 — If above the middle of the range, calculate the difference of the current high and the middle line. If below, calculate the difference of the current low and the middle line.
4 — Smooth the value using a set moving average type.
5 — Rescale the value to proportionate it with the latest data.
PT Levels SessionsVersion 1.0 - PT Levels offers visual for Daily, Weekly, Monthly, Quarterly Yearly range.
Some sauces:
PT Range - Daily open, Monday High, Monday Low, Weekly Open
Weekend range, Wednesday range, CME Open, CME Close, NY Range, London Range & Asia Range
Strategy:
Price tends to gravitate between the Daily level when playing intraday scalps. If playing the weekly, you want to be above the weekly pivot to punt longs & under the weekly level to punt shorts. More likely than not, when the price hits a monthly or yearly level, we get a noticeable reaction off it.
These levels will give you an idea of where the price can react if reached. Consider them pivotal areas. We included a toggle that will help you go between the candle's High/Low to the candle's Open/Close. Both features are unique when scalping & swinging. The Level Sessions will paint a beautiful visual for your day-to-day trading & the Open/Close will help you determine where price maxed opened & closed for that specified timeframe.
If analyzing the crypto markets - Try to pay attention to price action on the weekend. We included a weekend range to offer a visual of the HIGH/LOW during the weekend when the volume is low & price is easier swayed.
Feel free to contact us for any suggestions. Check our indicator suite for the rest of our developed tools.
PSAR BBPT ZLSMA BTC 1minLong entry:
PSAR gives buy signal
BBPT prints green histogram
ZLSMA is below the price
ZLSMA has uptrend
SL is smaller than the max SL
Optional Sessions and EMA filters
Short entry
PSAR gives sell signal
BBPT prints red histogram
ZLSMA is above the price
ZLSMA has downtrend
SL is smaller than the max SL
Optional Sessions and EMA filters
SL:
Placed below ZLSMA + offset on long
Placed above ZLSMA + offset on short
TP1:
1x the SL by default
Takes no profit by default, 50% is also a good setting
TP2:
2x the SL by default
Take out all remaining position size.
If price reaches TP1, the SL is set to the entry price.
RAINBOW_13thHi Dears!
hereby, I present you one of my indicators which is a kind of artistic indicator.
It calculates different ranks of functions and based on them suggests a buy or sell order which is depicted on right-side separately.
Inputs:
(For calculating)
+Source:
+Length: Number of previous bars in calculation
+Topology:
++EMA
++RMA
++SMA
++RSI
+OVER BOUGHT RSI: Define your boundary for overbought in RSI-TOPOLOGY.
+OVER SOLD RSI: Define your boundary for oversold in RSI-TOPOLOGY.
(Visual)
+Transparency: affect colors of rainbow!
Wish you good deals!
BY USING PLZ DO NOT FORGET TO BOOST IT!
Shakib.
Probability Oscillator (Expo)█ Overview
The Probability Oscillator uses a Bayesian approach to measure the probability of a price movement and trend continuation. This approach considers the prior probability of a price movement and the current market conditions to identify trends, sentiment, momentum, and retracements.
█ How does the indicator work?
The Probability Oscillator is based on the idea of Bayesian probability , which is a way of using existing data to make predictions about the likelihood of an event occurring. This indicator uses the Bayesian probability model to analyze past trading activity and calculate the probability of a trend continuing. This function also considers the prior probability of a price movement and the current market conditions to analyze the likelihood of a retracement.
█ How to use
Investors can use this indicator to measure the market sentiment and the strength/direction of a trend. It does also give insights into momentum moves and retracements.
█ Indicator Customization
The user can change the trend approaches and input source as well as adjust the overbought and oversold areas to make the calculation more sensitive to retracements.
The user can change the sensitivity of the momentum function to adjust it only to identify the most significant momentum moves.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
RSI Pull-BackA pull-back occurs whenever the price or the value of an indicator breaks a line and comes back to test it before continuing in the prevailing trend.
The RSI has oversold and overbought levels such as 20 and 80 and whenever the market breaks them returns to normality, we can await a pull-back to them before the reversal continues.
This indicator shows the following signals:
* A bullish signal is generated whenever the RSI surpasses the chosen oversold level then directly shapes a pull-back to it without breaking it again.
* A bearish signal is generated whenever the RSI breaks the chosen overbought level then directly shapes a pull-back to it without surpassing it again.
TOTAL:(RSI+TSI)TOTAL:(RSI+TSI)
This indicator collects instant data of RSI and TSI oscillators. RSI moves between (0) and (100) values as a moving line, while TSI moves between (-100) and (+100) values as two moving lines.
The top value of the sum of these values is graphically;
It takes the total value (+300) from RSI (+100), TSI (+100) and (+100).
The lowest value of the sum of these values is graphically;
It takes the value (-200) from the RSI (0), (-100) and (-100) from the TSI.
In case this indicator approaches (+300) graphically; It can be seen that price candlesticks mostly move upwards. This may not always give accurate results. Past incompatibilities can affect this situation.
In case this indicator approaches (-200) graphically; It can be seen that price candlesticks mostly move downwards. This may not always give accurate results. Past incompatibilities can affect this situation.
The graphical movements and numerical values created by this indicator do not give precise results for price candles.
RSI Accumulation/Distribution [M]Hello everyone,
After my long tests, I observed that the rate of change of direction of the price was high after the periods when the RSI spent a long time outside the band. As a result of my observations, I prepared this indicator.
This indicator shows you the accumulation and distribution areas that occur outside the rsi band.
There are 3 different levels available.
Level 1 = 5 Bars
Level 2 = 7 Bars
Level 3 = 9 Bars
For example, if the RSI spends more than 9 bars below the 30 level or above the 70 level, it will paint that area red. Levels can be changed from the indicator settings. The rsi is smoothed with simple moving average to reduce fake signals.
Using the RSI A/D indicator with different indicators or patterns will increase your success rate.
Examples:
On Balance Volume Scaled - OBV ScaledThe main idea of this oscillator is to place the OBV oscillator and its oscillation around the range of 0 and around -50 to +50 and for this scaling of the "On Balance Volume" oscillator, I have used Min-max normalization.
Since this oscillator does not have a specific minimum and maximum, just setting the maximum and minimum does not seem the best thing to do. As in this case, we will constantly observe sudden changes and we will have problems such as volatility. On the one hand, we will constantly deal with sudden changes and problems such as volatility. Also on the other hand, the continuous collisions of the high/low(+50 & -50) and index and returning from that is another thing that we are going to deal with.
Therefore, to solve these problems and create more flexible maximum and minimum ranges, another similar method has been used. Choosing the maximum of our normalization to the size of the moving average of 100 candles of the index maximum and choosing the minimum of normalization to the size of the moving average of 100 candles of the minimums of the OBV index, and then normalizing the OBV index with the Min-max method with those ranges, is the recommended method ,which has been used to eliminate problems. In this case, we will not have any problem hitting 50 and returning or hitting -50 and returning. Also, our scaled OBV index will have the ability to touch and cross 50 and -50 and can fluctuate without problems.
[UPRIGHT Trading] Aroon Exit OscillatorHello Traders -
I'm releasing this as a friend was talking about how he used to use it as an exit indicator. The Aroon Oscillator isn't the most accurate for entries, but we find its strength in its exits.
The Aroon Oscillator was developed by legendary technical analyst, T. Chande , in 1995 as part of his "Aroon Indicator system." Chande's intention was for his system to determine trend changes. The name "Aroon" comes from the Sanskrit language and roughly translates to "Dawn's early light."
Typically, Aroon uses 25 periods; looking for the high and low 25 periods back, to show its "Aroon Up" and "Aroon Down" lines. The Aroon lines go from 0 to 100, with 100 showing a strong trend and 0 showing a weak trend.
The Aroon Oscillator is like the DMI (Directional Movement Index) created by W. Wilder, in that it, too, uses up and down directional lines; however, Aroon is looking at periods back, while DMI looks at Price difference.
I do not recommend using this indicator alone, it will give late or false signals. Only really meant as a complimentary indicator.
Included:
—A clean interface.
—Zones for easier identification of the indicator's lines movements.
—Exit Signals - All signals are off by default, but these use around the 80 level for and an exit.
—Exit Short and Exit Long alerts.
—Added Option of Early Exits for Both Long and Short.
—Attempted to Add Buy/Sell Signals
—Default is without signals.
Cheers,
Mike
(UPRIGHT Trading)
HL-D Close Fraction Oscillator | AdulariDescription:
This indicator calculates the difference between price high's and low's, and fractions it by the close price. If it calculates the difference between a high and low or low and high is defined by whether the current close is higher than the previous close. It is then also rescaled to ensure the value is always appropriate compared to the last set amount of bars.
This indicator can be used to determine whether a market is trending or ranging, and if so in which direction it is trending.
How do I use it?
Never use this indicator as standalone trading signal, it should be used as confluence.
When the value is above the middle line this shows the bullish trend is strong.
When the value is below the middle line this shows the bearish trend is strong.
When the value crosses above the upper line this indicates the trend may reverse downwards.
When the value crosses below the lower line this indicates the trend may reverse upwards.
When the value crosses above the signal this indicates the current bearish trend is getting weak and may reverse upwards.
When the value crosses below the signal this indicates the current bullish trend is getting weak and may reverse downwards.
Features:
Oscillator value indicating the difference between highs and lows fractioned by the close price.
Signal indicating a clear trend and base line value.
Horizontal lines such as oversold, overbought and middle lines, indicating possible interest zones.
How does it work?
1 — Define trend by checking if current close is above or below previous close.
2 — If the current close is above the previous close, calculate the oscillator's value using this formula:
(high - low) / close
2 — If the current close is below the previous close, calculate the oscillator's value using this formula:
(low - high) / close
3 — Smooth the original value using a specified moving average.
4 — Rescale the value using this formula:
newMin + (newMax - newMin) * (value - oldMin) / math.max(oldMax - oldMin, 10e-10)
5 — Calculate signal value by applying smoothing to the oscillator's value.
BullBarbies MoRoll v1.0If you like the TTM Squeeze histogram, this may be your favorite new indicator.
5 customizable timeframe MACD-based oscillators are programmed to give you a heads-up when momentum is rolling over and changing to a new direction by using lower timeframes as a "heads-up" of a potential change. Designed to be used on the 5 minute chart, but can be adapted for higher timeframes as well. Not recommended for charts under 5 minutes. Settings default to those recommended for a 5 in chart: 5, 4, 3, 2, & 1 min oscillators. If using on a higher timeframe, consider starting with the current timeframe and stepping each down from there. Lower timeframe oscillators will begin to roll first. Most multi-timeframe indicators keep watch for conditions on higher timeframes, this one is designed to give you a leg-up in seeing what's happening underneath the price action and squeezes by taking a peak at lower timeframes. Designed to be faster to help you make intra-day day trading decisions.
When all 5 indicators are in color agreement (all red or all green), this indicates strong directional momentum. To catch a shift in momentum, watch for colors to begin shifting red to green or green to red. When you can catch these shifts at support and resistance, it can make for a higher probability trade than trading just support and resistance. The more oscillators in agreement, the more confidence you can have that you are on the right side of the trade.
Pay attention to relative distance from the zero line as well. A trend day will have oscillators spending most of their time to one side or the other of the zero line. Oscillators change colors at the zero line for visual aid. Extremely high or low readings can indicate oversold or overbought conditions.
When the lines are a tangled mess of red and green, this indicates choppy conditions when many daytraders like to avoid.
Works well paired with the TTM squeeze for a more detailed look at your current timeframe.
This indicator has several features:
* 5 Timeframe oscillators that display as lines
* A zero line to show relative distance from the midpoint
* 4 color settings: rising above/below zero; falling above/below zero
I built this indicator because I love using the TTM Squeeze histogram on multiple timeframes to aid in predicting the loss and gain of momentum, but do not want to dedicate the monitor space to 5 charts just for the squeeze histogram. Plotting the histogram as lines allows the display of multiple timeframes. It has become standard on my intraday trading charts.
Cuban's Pair Trading IndexThe purpose of this indicator is to visually simplify the relationship between two assets when searching for pair trades or higher beta opportunities.
With highly correlated pairs, it can be a blessing or a curse during volatility when you're somehow stuck in the only lower beta pairs, or maybe you're market neutral and the wrong leg starts nuking.
This indicator was built as a visual way to track pair relationships.
Fundamentally, this script does the following:
Plots the relative performance of the relationship between two assets across multiple time horizons
Uses a consistent measurement of historical performance, regardless of asset -- currently standard deviations, may add log difference in the future
Plots a custom Average Directional Index on the current chart ticker for current asset contextual momentum
Plots the average 'rotation' of both the ADX and Pair Delta independently, over n numbers of rotations -- able to be specified using the 'Rotation Lookback' variable
If you've never pair traded crypto before (i.e. long $DYDX, short $ETH), you might not be aware that most highly correlated alt asset returns tend to oscillate on a low timeframe rolling basis around the performance of the majors -- and more recently, predominantly $ETH. With this in mind and using this oscillator, we can track that relationship.
Users are given the ability to adjust the following:
Comparison Asset
Fast and Slow Delta Lookbacks
Whether to wait for one bar delay during security calls
Rotation Lookback
Rotation Threshold for Pair Delta and ADX independently
ADX Lookback
Whether to utilize the ADX on the current chart ticker or also net that off against the ADX of the comparison asset
TO DO:
Aesthetic update to Pair Delta plot
Permanent fix for security call forced delay
Generalized Smooth StepHello, folks. Sorry for not posting anything for a long time, just busy with my university studies for the moment.
Quick script for today — Smooth Step.
You can search for it in Wikipedia, but saying shortly and informatively, this is just an advanced type of oscillator, used as momentum indicator.
In the codes across the Internet everybody uses the 3rd order equation, BUT I found it kinda boring to use indicator this simple, so I made an option to choose the order of the equation in the settings — parameter "Order of the equation". This why it is called generalized smooth step, as it makes possible to use equation of virtually any order.
It is limited to 18 because very strange behaviour that you get after passing 18th order (it jsut becomes not tradeable any longer).
As I've mentioned above, it is an advanced version of classical oscillator, used as momentum indicator .
How to use it?
If smooth step is above 50, then the price momentum is bullish;
If smooth step is below 50, then the price momentum is bearish.
As simple as it is, it becomes useful enough on the higher timeframes (>=1H), so feel free to play with it and find optimal settings for yourself.
Hints
Try perform different smoothing and leading methods (developed by Ehler) to get better results;
You can use smooth step as confirmation/filter for trend-following trades.
Hope you will find it valueable.
Take your profits!
- Tarasenko Fyodor
RU:
Привет, ребята. Извините, что долго ничего не выкладывал, просто сейчас занят учебой в университете.
Быстрый скрипт на сегодня — Smooth Step.
Вы можете поискать его теоретическое обоснование в Википедии, но если говорить кратко и информативно, то это совершенствованный тип классического осциллятора, используемый в качестве моментум-индикатора .
В кодах в интернете все используют уравнение 3-го порядка, НО Мне было скучно пользоваться таким простым индикатором, поэтому я сделал возможность выбирать порядок уравнения в настройках — параметр " Порядок уравнения». Поэтому он называется обобщеннымsmooth step, так как позволяет использовать уравнение практически любого порядка.
Я ограничил порядок уравнения 18 , потому что индикатор показывает начинается очень странное поведение, когда вы делаете порядок больше 18 (индикатор просто начинается вести семя хаотично, что ли).
Как я уже упоминал выше, это усовершенствованная версия классического осциллятора, используемого в качестве моментум-индикатора .
Как им пользоваться?
Если smooth step выше 50, то импульс цены бычий;
Если smooth steз\p ниже 50, то импульс цены медвежий.
Хоть это и очень простой индикатор, он может оказаться достаточно полезным на старших таймфреймах (>=1H), так что не стесняйтесь играть с ним и находить оптимальные настройки для себя.
Советы
Попробуйте использовать различные методы сглаживания и лидирования (разработан Джоном Элером (John Ehler)), чтобы получить лучшие результаты;
Вы можете использовать smooth step в качестве подтверждения/фильтра для сделок, следующих за трендом.
Надеюсь, этот скрипт будет вам полезен.
Получите прибыль!
- Тарасенко Фёдор
(mab) Volume IndexThis script implements the (mab) Volume Index (MVI) which is a volume momentum oscillator. The formula is similar to the formula of RSI but uses volume instead of price. The price is calculated as the average of open, high, low and close prices and is used to determine if the volume is counted as up-volume or down-volume.
I created MVI to replace OBV on my charts, because OBV is not as simple to read and find e.g. divergences. MVI is much easier to read because it is an oscillator with a minimum value of 0 and a maximum value of 100. It's easy to find divergences too. I like to display MVI over the volume bars. However, you can display it in a separate pain as well.
Multiple Divergences (UDTs - objects) - Educational█ OVERVIEW
This script highlights the usage of User-defined Types (UDTs) and objects , and bullish /bearish divergences.
Pivotpoints are used to find divergences, the result of this script will be different against other public multiple divergences scripts.
FOR Pine Script™ CODERS
Besides the information found in CONCEPTS , the comments in the script will, hopefully ), guide you through my thought process.
█ CONCEPTS
The main principle of this script are bullish /bearish divergences, this with 3 different oscillators ( RSI , CCI , MFI )
If you want to know more about divergences, have a look at some Education and Research idea's .
On every bar, an object HLs is made, containing bar_index , high , low , and 2 bool variables ( isPh , isPl ).
On every bar, an object Osc is made, containing bar_index , o (oscillator value), and 2 bool variables ( isPh , isPl ).
If a pivothigh (ph ) is found, isPh will be true on that bar, false otherwise.
If a pivotlow (pl) is found, isPl will be true on that bar, false otherwise.
These objects are added to an array, with limited size.
If a ph is found, the script draws a testline from that ph to every previous ph , found in the array.
Then every high in between these 2 points are checked if they don't pierce the testline .
If the testline isn't broken, the Reg_Div_Piv() function will give 4 values, 1 check (not pierced) variable and the 4 points of the line.
The testline is deleted.
Once a positive check is found, the script will perform the same, but now with the Osc objects.
The script will ONLY compare Osc pivots which are maximum 1 bar away from the high/low pivot .
If everything is confirmed, a line is drawn, visible on the chart.
█ REMARKS
A label will be visible with a number, this is the amount of divergences found with the according oscillator .
EXAMPLE
Div with RSI and CCI -> 2
Div with MFI alone -> 1
Div with RSI and CCI and MFI -> 3
...
Divergences should only be used when confirmed, this is after bar close .
As an aid, lines that are not confirmed will be dotted , if confirmed, they will be solid .
The divergence check start when a ph/pl is found, after which oscillator pivot are checked.
Optionally the same can be done, when a oscillator pivot is found and then check the ph/pl ,
this should give more results, although it can make the script slower.
█ SETTINGS
Left - amount of bars at the left which needs to be lower/higher
Right - amount of bars at the right which needs to be lower/higher
Max values - maximum values in array of objects
3 oscillator settings with
• ON/OFF
• Length
• color bullish divergence
• color bearish divergence
Have FUN !
(mab) Money Flow - MMFThis indicator implements the (mab) Money Flow (MMF). The MMF is calculated using a formula inspired by RSI. In contrast to RSI, MMF uses the average of open, high, low and close as price source. This price is then multiplied with the volume as input for the RSI like formula to calculate the value.
Features:
- Volume weighted price momentum oscillator
- Uses average of open, close, high and low as price component to make the signal less choppy while still as fast
- EMA on MMF
- Highlighting when EMA is in oversold or overbought area
- Alarms
Note that the MMF formula is different than the formula used for other money flow indices like MFI or CMF.
Why do we need another money flow indicator if there are already many established ones? Well I used and tested many money flow indicators including MFI and CMF among others. However, none of them showed the results I was looking for. MFI for example uses a simpler formula for the calculation, which results in a different reading that isn't showing divergences as clearly as I would like. CMF on the other hand has no defined maximum or minimum (similar to MACD) so that it's difficult to determine overbought and oversold values. The MMF is an oscillator with a minimum value of 0 and a maximum value of 100 like RSI. The usage of the average of open, close, high and low as price element makes it less choppy compared to RSI while it still reacts as fast to movements.