GGB_lib_fiboLibrary "GGB_lib_fibo"
draw_fibo(high_point, low_point)
draw_fibo
/ @description Draws Fibonacci retracement lines between a high point and a low point.
/ @param high_point (float) Highest point of the move.
/ @param low_point (float) Lowest point of the move.
/ @returns (void) Draws lines on the chart.
Parameters:
high_point (float)
low_point (float)
Indikatoren und Strategien
[DEM] Multi-RSI Signal (With Backtesting) Multi-RSI Signal (With Backtesting) is a technical indicator that generates buy signals based on multiple RSI (Relative Strength Index) timeframes simultaneously reaching oversold conditions. The indicator monitors RSI values across seven different periods (2, 3, 4, 5, 6, 8, 25, 50, and 100) and triggers a buy signal only when all shorter-term RSIs (2-8 periods) drop below specific thresholds (mostly below 10-20) while longer-term RSIs (25, 50, 100) remain within defined ranges, indicating a confluence of oversold conditions across multiple timeframes. The system includes comprehensive backtesting capabilities that track signal accuracy, average returns, and signal frequency over time, displaying these performance metrics in a real-time statistics table. Unlike typical single-RSI approaches, this multi-timeframe methodology aims to filter out false signals by requiring alignment across various RSI periods, though it currently only generates buy signals with no corresponding sell signal logic implemented.
[DEM] Moving Average Signal (With Backtesting) Moving Average Signal (With Backtesting) is designed to generate buy and sell signals using a highly configurable moving average system with over 20 different moving average types (including EMA, SMA, HMA, ALMA, McGinley, TRAMA, and others) combined with dynamic upper and lower bands based on standard deviation or ATR multipliers. It also includes a comprehensive backtesting framework to evaluate the historical performance of these signals. The indicator overlays directly on the price chart, plotting the moving average with upper and lower bands while coloring bars green when price is above the upper band, red when below the lower band, and purple when between the bands. The strategy generates buy signals when price crosses above the upper band after being below it for one bar but above it for the previous three bars (indicating a breakout after brief consolidation), and sell signals under opposite conditions with the lower band, creating a momentum-based system that filters for sustained moves beyond the moving average envelope while offering extensive customization options and integrated backtesting metrics.
[DEM] Momentum Supertrend Signal (With Backtesting) Momentum Supertrend Signal (With Backtesting) is designed to generate buy and sell signals by combining SuperTrend trend analysis with consecutive price momentum patterns and timing filters to identify high-probability entry points with reduced signal frequency. It also includes a comprehensive backtesting framework to evaluate the historical performance of these signals. The indicator overlays directly on the price chart, plotting signals and displaying performance statistics in a table. The strategy generates buy signals when price shows three consecutive closes higher than the previous close while the SuperTrend indicates a bullish trend (direction = -1), with an additional requirement that at least 5 bars have passed since the last buy signal, while sell signals are triggered when price shows three consecutive lower closes during a SuperTrend bearish trend (direction = 1) with the same 5-bar spacing requirement, creating a momentum-confirmation system that filters for sustained directional movement while preventing excessive signal generation through integrated timing controls and backtesting analysis.
[DEM] Momentum Bars Momentum Bars is designed to color price bars based on a combination of Aroon oscillator analysis and RSI momentum to identify periods of strong directional bias and filter out choppy or indecisive market conditions. The indicator calculates the Aroon Up and Aroon Down values over a configurable period (default 20) to determine which direction has more recent strength, then combines this with RSI analysis using the same period to confirm momentum alignment. Bars are colored green when Aroon Up exceeds Aroon Down (indicating recent highs dominate) and RSI is above 50 (confirming bullish momentum), red when Aroon Down exceeds Aroon Up (indicating recent lows dominate) and RSI is below 50 (confirming bearish momentum), and purple for all other conditions where the Aroon and RSI signals are conflicting or neutral, providing traders with immediate visual feedback about when price momentum and recent high/low activity are aligned versus when market conditions are mixed.
[DEM] MLR Signal (With Backtesting) MLR Signal (With Backtesting) is designed to generate buy signals using a machine learning regression model that analyzes multiple technical indicators from a reference symbol (default NDX) to predict market direction and identify optimal entry points. It also includes a comprehensive backtesting framework to evaluate the historical performance of these signals. The indicator overlays directly on the price chart, plotting signals and displaying performance statistics in a table while coloring bars green for bullish predictions and red for bearish predictions. The MLR model processes ten input features including RSI, MACD components, moving average relationships, and price momentum changes, applying predetermined coefficients to generate a prediction score that determines market bias, with buy signals triggered only when specific sequential patterns of bullish predictions occur (requiring particular arrangements of consecutive bullish and bearish predictions over recent bars) to filter for higher-confidence entry opportunities while tracking signal accuracy and returns through integrated backtesting.
[DEM] MACD Bars MACD Bars is designed to color price bars based on the relationship between the MACD line and its histogram to provide immediate visual feedback about momentum conditions and potential trend changes. The indicator calculates the standard MACD using the default parameters (12, 26, 9) and applies a three-color system to the candlesticks: green bars when the MACD line is above both the histogram and zero (indicating strong bullish momentum), red bars when the MACD line is below both the histogram and zero (indicating strong bearish momentum), and purple bars for all other conditions where momentum signals are mixed or transitional. This color-coding system helps traders quickly identify periods of strong directional momentum versus periods of uncertainty or potential reversal without needing to reference a separate MACD indicator pane.
[DEM] Klinger Signal (With Backtesting) Klinger Signal (With Backtesting) is designed to generate buy and sell signals based on the Klinger Volume Oscillator, which combines price movement direction with volume flow to identify potential trend changes and momentum shifts. It also includes a comprehensive backtesting framework to evaluate the historical performance of these signals. The indicator overlays directly on the price chart, plotting signals and displaying performance statistics in a table. The strategy calculates signed volume (positive when HLC3 rises, negative when it falls), applies dual EMA smoothing with configurable fast and slow periods (default 34 and 55), creates a signal line using additional EMA smoothing (default 13 periods), then generates buy signals when the signal line crosses above its own EMA-smoothed version and sell signals on the opposite crossover, combining volume analysis with price momentum to identify institutional money flow changes while tracking signal accuracy, average returns, and frequency through integrated backtesting metrics.
[DEM] Ichimoku Bars Ichimoku Bars is designed to color price bars based on their relationship to the Ichimoku Cloud (Kumo) by comparing the current close price to both Leading Span A and Leading Span B from the traditional Ichimoku system, but with added smoothing modifications. The indicator calculates the standard Ichimoku components using Donchian midlines for the Conversion and Base lines, then creates smoothed versions of Leading Span A (20-period RMA of the average between Conversion and Base lines) and Leading Span B (20-period RMA of the 52-period Donchian midline), both displaced forward by the lagging span period. Bars are colored green when price is above both leading spans (indicating strong bullish conditions above the cloud), red when price is below both leading spans (indicating strong bearish conditions below the cloud), and magenta when price is within the cloud (indicating neutral or transitional conditions), providing traders with immediate visual feedback about price position relative to the Ichimoku equilibrium zone.
[DEM] Heikin Ashi Barcolors Heikin Ashi Barcolors is designed to apply smoothed Heikin Ashi calculations to regular candlestick charts and color the price bars based on the resulting Heikin Ashi trend direction to reduce market noise and provide clearer visual trend identification. The indicator first applies EMA smoothing to the standard OHLC values, then calculates Heikin Ashi values using the traditional formulas (averaged close, modified open based on previous values, and adjusted high/low), and applies an additional layer of EMA smoothing to the Heikin Ashi results. The bars are colored teal when the smoothed Heikin Ashi close is above the smoothed Heikin Ashi open (indicating bullish conditions) and red when the close is below the open (indicating bearish conditions), effectively transforming the visual appearance of regular candlesticks to reflect the smoother, trend-following characteristics of Heikin Ashi methodology while maintaining the original price structure.
[DEM] Four RMA Signal (With Backtesting) Four RMA Signal (With Backtesting) is designed to generate buy and sell signals based on a hierarchical alignment of four Rolling Moving Averages (RMA) with periods of 200, 300, 400, and 500, combined with price action confirmation through the fastest RMA line. It also includes a comprehensive backtesting framework to evaluate the historical performance of these signals. The indicator overlays directly on the price chart, plotting signals and displaying performance statistics in a table. The strategy generates buy signals when all four RMAs are aligned in ascending order (200>300>400>500, indicating strong bullish momentum across multiple timeframes) and the low crosses above the 200-period RMA, while sell signals are triggered when the RMAs are aligned in descending order (200<300<400<500, indicating strong bearish momentum) and the high crosses below the 200-period RMA, ensuring signals only occur during periods of confirmed long-term directional bias with immediate price confirmation through the fastest moving average.
[DEM] Floating Reversal Signal (With Backtesting) Floating Reversal Signal (With Backtesting) is designed to identify potential reversal opportunities by detecting counter-trend momentum shifts using a combination of SuperTrend analysis, ATR-based candle size filtering, and RSI oversold/overbought conditions. It also includes a comprehensive backtesting framework to evaluate the historical performance of these signals. The indicator overlays directly on the price chart, plotting signals and displaying performance statistics in a table. The strategy generates buy signals when price forms a bullish candle during a SuperTrend downtrend, with the previous candle's body size falling within specified ATR multiplier ranges (default 0.5x to 2x) and RSI showing oversold conditions below a configurable threshold, while sell signals are triggered under opposite conditions during uptrends with overbought RSI readings, aiming to capture "floating" reversal setups where price temporarily moves against the prevailing trend before resuming in the original direction.
[DEM] Fair Value Gaps Fair Value Gaps is designed to identify and visualize institutional Fair Value Gaps (FVGs) on the price chart by detecting three-candle patterns where a significant price gap exists between non-adjacent candles, indicating areas where price moved too quickly and left behind unfilled liquidity zones. The indicator identifies bullish FVGs when the current low exceeds the high from two bars ago by more than a configurable ATR multiplier (default 1.1), and bearish FVGs when the low from two bars ago exceeds the current high by the same threshold, ensuring only significant gaps are marked. When detected, the indicator draws semi-transparent boxes around the gap areas with midline references, colors the chart background green for bullish gaps and red for bearish gaps, and maintains these visual markers as potential support/resistance levels where institutional traders may look to fill orders, helping traders identify key price levels where future reversals or continuations might occur.
[DEM] Exit Signals Exit Signals is designed to identify potential exit points for existing positions by detecting specific candlestick patterns that suggest momentum exhaustion or reversal conditions using ATR-based size requirements. The indicator generates sell signals (red X marks above bars) when either a large bullish candle from the previous session (body size greater than 0.5x ATR over 50 periods) is followed by a bearish close near the previous open, or when the current candle shows exceptionally strong bullish momentum (body size greater than 1.3x ATR over 26 periods). Conversely, buy signals (blue X marks below bars) are triggered when a large bearish candle is followed by a bullish close near the previous open, or when the current candle displays exceptionally strong bearish momentum, helping traders identify potential exit opportunities where extreme price movements may be signaling exhaustion and possible reversal rather than continuation.
[DEM] Engulfing Candlestick Identifier Engulfing Candlestick Identifier is designed to automatically detect and highlight bullish and bearish engulfing candlestick patterns by analyzing the relationship between consecutive candles and applying ATR-based size filters to ensure significant pattern validity. The indicator identifies bullish engulfing patterns when the current candle closes above the previous candle's open, opens below the previous candle's close, and both candles meet minimum size requirements based on ATR thresholds, while bearish engulfing patterns are detected under opposite conditions. The indicator colors bars green for bullish engulfing patterns, red for bearish engulfing patterns, and optionally purple for all other bars when the "Different Color" setting is enabled, helping traders quickly identify potential reversal signals where one candle completely engulfs the body of the previous candle with sufficient magnitude to suggest meaningful momentum shifts.
[DEM] EMA Crossover Signal (With Backtesting) EMA Crossover Signal (With Backtesting) is designed to generate buy and sell signals based on the classic exponential moving average crossover strategy using two configurable EMA periods (default 9 and 21). It also includes a comprehensive backtesting framework to evaluate the historical performance of these signals. The indicator overlays directly on the price chart, plotting signals and displaying performance statistics in a table. The strategy generates buy signals when the shorter EMA crosses above the longer EMA (indicating upward momentum shift) and sell signals when the shorter EMA crosses below the longer EMA (indicating downward momentum shift), while the integrated backtesting system tracks signal accuracy, average returns, signal frequency per month, and total correct predictions for both buy and sell signals over a configurable holding period to help traders evaluate the effectiveness of the crossover parameters.
[DEM] EMA Cloud & Bars EMA Cloud & Bars is designed to provide visual trend analysis by combining two exponential moving averages of different lengths (default 50 and 150) with both a color-coded cloud fill and optional bar coloring to identify market conditions. The indicator plots the two EMAs as semi-transparent lines and fills the area between them with blue when the shorter EMA is above the longer EMA (indicating bullish conditions) or red when the shorter EMA is below the longer EMA (indicating bearish conditions). Additionally, it colors price bars green when price is above the shorter EMA and the shorter EMA is above the longer EMA (strong bullish alignment), red when price is below the shorter EMA and the longer EMA is above the shorter EMA (strong bearish alignment), and purple for all other conditions, providing traders with multiple visual cues for trend direction and strength while offering toggleable options for both the cloud display and bar coloring features.
[DEM] Double Hull Moving Average (DHMA) Double Hull Moving Average (DHMA) is designed to create an ultra-smooth and responsive trend-following indicator by applying the Hull Moving Average calculation twice to reduce lag while maintaining smoothness. The indicator first calculates a Hull Moving Average of the source price over the specified length (default 233), then applies another Hull Moving Average to the result, and finally uses the standard Hull formula (2 * HMA1 - HMA2) to create the Double Hull Moving Average. The resulting line changes color dynamically from green when trending upward to red when trending downward, with matching bar colors to provide clear visual confirmation of trend direction, offering traders a highly refined moving average that responds quickly to price changes while filtering out most market noise.
[DEM] Donchian Oscillator Donchian Oscillator is designed to measure the relative position of recent price action within the Donchian Channel by calculating how many bars have passed since the most recent highest high versus the most recent lowest low over a specified lookback period. The indicator computes the difference between bars since the last low and bars since the last high, then applies smoothing using an RMA to create an oscillator that fluctuates around a zero centerline displayed in a separate pane below the main chart. The oscillator uses gradient coloring from red (negative values indicating recent lows dominate) through purple (neutral) to green (positive values indicating recent highs dominate), helping traders identify momentum shifts and potential overbought/oversold conditions based on whether price is closer to making new highs or new lows within the specified range.
[DEM] Donchian Moving Average Donchian Moving Average is designed to create a smoothed trend-following indicator by combining Donchian Channel methodology with moving average smoothing to reduce noise and provide clearer directional signals. The indicator calculates the midpoint of the highest high and lowest low over a specified period (default 20 bars), then applies additional smoothing using an RMA (default 10 periods) to create a more stable trend line. The resulting moving average changes color from blue to red based on its relationship to its own short-term smoothed version (5-period RMA), with blue indicating upward momentum and red indicating downward momentum, while also coloring the price bars to match the trend direction for enhanced visual clarity of the overall market bias.
[DEM] Donchian Cloud Donchian Cloud is designed to create a visual cloud overlay on the price chart using two Donchian Channel midlines of different periods (26 and 117 bars) to identify trend direction and potential support/resistance zones. The indicator calculates the average of the highest high and lowest low for each period, plots these as nearly transparent blue lines, and fills the area between them with a color-coded cloud that changes from blue to red when the longer-period midline (117) crosses above the shorter-period midline (26), indicating a potential bearish shift in the longer-term trend. This cloud system helps traders visualize the relationship between short-term and long-term price equilibrium levels, with the cloud color providing a quick reference for overall trend bias and the cloud boundaries offering dynamic support and resistance levels.
[DEM] Donchian Channels Bars Donchian Channels Bars is designed to color-code price bars based on their relationship to Donchian Channel breakouts by comparing short-term and long-term highest high and lowest low levels. The indicator uses two configurable lookback periods (default 1 and 20 bars) and colors bars green when the shorter-period highest high equals the longer-period highest high (indicating an upward breakout or new high), red when the shorter-period lowest low equals the longer-period lowest low (indicating a downward breakout or new low), and purple when neither condition is met. This visual system helps traders quickly identify when price is making significant moves beyond established ranges, with green bars highlighting potential bullish breakouts above recent resistance and red bars highlighting potential bearish breakouts below recent support levels.
[DEM] Doji Candlestick Identifier Doji Candlestick Identifier is designed to automatically detect and highlight doji candlestick patterns on the price chart by identifying bars where the opening and closing prices are nearly identical, indicating market indecision. The indicator uses statistical analysis to determine what constitutes a "near identical" open-close relationship by calculating the standard deviation of close-open differences over a specified lookback period (default 200 bars) and setting tolerance bands at one-tenth of this deviation above and below zero. When a candlestick's open-close difference falls within these narrow tolerance bands, the indicator places a small gray triangle below the bar to mark the doji pattern, helping traders quickly identify potential reversal or continuation points where buying and selling pressure are balanced.