INVITE-ONLY SCRIPT

GKD-C Adaptive-Lookback Variety RSI [Loxx]

Updated
Giga Kaleidoscope GKD-C Adaptive-Lookback Variety RSI is a Confirmation module included in Loxx's "Giga Kaleidoscope Modularized Trading System".

█ GKD-C Adaptive-Lookback Variety RSI

What is the Adaptive Lookback Period?
The adaptive lookback period is a technique used in technical analysis to adjust the period of an indicator based on changes in market conditions. This technique is particularly useful in volatile or rapidly changing markets where a fixed period may not be optimal for detecting trends or signals.

The concept of the adaptive lookback period is relatively simple. By adjusting the lookback period based on changes in market conditions, traders can more accurately identify trends and signals. This can help traders to enter and exit trades at the right time and improve the profitability of their trading strategies.

The adaptive lookback period works by identifying potential swing points in the market. Once these points are identified, the lookback period is calculated based on the number of swings and a speed parameter. The swing count parameter determines the number of swings that must occur before the lookback period is adjusted. The speed parameter controls the rate at which the lookback period is adjusted, with higher values indicating a more rapid adjustment.

The adaptive lookback period can be applied to a wide range of technical indicators, including moving averages, oscillators, and trendlines. By adjusting the period of these indicators based on changes in market conditions, traders can reduce the impact of noise and false signals, leading to more profitable trades.

In summary, the adaptive lookback period is a powerful technique for traders and analysts looking to optimize their technical indicators. By adjusting the period based on changes in market conditions, traders can more accurately identify trends and signals, leading to more profitable trades. While there are various ways to implement the adaptive lookback period, the basic concept remains the same, and traders can adapt and customize the technique to suit their individual needs and trading styles.

This indicator includes 10 types of RSI
1. Regular RSI
2. Slow RSI
3. Ehlers Smoothed RSI
4. Cutler's RSI
5. Rapid RSI
6. Harris' RSI
7. RSI DEMA
8. RSI TEMA
9. RSI T3
10. Jurik RSX

Regular RSI
The Relative Strength Index (RSI) is a widely used technical indicator in the field of financial market analysis. Developed by J. Welles Wilder Jr. in 1978, the RSI is a momentum oscillator that measures the speed and change of price movements. It helps traders identify potential trend reversals, overbought, and oversold conditions in a market.

The RSI is calculated based on the average gains and losses of an asset over a specified period, typically 14 days. The formula for calculating the RSI is as follows:

RSI = 100 - (100 / (1 + RS))

Where:

RS (Relative Strength) = Average gain over the specified period / Average loss over the specified period

The RSI ranges from 0 to 100, with values above 70 generally considered overbought (potentially indicating that the asset is overvalued and may experience a price decline) and values below 30 considered oversold (potentially indicating that the asset is undervalued and may experience a price increase).

Slow RSI
Slow RSI is a modified version of the Relative Strength Index (RSI) indicator that aims to provide a smoother, more consistent signal than the traditional RSI. The Slow RSI is designed to be less sensitive to sudden price movements, which can cause false signals.

To calculate Slow RSI, we first calculate the up and down values, just like in traditional RSI and Ehlers RSI. The up and down values are calculated by comparing the current price to the previous price, and then adding up the positive and negative differences.

Next, we calculate the Slow RSI value using the formula:

SlowRSI = 100 * up / (up + dn)

where "up" and "dn" are the total positive and negative differences, respectively.

This formula is similar to the one used in traditional RSI, but the dynamic lookback period based on the average of the up and down values is used to smooth out the signal.

Finally, we apply smoothing to the Slow RSI value by taking an exponential moving average (EMA) of the Slow RSI values over a specified period. This EMA helps to reduce the impact of sudden price movements and provide a smoother, more consistent signal over time.

Ehler's Smoothed RSI
Ehlers RSI is a modified version of the Relative Strength Index (RSI) indicator created by John Ehlers, a well-known technical analyst and author. The purpose of Ehlers RSI is to reduce lag and improve the responsiveness of the traditional RSI indicator.

To calculate Ehlers RSI, we first smooth the prices by taking a weighted average of the current price and the two previous prices. This smoothing helps to reduce noise in the data and produce a more accurate signal.

Next, we calculate the up and down values differently than in traditional RSI. In traditional RSI, the up and down values are based on the difference between the current price and the previous price. In Ehlers RSI, the up and down values are based on the difference between the current price and the price two bars ago. This approach helps to reduce lag and produce a more responsive indicator.

Finally, we calculate Ehlers RSI using the formula:

EhlersRSI = 50 * (up - down) / (up + down) + 50

The result is a more timely signal that can help traders identify potential trends and reversals in the market. However, as with any technical indicator, Ehlers RSI should be used in conjunction with other analysis tools and should not be relied on as the sole basis for trading decisions.

Cutler's RSI
Cutler's RSI (Relative Strength Index) is a variation of the traditional RSI, a popular technical analysis indicator used to measure the speed and change of price movements. The main difference between Cutler's RSI and the traditional RSI is the calculation method used to smooth the data. While the traditional RSI uses an exponential moving average (EMA) to smooth the data, Cutler's RSI uses a simple moving average (SMA).

Here's the formula for Cutler's RSI:

1. Calculate the price change: Price Change = Current Price - Previous Price

2. Calculate the average gain and average loss over a specified period (usually 14 days):
If Price Change > 0, add it to the total gains.
If Price Change < 0, add the absolute value to the total losses.

3. Calculate the average gain and average loss by dividing the totals by the specified period: Average Gain = Total Gains / Period, Average Loss = Total Losses / Period

4. Calculate the Relative Strength (RS): RS = Average Gain / Average Loss

5. Calculate Cutler's RSI: Cutler's RSI = 100 - (100 / (1 + RS))

Cutler's RSI is not necessarily better than the regular RSI; it's just a different variation of the traditional RSI that uses a simple moving average (SMA) instead of an exponential moving average (EMA) quantifiedstrategies.com. The main advantage of Cutler's RSI is that it is not data length dependent, meaning it returns consistent results regardless of the length of the period, or the starting point within a data file quantifiedstrategies.com.

However, it's worth noting that Cutler's RSI does not necessarily outperform the traditional RSI. In fact, backtests reveal that Cutler's RSI is no improvement compared to Wilder's RSI quantifiedstrategies.com. Additionally, using an SMA instead of an EMA in Cutler's RSI may result in the loss of the "believed" advantage of weighting the most recent price action aaii.com.

Both Cutler's RSI and the traditional RSI can be used to identify overbought/oversold levels, support and resistance, spot divergences for possible reversals, and confirm the signals from other indicators investopedia.com. Ultimately, the choice between Cutler's RSI and the traditional RSI depends on personal preference and the specific trading strategy being employed.

Rapid RSI
Rapid RSI is a technical analysis indicator that is a modified version of the Relative Strength Index (RSI). It was developed by Andrew Cardwell and was first introduced in the October 2006 issue of Technical Analysis of Stocks & Commodities magazine.

The Rapid RSI improves upon the regular RSI by modifying the way the average gains and losses are calculated. Here's a general breakdown of the Rapid RSI calculation:

1. Calculate the upward change (when the price has increased) and the downward change (when the price has decreased) for each period.
2. Calculate the simple moving average (SMA) of the upward changes and the SMA of the downward changes over the specified period.
3. Divide the SMA of the upward changes by the SMA of the downward changes to get the relative strength (RS).
4. Calculate the Rapid RSI by transforming the relative strength (RS) into a value ranging from 0 to 100.

By using the simple moving average (SMA) instead of the slow exponential moving average (RMA) as in the regular RSI, the Rapid RSI tends to be more responsive to recent price changes. This can help traders identify overbought and oversold conditions more quickly, potentially leading to earlier entry and exit points. However, it is important to note that a faster indicator may also produce more false signals.

Harris' RSI
Harris RSI (Relative Strength Index) is a technical indicator used in financial analysis to measure the strength or weakness of a security over time. It was developed by Larry Harris in 1986 as an alternative to the traditional RSI, which measures the price change of a security over a given period.

The Harris RSI uses a slightly different formula from the traditional RSI, but it is based on the same principles. It calculates the ratio of the average gain to the average loss over a specified period, typically 14 days. The result is then plotted on a scale of 0 to 100, with high values indicating overbought conditions and low values indicating oversold conditions.

The Harris RSI is believed to be more responsive to short-term price movements than the traditional RSI, making it useful for traders who are looking for quick trading opportunities. However, like any technical indicator, it should be used in conjunction with other forms of analysis to make informed trading decisions.

The calculation of the Harris RSI involves several steps:

1. Calculate the price change over the specified period (usually 14 days) using the following formula:
Price Change = Close Price - Prior Close Price

2. Calculate the average gain and average loss over the same period, using separate formulas for each:
Average Gain = (Sum of Gains over the Period) / Period
Average Loss = (Sum of Losses over the Period) / Period

Gains are calculated as the sum of all positive price changes over the period, while losses are calculated as the sum of all negative price changes over the period.

3. Calculate the Relative Strength (RS) as the ratio of the Average Gain to the Average Loss:
RS = Average Gain / Average Loss

4. Calculate the Harris RSI using the following formula:
Harris RSI = 100 - (100 / (1 + RS))

The resulting Harris RSI value is a number between 0 and 100, which is plotted on a chart to identify overbought or oversold conditions in the security. A value above 70 is generally considered overbought, while a value below 30 is generally considered oversold.

DEMA RSI
DEMA RSI is a variation of the Relative Strength Index (RSI) technical indicator that incorporates the Double Exponential Moving Average (DEMA) for smoothing. Like the regular RSI, the DEMA RSI is a momentum oscillator used to measure the speed and change of price movements, and it ranges from 0 to 100. Readings below 30 typically indicate oversold conditions, while readings above 70 indicate overbought conditions.

The DEMA RSI aims to improve upon the regular RSI by addressing its limitations, such as lag and false signals. By using the DEMA, a more responsive and faster RSI can be achieved. Here's a general breakdown of the DEMA RSI calculation:

1. Calculate the price change for each period, as well as the absolute value of the change.
2. Apply the DEMA smoothing technique to both the price change and its absolute value, separately. This involves calculating two sets of exponential moving averages and combining them to create a double-weighted moving average with reduced lag.
3. Divide the smoothed price change by the smoothed absolute value of the price change.
4. Transform the result into a value ranging from 0 to 100 to obtain the DEMA RSI.

The DEMA RSI is considered an improvement over the regular RSI because it provides faster and more responsive signals. This can help traders identify overbought and oversold conditions more accurately and potentially avoid false signals.

In summary, the main advantages of these RSI variations over the regular RSI are their ability to reduce noise, provide smoother lines, and be more responsive to price changes. This can lead to more accurate signals and fewer false positives in different market conditions.

TEMA RSI
TEMA RSI is a variation of the Relative Strength Index (RSI) technical indicator that incorporates the Triple Exponential Moving Average (TEMA) for smoothing. Like the regular RSI, the TEMA RSI is a momentum oscillator used to measure the speed and change of price movements, and it ranges from 0 to 100. Readings below 30 typically indicate oversold conditions, while readings above 70 indicate overbought conditions.

The TEMA RSI aims to improve upon the regular RSI by addressing its limitations, such as lag and false signals. By using the TEMA, a more responsive and faster RSI can be achieved. Here's a general breakdown of the TEMA RSI calculation:

1. Calculate the price change for each period, as well as the absolute value of the change.
2. Apply the TEMA smoothing technique to both the price change and its absolute value, separately. This involves calculating two sets of exponential moving averages and combining them to create a double-weighted moving average with reduced lag.
3. Divide the smoothed price change by the smoothed absolute value of the price change.
4. Transform the result into a value ranging from 0 to 100 to obtain the TEMA RSI.

The TEMA RSI is considered an improvement over the regular RSI because it provides faster and more responsive signals. This can help traders identify overbought and oversold conditions more accurately and potentially avoid false signals.

T3 RSI
T3 RSI is a variation of the Relative Strength Index (RSI) technical indicator that incorporates the Tilson T3 for smoothing. Like the regular RSI, the T3 RSI is a momentum oscillator used to measure the speed and change of price movements, and it ranges from 0 to 100. Readings below 30 typically indicate oversold conditions, while readings above 70 indicate overbought conditions.

The T3 RSI aims to improve upon the regular RSI by addressing its limitations, such as lag and false signals. By using the T3, a more responsive and faster RSI can be achieved. Here's a general breakdown of the T3 RSI calculation:

1. Calculate the price change for each period, as well as the absolute value of the change.
2. Apply the T3 smoothing technique to both the price change and its absolute value, separately. This involves calculating two sets of exponential moving averages and combining them to create a double-weighted moving average with reduced lag.
3. Divide the smoothed price change by the smoothed absolute value of the price change.
4. Transform the result into a value ranging from 0 to 100 to obtain the T3 RSI.

The T3 RSI is considered an improvement over the regular RSI because it provides faster and more responsive signals. This can help traders identify overbought and oversold conditions more accurately and potentially avoid false signals.

Jurik RSX
The Jurik RSX is a technical indicator developed by Mark Jurik to measure the momentum and strength of price movements in financial markets, such as stocks, commodities, and currencies. It is an advanced version of the traditional Relative Strength Index (RSI), designed to offer smoother and less lagging signals compared to the standard RSI.

The main advantage of the Jurik RSX is that it provides more accurate and timely signals for traders and analysts, thanks to its improved calculation methods that reduce noise and lag in the indicator's output. This enables better decision-making when analyzing market trends and potential trading opportunities.

What is Adaptive-Lookback Variety RSI
This indicator allows the user to select from 9 different RSI types and 33 source types. The various RSI types is enhanced by injecting an adaptive lookback period into the caculation making the RSI able to adaptive to differing market conditions.

Additional Features
This indicator allows you to select from 33 source types. They are as follows:

Close
Open
High
Low
Median
Typical
Weighted
Average
Average Median Body
Trend Biased
Trend Biased (Extreme)
HA Close
HA Open
HA High
HA Low
HA Median
HA Typical
HA Weighted
HA Average
HA Average Median Body
HA Trend Biased
HA Trend Biased (Extreme)
HAB Close
HAB Open
HAB High
HAB Low
HAB Median
HAB Typical
HAB Weighted
HAB Average
HAB Average Median Body
HAB Trend Biased
HAB Trend Biased (Extreme)

What are Heiken Ashi "better" candles?
Heiken Ashi "better" candles are a modified version of the standard Heiken Ashi candles, which are a popular charting technique used in technical analysis. Heiken Ashi candles help traders identify trends and potential reversal points by smoothing out price data and reducing market noise. The "better formula" was proposed by Sebastian Schmidt in an article published by BNP Paribas in Warrants & Zertifikate, a German magazine, in August 2004. The aim of this formula is to further improve the smoothing of the Heiken Ashi chart and enhance its effectiveness in identifying trends and reversals.

Standard Heiken Ashi candles are calculated using the following formulas:

Heiken Ashi Close = (Open + High + Low + Close) / 4
Heiken Ashi Open = (Previous Heiken Ashi Open + Previous Heiken Ashi Close) / 2
Heiken Ashi High = Max (High, Heiken Ashi Open, Heiken Ashi Close)
Heiken Ashi Low = Min (Low, Heiken Ashi Open, Heiken Ashi Close)
The "better formula" modifies the standard Heiken Ashi calculation by incorporating additional smoothing, which can help reduce noise and make it easier to identify trends and reversals. The modified formulas for Heiken Ashi "better" candles are as follows:

Better Heiken Ashi Close = (Open + High + Low + Close) / 4
Better Heiken Ashi Open = (Previous Better Heiken Ashi Open + Previous Better Heiken Ashi Close) / 2
Better Heiken Ashi High = Max (High, Better Heiken Ashi Open, Better Heiken Ashi Close)
Better Heiken Ashi Low = Min (Low, Better Heiken Ashi Open, Better Heiken Ashi Close)
Smoothing Factor = 2 / (N + 1), where N is the chosen period for smoothing
Smoothed Better Heiken Ashi Open = (Better Heiken Ashi Open * Smoothing Factor) + (Previous Smoothed Better Heiken Ashi Open * (1 - Smoothing Factor))
Smoothed Better Heiken Ashi Close = (Better Heiken Ashi Close * Smoothing Factor) + (Previous Smoothed Better Heiken Ashi Close * (1 - Smoothing Factor))
The smoothed Better Heiken Ashi Open and Close values are then used to calculate the smoothed Better Heiken Ashi High and Low values, resulting in "better" candles that provide a clearer representation of the market trend and potential reversal points.

It's important to note that, like any other technical analysis tool, Heiken Ashi "better" candles are not foolproof and should be used in conjunction with other indicators and analysis techniques to make well-informed trading decisions.

Heiken Ashi "better" candles, as mentioned previously, provide a clearer representation of market trends and potential reversal points by reducing noise and smoothing out price data. When using these candles in conjunction with other technical analysis tools and indicators, traders can gain valuable insights into market behavior and make more informed decisions.

To effectively use Heiken Ashi "better" candles in your trading strategy, consider the following tips:

Trend Identification: Heiken Ashi "better" candles can help you identify the prevailing trend in the market. When the majority of the candles are green (or another color, depending on your chart settings) and there are no or few lower wicks, it may indicate a strong uptrend. Conversely, when the majority of the candles are red (or another color) and there are no or few upper wicks, it may signal a strong downtrend.

Trend Reversals: Look for potential trend reversals when a change in the color of the candles occurs, especially when accompanied by longer wicks. For example, if a green candle with a long lower wick is followed by a red candle, it could indicate a bearish reversal. Similarly, a red candle with a long upper wick followed by a green candle may suggest a bullish reversal.

Support and Resistance: You can use Heiken Ashi "better" candles to identify potential support and resistance levels. When the candles are consistently moving in one direction and then suddenly change color with longer wicks, it could indicate the presence of a support or resistance level.

Stop-Loss and Take-Profit: Using Heiken Ashi "better" candles can help you manage risk by determining optimal stop-loss and take-profit levels. For instance, you can place your stop-loss below the low of the most recent green candle in an uptrend or above the high of the most recent red candle in a downtrend.

Confirming Signals: Heiken Ashi "better" candles should be used in conjunction with other technical indicators, such as moving averages, oscillators, or chart patterns, to confirm signals and improve the accuracy of your analysis.

In this implementation, you have the choice of AMA, KAMA, or T3 smoothing. These are as follows:

Kaufman Adaptive Moving Average (KAMA)
The Kaufman Adaptive Moving Average (KAMA) is a type of adaptive moving average used in technical analysis to smooth out price fluctuations and identify trends. The KAMA adjusts its smoothing factor based on the market's volatility, making it more responsive in volatile markets and smoother in calm markets. The KAMA is calculated using three different efficiency ratios that determine the appropriate smoothing factor for the current market conditions. These ratios are based on the noise level of the market, the speed at which the market is moving, and the length of the moving average. The KAMA is a popular choice among traders who prefer to use adaptive indicators to identify trends and potential reversals.

Adaptive Moving Average
The Adaptive Moving Average (AMA) is a type of moving average that adjusts its sensitivity to price movements based on market conditions. It uses a ratio between the current price and the highest and lowest prices over a certain lookback period to determine its level of smoothing. The AMA can help reduce lag and increase responsiveness to changes in trend direction, making it useful for traders who want to follow trends while avoiding false signals. The AMA is calculated by multiplying a smoothing constant with the difference between the current price and the previous AMA value, then adding the result to the previous AMA value.

T3
The T3 moving average is a type of technical indicator used in financial analysis to identify trends in price movements. It is similar to the Exponential Moving Average (EMA) and the Double Exponential Moving Average (DEMA), but uses a different smoothing algorithm.

The T3 moving average is calculated using a series of exponential moving averages that are designed to filter out noise and smooth the data. The resulting smoothed data is then weighted with a non-linear function to produce a final output that is more responsive to changes in trend direction.

The T3 moving average can be customized by adjusting the length of the moving average, as well as the weighting function used to smooth the data. It is commonly used in conjunction with other technical indicators as part of a larger trading strategy.

█ Giga Kaleidoscope Modularized Trading System

Core components of 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
3. Confirmation 1 - a technical indicator used to identify trends
4. Confirmation 2 - a technical indicator used to identify trends
5. Continuation - a technical indicator used to identify trends
6. Volatility/Volume - a technical indicator used to identify volatility/volume breakouts/breakdown
7. Exit - a technical indicator used to determine when a trend is exhausted

What is Volatility in the NNFX trading system?
In the NNFX (No Nonsense Forex) trading system, ATR (Average True Range) is typically used to measure the volatility of an asset. It is used as a part of the system to help determine the appropriate stop loss and take profit levels for a trade. ATR is calculated by taking the average of the true range values over a specified period.

True range is calculated as the maximum of the following values:

-Current high minus the current low
-Absolute value of the current high minus the previous close
-Absolute value of the current low minus the previous close

ATR is a dynamic indicator that changes with changes in volatility. As volatility increases, the value of ATR increases, and as volatility decreases, the value of ATR decreases. By using ATR in NNFX system, traders can adjust their stop loss and take profit levels according to the volatility of the asset being traded. This helps to ensure that the trade is given enough room to move, while also minimizing potential losses.

Other types of volatility include True Range Double (TRD), Close-to-Close, and Garman-Klass

What is a Baseline indicator?
The baseline is essentially a moving average, and is used to determine the overall direction of the market.

The baseline in the NNFX system is used to filter out trades that are not in line with the long-term trend of the market. The baseline is plotted on the chart along with other indicators, such as the Moving Average (MA), the Relative Strength Index (RSI), and the Average True Range (ATR).

Trades are only taken when the price is in the same direction as the baseline. For example, if the baseline is sloping upwards, only long trades are taken, and if the baseline is sloping downwards, only short trades are taken. This approach helps to ensure that trades are in line with the overall trend of the market, and reduces the risk of entering trades that are likely to fail.

By using a baseline in the NNFX system, traders can have a clear reference point for determining the overall trend of the market, and can make more informed trading decisions. The baseline helps to filter out noise and false signals, and ensures that trades are taken in the direction of the long-term trend.

What is a Confirmation indicator?
Confirmation indicators are technical indicators that are used to confirm the signals generated by primary indicators. Primary indicators are the core indicators used in the NNFX system, such as the Average True Range (ATR), the Moving Average (MA), and the Relative Strength Index (RSI).

The purpose of the confirmation indicators is to reduce false signals and improve the accuracy of the trading system. They are designed to confirm the signals generated by the primary indicators by providing additional information about the strength and direction of the trend.

Some examples of confirmation indicators that may be used in the NNFX system include the Bollinger Bands, the MACD (Moving Average Convergence Divergence), and the MACD Oscillator. These indicators can provide information about the volatility, momentum, and trend strength of the market, and can be used to confirm the signals generated by the primary indicators.

In the NNFX system, confirmation indicators are used in combination with primary indicators and other filters to create a trading system that is robust and reliable. By using multiple indicators to confirm trading signals, the system aims to reduce the risk of false signals and improve the overall profitability of the trades.

What is a Continuation indicator?
In the NNFX (No Nonsense Forex) trading system, a continuation indicator is a technical indicator that is used to confirm a current trend and predict that the trend is likely to continue in the same direction. A continuation indicator is typically used in conjunction with other indicators in the system, such as a baseline indicator, to provide a comprehensive trading strategy.

What is a Volatility/Volume indicator?
Volume indicators, such as the On Balance Volume (OBV), the Chaikin Money Flow (CMF), or the Volume Price Trend (VPT), are used to measure the amount of buying and selling activity in a market. They are based on the trading volume of the market, and can provide information about the strength of the trend. In the NNFX system, volume indicators are used to confirm trading signals generated by the Moving Average and the Relative Strength Index. Volatility indicators include Average Direction Index, Waddah Attar, and Volatility Ratio. In the NNFX trading system, volatility is a proxy for volume and vice versa.

By using volume indicators as confirmation tools, the NNFX trading system aims to reduce the risk of false signals and improve the overall profitability of trades. These indicators can provide additional information about the market that is not captured by the primary indicators, and can help traders to make more informed trading decisions. In addition, volume indicators can be used to identify potential changes in market trends and to confirm the strength of price movements.

What is an Exit indicator?
The exit indicator is used in conjunction with other indicators in the system, such as the Moving Average (MA), the Relative Strength Index (RSI), and the Average True Range (ATR), to provide a comprehensive trading strategy.

The exit indicator in the NNFX system can be any technical indicator that is deemed effective at identifying optimal exit points. Examples of exit indicators that are commonly used include the Parabolic SAR, the Average Directional Index (ADX), and the Chandelier Exit.

The purpose of the exit indicator is to identify when a trend is likely to reverse or when the market conditions have changed, signaling the need to exit a trade. By using an exit indicator, traders can manage their risk and prevent significant losses.

In the NNFX system, the exit indicator is used in conjunction with a stop loss and a take profit order to maximize profits and minimize losses. The stop loss order is used to limit the amount of loss that can be incurred if the trade goes against the trader, while the take profit order is used to lock in profits when the trade is moving in the trader's favor.

Overall, the use of an exit indicator in the NNFX trading system is an important component of a comprehensive trading strategy. It allows traders to manage their risk effectively and improve the profitability of their trades by exiting at the right time.

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 and Continuation module (Confirmation 1/2 and Continuation, Numbers 3, 4, and 5 in the NNFX algorithm)
4. GKD-V - Volatility/Volume module (Confirmation 1/2, Number 6 in the NNFX algorithm)
5. GKD-E - Exit module (Exit, Number 7 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-C(Continuation) => 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 Continuation indicator. The Continuation 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: Hurst Exponent
  • Confirmation 1: Adaptive-Lookback Variety RSI as shown on the chart above
  • Confirmation 2: Williams Percent Range
  • Continuation: Adaptive-Lookback Variety RSI
  • Exit: Rex 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.

Giga Kaleidoscope Modularized Trading System Signals (based on the NNFX algorithm)
Standard Entry
1. GKD-C Confirmation 1 Signal
2. GKD-B Baseline agrees
3. Price is within a range of 0.2x Volatility and 1.0x Volatility of the Goldie Locks Mean
4. GKD-C Confirmation 2 agrees
5. GKD-V Volatility/Volume agrees

Baseline Entry
1. GKD-B Baseline signal
2. GKD-C Confirmation 1 agrees
3. Price is within a range of 0.2x Volatility and 1.0x Volatility of the Goldie Locks Mean
4. GKD-C Confirmation 2 agrees
5. GKD-V Volatility/Volume agrees
6. GKD-C Confirmation 1 signal was less than 7 candles prior

Volatility/Volume Entry
1. GKD-V Volatility/Volume signal
2. GKD-C Confirmation 1 agrees
3. Price is within a range of 0.2x Volatility and 1.0x Volatility of the Goldie Locks Mean
4. GKD-C Confirmation 2 agrees
5. GKD-B Baseline agrees
6. GKD-C Confirmation 1 signal was less than 7 candles prior

Continuation Entry
1. Standard Entry, Baseline Entry, or Pullback; entry triggered previously
2. GKD-B Baseline hasn't crossed since entry signal trigger
3. GKD-C Confirmation Continuation Indicator signals
4. GKD-C Confirmation 1 agrees
5. GKD-B Baseline agrees
6. GKD-C Confirmation 2 agrees

1-Candle Rule Standard Entry
1. GKD-C Confirmation 1 signal
2. GKD-B Baseline agrees
3. Price is within a range of 0.2x Volatility and 1.0x Volatility of the Goldie Locks Mean
Next Candle:
1. Price retraced (Long: close < close[1] or Short: close > close[1])
2. GKD-B Baseline agrees
3. GKD-C Confirmation 1 agrees
4. GKD-C Confirmation 2 agrees
5. GKD-V Volatility/Volume agrees

1-Candle Rule Baseline Entry
1. GKD-B Baseline signal
2. GKD-C Confirmation 1 agrees
3. Price is within a range of 0.2x Volatility and 1.0x Volatility of the Goldie Locks Mean
4. GKD-C Confirmation 1 signal was less than 7 candles prior
Next Candle:
1. Price retraced (Long: close < close[1] or Short: close > close[1])
2. GKD-B Baseline agrees
3. GKD-C Confirmation 1 agrees
4. GKD-C Confirmation 2 agrees
5. GKD-V Volatility/Volume Agrees

1-Candle Rule Volatility/Volume Entry
1. GKD-V Volatility/Volume signal
2. GKD-C Confirmation 1 agrees
3. Price is within a range of 0.2x Volatility and 1.0x Volatility of the Goldie Locks Mean
4. GKD-C Confirmation 1 signal was less than 7 candles prior
Next Candle:
1. Price retraced (Long: close < close or Short: close > close)
2. GKD-B Volatility/Volume agrees
3. GKD-C Confirmation 1 agrees
4. GKD-C Confirmation 2 agrees
5. GKD-B Baseline agrees

PullBack Entry
1. GKD-B Baseline signal
2. GKD-C Confirmation 1 agrees
3. Price is beyond 1.0x Volatility of Baseline
Next Candle:
1. Price is within a range of 0.2x Volatility and 1.0x Volatility of the Goldie Locks Mean
2. GKD-C Confirmation 1 agrees
3. GKD-C Confirmation 2 agrees
4. GKD-V Volatility/Volume Agrees

]█ Setting up the GKD
The GKD system involves chaining indicators together. These are the steps to set this up.

Use a GKD-C indicator alone on a chart
1. Inside the GKD-C indicator, change the "Confirmation Type" setting to "Solo Confirmation Simple"

Use a GKD-V indicator alone on a chart
**nothing, it's already useable on the chart without any settings changes

Use a GKD-B indicator alone on a chart
**nothing, it's already useable on the chart without any settings changes

Baseline (Baseline, Backtest)
1. Import the GKD-B Baseline into the GKD-BT Backtest: "Input into Volatility/Volume or Backtest (Baseline testing)"
2. Inside the GKD-BT Backtest, change the setting "Backtest Special" to "Baseline"

Volatility/Volume (Volatility/Volume, Backtest)
1. Inside the GKD-V indicator, change the "Testing Type" setting to "Solo"
2. Inside the GKD-V indicator, change the "Signal Type" setting to "Crossing" (neither traditional nor both can be backtested)
3. Import the GKD-V indicator into the GKD-BT Backtest: "Input into C1 or Backtest"
4. Inside the GKD-BT Backtest, change the setting "Backtest Special" to "Volatility/Volume"
5. Inside the GKD-BT Backtest, a) change the setting "Backtest Type" to "Trading" if using a directional GKD-V indicator; or, b) change the setting "Backtest Type" to "Full" if using a directional or non-directional GKD-V indicator (non-directional GKD-V can only test Longs and Shorts separately)
6. If "Backtest Type" is set to "Full": Inside the GKD-BT Backtest, change the setting "Backtest Side" to "Long" or "Short
7. If "Backtest Type" is set to "Full": To allow the system to open multiple orders at one time so you test all Longs or Shorts, open the GKD-BT Backtest, click the tab "Properties" and then insert a value of something like 10 orders into the "Pyramiding" settings. This will allow 10 orders to be opened at one time which should be enough to catch all possible Longs or Shorts.

Solo Confirmation Simple (Confirmation, Backtest)
1. Inside the GKD-C indicator, change the "Confirmation Type" setting to "Solo Confirmation Simple"
1. Import the GKD-C indicator into the GKD-BT Backtest: "Input into Backtest"
2. Inside the GKD-BT Backtest, change the setting "Backtest Special" to "Solo Confirmation Simple"

Solo Confirmation Complex without Exits (Baseline, Volatility/Volume, Confirmation, Backtest)
1. Inside the GKD-V indicator, change the "Testing Type" setting to "Chained"
2. Import the GKD-B Baseline into the GKD-V indicator: "Input into Volatility/Volume or Backtest (Baseline testing)"
3. Inside the GKD-C indicator, change the "Confirmation Type" setting to "Solo Confirmation Complex"
4. Import the GKD-V indicator into the GKD-C indicator: "Input into C1 or Backtest"
5. Inside the GKD-BT Backtest, change the setting "Backtest Special" to "GKD Full wo/ Exits"
6. Import the GKD-C into the GKD-BT Backtest: "Input into Exit or Backtest"

Solo Confirmation Complex with Exits (Baseline, Volatility/Volume, Confirmation, Exit, Backtest)
1. Inside the GKD-V indicator, change the "Testing Type" setting to "Chained"
2. Import the GKD-B Baseline into the GKD-V indicator: "Input into Volatility/Volume or Backtest (Baseline testing)"
3. Inside the GKD-C indicator, change the "Confirmation Type" setting to "Solo Confirmation Complex"
4. Import the GKD-V indicator into the GKD-C indicator: "Input into C1 or Backtest"
5. Import the GKD-C indicator into the GKD-E indicator: "Input into Exit"
6. Inside the GKD-BT Backtest, change the setting "Backtest Special" to "GKD Full w/ Exits"
7. Import the GKD-E into the GKD-BT Backtest: "Input into Backtest"

Full GKD without Exits (Baseline, Volatility/Volume, Confirmation 1, Confirmation 2, Continuation, Backtest)
1. Inside the GKD-V indicator, change the "Testing Type" setting to "Chained"
2. Import the GKD-B Baseline into the GKD-V indicator: "Input into Volatility/Volume or Backtest (Baseline testing)"
3. Inside the GKD-C 1 indicator, change the "Confirmation Type" setting to "Confirmation 1"
4. Import the GKD-V indicator into the GKD-C 1 indicator: "Input into C1 or Backtest"
5. Inside the GKD-C 2 indicator, change the "Confirmation Type" setting to "Confirmation 2"
6. Import the GKD-C 1 indicator into the GKD-C 2 indicator: "Input into C2"
7. Inside the GKD-C Continuation indicator, change the "Confirmation Type" setting to "Continuation"
8. Inside the GKD-BT Backtest, change the setting "Backtest Special" to "GKD Full wo/ Exits"
9. Import the GKD-E into the GKD-BT Backtest: "Input into Exit or Backtest"

Full GKD with Exits (Baseline, Volatility/Volume, Confirmation 1, Confirmation 2, Continuation, Exit, Backtest)
1. Inside the GKD-V indicator, change the "Testing Type" setting to "Chained"
2. Import the GKD-B Baseline into the GKD-V indicator: "Input into Volatility/Volume or Backtest (Baseline testing)"
3. Inside the GKD-C 1 indicator, change the "Confirmation Type" setting to "Confirmation 1"
4. Import the GKD-V indicator into the GKD-C 1 indicator: "Input into C1 or Backtest"
5. Inside the GKD-C 2 indicator, change the "Confirmation Type" setting to "Confirmation 2"
6. Import the GKD-C 1 indicator into the GKD-C 2 indicator: "Input into C2"
7. Inside the GKD-C Continuation indicator, change the "Confirmation Type" setting to "Continuation"
8. Import the GKD-C Continuation indicator into the GKD-E indicator: "Input into Exit"
9. Inside the GKD-BT Backtest, change the setting "Backtest Special" to "GKD Full w/ Exits"
10. Import the GKD-E into the GKD-BT Backtest: "Input into Backtest"

Baseline + Volatility/Volume (Baseline, Volatility/Volume, Backtest)
1. Inside the GKD-V indicator, change the "Testing Type" setting to "Baseline + Volatility/Volume"
2. Inside the GKD-V indicator, make sure the "Signal Type" setting is set to "Traditional"
3. Import the GKD-B Baseline into the GKD-V indicator: "Input into Volatility/Volume or Backtest (Baseline testing)"
4. Inside the GKD-BT Backtest, change the setting "Backtest Special" to "Baseline + Volatility/Volume"
5. Import the GKD-V into the GKD-BT Backtest: "Input into C1 or Backtest"
6. Inside the GKD-BT Backtest, change the setting "Backtest Type" to "Full". For this backtest, you must test Longs and Shorts separately
7. To allow the system to open multiple orders at one time so you can test all Longs or Shorts, open the GKD-BT Backtest, click the tab "Properties" and then insert a value of something like 10 orders into the "Pyramiding" settings. This will allow 10 orders to be opened at one time which should be enough to catch all possible Longs or Shorts.

Requirements
Inputs
Confirmation 1: GKD-V Volatility / Volume indicator
Confirmation 2: GKD-C Confirmation indicator
Continuation: GKD-C Confirmation indicator
Solo Confirmation Simple: GKD-B Baseline
Solo Confirmation Complex: GKD-V Volatility / Volume indicator
Solo Confirmation Super Complex: GKD-V Volatility / Volume indicator
Stacked 1: None
Stacked 2+: GKD-C, GKD-V, or GKD-B Stacked 1

Outputs
Confirmation 1: GKD-C Confirmation 2 indicator
Confirmation 2: GKD-C Continuation indicator
Continuation: GKD-E Exit indicator
Solo Confirmation Simple: GKD-BT Backtest
Solo Confirmation Complex: GKD-BT Backtest or GKD-E Exit indicator
Solo Confirmation Super Complex: GKD-C Continuation indicator
Stacked 1: GKD-C, GKD-V, or GKD-B Stacked 2+
Stacked 2+: GKD-C, GKD-V, or GKD-B Stacked 2+ or GKD-BT Backtest

Additional features will be added in future releases.
Release Notes
Updated for new GKD backtests.
Release Notes
Added additional features for new GKD backtests
Release Notes
Additions and Subtractions:

-All signal logic has been transferred to the new GKD-BT Backtests. You can access these backtests using the links provided below:

GKD-BT Giga Confirmation Stack Backtest:
GKD-BT Giga Confirmation Stack Backtest [Loxx]


GKD-BT Giga Stacks Backtest:
GKD-BT Giga Stacks Backtest [Loxx]


GKD-BT Full Giga Kaleidoscope Backtest:
GKD-BT Full Giga Kaleidoscope Backtest [Loxx]


GKD-BT Solo Confirmation Super Complex Backtest:
GKD-BT Solo Confirmation Super Complex Backtest [Loxx]


GKD-BT Solo Confirmation Complex Backtest:
GKD-BT Solo Confirmation Complex Backtest [Loxx]


GKD-BT Solo Confirmation Simple Backtest:
GKD-BT Solo Confirmation Simple Backtest [Loxx]


-Removed all Confirmation Type options except for "Confirmation" and "Continuation." The "Continuation" type is only used in GKD-BT Solo Confirmation Super Complex Backtest and GKD-BT Full Giga Kaleidoscope Backtest when selecting a Confirmation indicator.

-Added new signal plots based on the selected Confirmation Type. For the "Confirmation" type, only initial Longs and Shorts will be displayed on the indicator. For the "Continuation" type, both initial and continuation signals will be displayed. In both cases, if multiple signal types are present (e.g., middle cross, signal cross), these signals can be controlled using the "Signal Type" option.

-Implemented code optimizations to enhance the rendering speed of signals.

-Streamlined the export process by generating only a single value for export to other indicators or backtests. This exported value is named "Input into NEW GKD-BT Backtest."
Release Notes
Updated for multi-ticker backtests.
Release Notes
Readded source types
Release Notes
Removed unused input
Release Notes
Updated for GKD optimizer.
adaptiveadaptivelookbackehlersgigakaleidoscopeGKDgkdcjurikloxxnnfxRelative Strength Index (RSI)RSXT3 Moving Average (T3)

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact loxx for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.

Author's instructions

This indicator is only available to ALGX Trading VIP group members. For instructions on how to access, send me a private message here on TradingView or message me using the contact information listed in my TradingView profile.

Want to use this script on a chart?

Warning: please read before requesting access.

Public Telegram Group, t.me/algxtrading_public

VIP Membership Info: patreon.com/algxtrading/membership
Also on:

Disclaimer