OPEN-SOURCE SCRIPT
Gyspy Bot Trade Engine - V1.2B - Alerts - 12-7-25 - SignalLynx

Gypsy Bot Trade Engine (MK6 V1.2B) - Alerts & Visualization
Brought to you by Signal Lynx | Automation for the Night-Shift Nation 🌙
1. Executive Summary & Architecture
Gypsy Bot (MK6 V1.2B) is not merely a strategy; it is a massive, modular Trade Engine built specifically for the TradingView Pine Script V6 environment. While most tools rely on a single dominant indicator to generate signals, Gypsy Bot functions as a sophisticated Consensus Algorithm.
Note: This is the Indicator / Alerts version of the engine. It is designed for visual analysis and generating live alert signals for automation. If you wish to see Backtest data (Equity Curves, Drawdown, Profit Factors), please use the Strategy version of this script.
The engine calculates data from up to 12 distinct Technical Analysis Modules simultaneously on every bar closing. It aggregates these signals into a "Vote Count" and only fires a signal plot when a user-defined threshold of concurring signals is met. This "Voting System" acts as a noise filter, requiring multiple independent mathematical models—ranging from volume flow and momentum to cyclical harmonics and trend strength—to agree on market direction.
Beyond entries, Gypsy Bot features a proprietary Risk Management suite called the Dump Protection Team (DPT). This logic layer operates independently of the entry modules, specifically scanning for "Moon" (Parabolic) or "Nuke" (Crash) volatility events to signal forced exits, preserving capital during Black Swan events.
2. ⚠️ The Philosophy of "Curve Fitting" (Must Read)
One must be careful when applying Gypsy Bot to new pairs or charts.
To be fully transparent: Gypsy Bot is, by definition, a very advanced curve-fitting engine. Because it grants the user granular control over 12 modules, dozens of thresholds, and specific voting requirements, it is extremely easy to "over-fit" the data. You can easily toggle switches until the charts look perfect in hindsight, only to have the signals fail in live markets because they were tuned to historical noise rather than market structure.
To use this engine successfully:
Visual Verification: Do not just look for "green arrows." Look for signals that occur at logical market structure points.
Stability: Ensure signals are not flickering. This script uses closed-candle logic for key decisions to ensure that once a signal plots, it remains painted.
Regular Maintenance is Mandatory: Markets shift regimes (e.g., from Bull Trend to Crab Range). Gypsy Bot settings should be reviewed and adjusted at regular intervals to ensure the voting logic remains aligned with current market volatility.
Timeframe Recommendations:
Gypsy Bot is optimized for High Time Frame (HTF) trend following. It generally produces the most reliable results on charts ranging from 1-Hour to 12-Hours, with the 4-Hour timeframe historically serving as the "sweet spot" for most major cryptocurrency assets.
3. The Voting Mechanism: How Entries Are Generated
The heart of the Gypsy Bot engine is the ActivateOrders input (found in the "Order Signal Modifier" settings).
The engine constantly monitors the output of all enabled Modules.
Long Votes: GoLongCount
Short Votes: GoShortCount
If you have 10 Modules enabled, and you set ActivateOrders to 7:
The engine will ONLY plot a Buy Signal if 7 or more modules return a valid "Buy" signal on the same closed candle.
If only 6 modules agree, the signal is rejected.
4. Technical Deep Dive: The 12 Modules
Gypsy Bot allows you to toggle the following modules On/Off individually to suit the asset you are trading.
Module 1: Modified Slope Angle (MSA)
Logic: Calculates the geometric angle of a moving average relative to the timeline.
Function: Filters out "lazy" trends. A trend is only considered valid if the slope exceeds a specific steepness threshold.
Module 2: Correlation Trend Indicator (CTI)
Logic: Measures how closely the current price action correlates to a straight line (a perfect trend).
Function: Ensures that we are moving up with high statistical correlation, reducing fake-outs.
Module 3: Ehlers Roofing Filter
Logic: A spectral filter combining High-Pass (trend removal) and Super Smoother (noise removal).
Function: Isolates the "Roof" of price action to catch cyclical turning points before standard moving averages.
Module 4: Forecast Oscillator
Logic: Uses Linear Regression forecasting to predict where price "should" be relative to where it is.
Function: Signals when the regression trend flips. Offers "Aggressive" and "Conservative" calculation modes.
Module 5: Chandelier ATR Stop
Logic: A volatility-based trend follower that hangs a "leash" (ATR multiple) from extremes.
Function: Used as an entry filter. If price is above the Chandelier line, the trend is Bullish.
Module 6: Crypto Market Breadth (CMB)
Logic: Pulls data from multiple major tickers (BTC, ETH, and Perpetual Contracts).
Function: Calculates "Market Health." If Bitcoin is rising but the rest of the market is dumping, this module can veto a trade.
Module 7: Directional Index Convergence (DIC)
Logic: Analyzes the convergence/divergence between Fast and Slow Directional Movement indices.
Function: Identifies when trend strength is expanding.
Module 8: Market Thrust Indicator (MTI)
Logic: A volume-weighted breadth indicator using Advance/Decline and Volume data.
Function: One of the most powerful modules. Confirms that price movement is supported by actual volume flow. Recommended setting: "SSMA" (Super Smoother).
Module 9: Simple Ichimoku Cloud
Logic: Traditional Japanese trend analysis.
Function: Checks for a "Kumo Breakout." Price must be fully above/below the Cloud to confirm entry.
Module 10: Simple Harmonic Oscillator
Logic: Analyzes harmonic wave properties to detect cyclical tops and bottoms.
Function: Serves as a counter-trend or early-reversal detector.
Module 11: HSRS Compression / Super AO
Logic: Detects volatility compression (HSRS) or Momentum/Trend confluence (Super AO).
Function: Great for catching explosive moves resulting from consolidation.
Module 12: Fisher Transform (MTF)
Logic: Converts price data into a Gaussian normal distribution.
Function: Identifies extreme price deviations. Uses Multi-Timeframe (MTF) logic to ensure you aren't trading against the major trend.
5. Global Inhibitors (The Veto Power)
Even if 12 out of 12 modules vote "Buy," Gypsy Bot performs a final safety check using Global Inhibitors.
Bitcoin Halving Logic: Prevents trading during chaotic weeks surrounding Halving events (dates projected through 2040).
Miner Capitulation: Uses Hash Rate Ribbons to identify bearish regimes when miners are shutting down.
ADX Filter: Prevents trading in "Flat/Choppy" markets (Low ADX).
CryptoCap Trend: Checks the total Crypto Market Cap chart for broad market alignment.
6. Risk Management & The Dump Protection Team (DPT)
Even in this Indicator version, the RM logic runs to generate Exit Signals.
Dump Protection Team (DPT): Detects "Nuke" (Crash) or "Moon" (Pump) volatility signatures. If triggered, it plots an immediate Exit Signal (Yellow Plot).
Advanced Adaptive Trailing Stop (AATS): Dynamically tightens stops in low volatility ("Dungeon") and loosens them in high volatility ("Penthouse").
Staged Take Profits: Plots TP1, TP2, and TP3 events on the chart for visual confirmation or partial exit alerts.
7. Recommended Setup Guide
When applying Gypsy Bot to a new chart, follow this sequence:
Set Timeframe: 4 Hours (4H).
Tune DPT: Adjust "Dump/Moon Protection" inputs first. These filter out bad signals during high volatility.
Tune Module 8 (MTI): Experiment with the MA Type (SSMA is recommended).
Select Modules: Enable/Disable modules based on the asset's personality (Trending vs. Ranging).
Voting Threshold: Adjust ActivateOrders to filter out noise.
Alert Setup: Once visually satisfied, use the "Any Alert Function Call" option when creating an alert in TradingView to capture all Buy/Sell/Close events generated by the engine.
8. Technical Specs
Engine Version: Pine Script V6
Repainting: This indicator uses Closed Candle data for all Risk Management and Entry decisions. This ensures that signals do not vanish after the candle closes.
Visuals:
Blue Plot: Buy/Sell Signal.
Yellow Plot: Risk Management (RM) / DPT Close Signal.
Green/Lime/Olive Plots: Take Profit hits.
Disclaimer:
This script is a complex algorithmic tool for market analysis. Past performance is not indicative of future results. Cryptocurrency trading involves substantial risk of loss. Use this tool to assist your own decision-making, not to replace it.
9. About Signal Lynx
Automation for the Night-Shift Nation 🌙
Signal Lynx focuses on helping traders and developers bridge the gap between indicator logic and real-world automation. The same RM engine you see here powers multiple internal systems and templates, including other public scripts like the Super-AO Strategy with Advanced Risk Management.
We provide this code open source under the Mozilla Public License 2.0 (MPL-2.0) to:
Demonstrate how Adaptive Logic and structured Risk Management can outperform static, one-layer indicators
Give Pine Script users a battle-tested RM backbone they can reuse, remix, and extend
If you are looking to automate your TradingView strategies, route signals to exchanges, or simply want safer, smarter strategy structures, please keep Signal Lynx in your search.
License: Mozilla Public License 2.0 (Open Source).
If you make beneficial modifications, please consider releasing them back to the community so everyone can benefit.
Brought to you by Signal Lynx | Automation for the Night-Shift Nation 🌙
1. Executive Summary & Architecture
Gypsy Bot (MK6 V1.2B) is not merely a strategy; it is a massive, modular Trade Engine built specifically for the TradingView Pine Script V6 environment. While most tools rely on a single dominant indicator to generate signals, Gypsy Bot functions as a sophisticated Consensus Algorithm.
Note: This is the Indicator / Alerts version of the engine. It is designed for visual analysis and generating live alert signals for automation. If you wish to see Backtest data (Equity Curves, Drawdown, Profit Factors), please use the Strategy version of this script.
The engine calculates data from up to 12 distinct Technical Analysis Modules simultaneously on every bar closing. It aggregates these signals into a "Vote Count" and only fires a signal plot when a user-defined threshold of concurring signals is met. This "Voting System" acts as a noise filter, requiring multiple independent mathematical models—ranging from volume flow and momentum to cyclical harmonics and trend strength—to agree on market direction.
Beyond entries, Gypsy Bot features a proprietary Risk Management suite called the Dump Protection Team (DPT). This logic layer operates independently of the entry modules, specifically scanning for "Moon" (Parabolic) or "Nuke" (Crash) volatility events to signal forced exits, preserving capital during Black Swan events.
2. ⚠️ The Philosophy of "Curve Fitting" (Must Read)
One must be careful when applying Gypsy Bot to new pairs or charts.
To be fully transparent: Gypsy Bot is, by definition, a very advanced curve-fitting engine. Because it grants the user granular control over 12 modules, dozens of thresholds, and specific voting requirements, it is extremely easy to "over-fit" the data. You can easily toggle switches until the charts look perfect in hindsight, only to have the signals fail in live markets because they were tuned to historical noise rather than market structure.
To use this engine successfully:
Visual Verification: Do not just look for "green arrows." Look for signals that occur at logical market structure points.
Stability: Ensure signals are not flickering. This script uses closed-candle logic for key decisions to ensure that once a signal plots, it remains painted.
Regular Maintenance is Mandatory: Markets shift regimes (e.g., from Bull Trend to Crab Range). Gypsy Bot settings should be reviewed and adjusted at regular intervals to ensure the voting logic remains aligned with current market volatility.
Timeframe Recommendations:
Gypsy Bot is optimized for High Time Frame (HTF) trend following. It generally produces the most reliable results on charts ranging from 1-Hour to 12-Hours, with the 4-Hour timeframe historically serving as the "sweet spot" for most major cryptocurrency assets.
3. The Voting Mechanism: How Entries Are Generated
The heart of the Gypsy Bot engine is the ActivateOrders input (found in the "Order Signal Modifier" settings).
The engine constantly monitors the output of all enabled Modules.
Long Votes: GoLongCount
Short Votes: GoShortCount
If you have 10 Modules enabled, and you set ActivateOrders to 7:
The engine will ONLY plot a Buy Signal if 7 or more modules return a valid "Buy" signal on the same closed candle.
If only 6 modules agree, the signal is rejected.
4. Technical Deep Dive: The 12 Modules
Gypsy Bot allows you to toggle the following modules On/Off individually to suit the asset you are trading.
Module 1: Modified Slope Angle (MSA)
Logic: Calculates the geometric angle of a moving average relative to the timeline.
Function: Filters out "lazy" trends. A trend is only considered valid if the slope exceeds a specific steepness threshold.
Module 2: Correlation Trend Indicator (CTI)
Logic: Measures how closely the current price action correlates to a straight line (a perfect trend).
Function: Ensures that we are moving up with high statistical correlation, reducing fake-outs.
Module 3: Ehlers Roofing Filter
Logic: A spectral filter combining High-Pass (trend removal) and Super Smoother (noise removal).
Function: Isolates the "Roof" of price action to catch cyclical turning points before standard moving averages.
Module 4: Forecast Oscillator
Logic: Uses Linear Regression forecasting to predict where price "should" be relative to where it is.
Function: Signals when the regression trend flips. Offers "Aggressive" and "Conservative" calculation modes.
Module 5: Chandelier ATR Stop
Logic: A volatility-based trend follower that hangs a "leash" (ATR multiple) from extremes.
Function: Used as an entry filter. If price is above the Chandelier line, the trend is Bullish.
Module 6: Crypto Market Breadth (CMB)
Logic: Pulls data from multiple major tickers (BTC, ETH, and Perpetual Contracts).
Function: Calculates "Market Health." If Bitcoin is rising but the rest of the market is dumping, this module can veto a trade.
Module 7: Directional Index Convergence (DIC)
Logic: Analyzes the convergence/divergence between Fast and Slow Directional Movement indices.
Function: Identifies when trend strength is expanding.
Module 8: Market Thrust Indicator (MTI)
Logic: A volume-weighted breadth indicator using Advance/Decline and Volume data.
Function: One of the most powerful modules. Confirms that price movement is supported by actual volume flow. Recommended setting: "SSMA" (Super Smoother).
Module 9: Simple Ichimoku Cloud
Logic: Traditional Japanese trend analysis.
Function: Checks for a "Kumo Breakout." Price must be fully above/below the Cloud to confirm entry.
Module 10: Simple Harmonic Oscillator
Logic: Analyzes harmonic wave properties to detect cyclical tops and bottoms.
Function: Serves as a counter-trend or early-reversal detector.
Module 11: HSRS Compression / Super AO
Logic: Detects volatility compression (HSRS) or Momentum/Trend confluence (Super AO).
Function: Great for catching explosive moves resulting from consolidation.
Module 12: Fisher Transform (MTF)
Logic: Converts price data into a Gaussian normal distribution.
Function: Identifies extreme price deviations. Uses Multi-Timeframe (MTF) logic to ensure you aren't trading against the major trend.
5. Global Inhibitors (The Veto Power)
Even if 12 out of 12 modules vote "Buy," Gypsy Bot performs a final safety check using Global Inhibitors.
Bitcoin Halving Logic: Prevents trading during chaotic weeks surrounding Halving events (dates projected through 2040).
Miner Capitulation: Uses Hash Rate Ribbons to identify bearish regimes when miners are shutting down.
ADX Filter: Prevents trading in "Flat/Choppy" markets (Low ADX).
CryptoCap Trend: Checks the total Crypto Market Cap chart for broad market alignment.
6. Risk Management & The Dump Protection Team (DPT)
Even in this Indicator version, the RM logic runs to generate Exit Signals.
Dump Protection Team (DPT): Detects "Nuke" (Crash) or "Moon" (Pump) volatility signatures. If triggered, it plots an immediate Exit Signal (Yellow Plot).
Advanced Adaptive Trailing Stop (AATS): Dynamically tightens stops in low volatility ("Dungeon") and loosens them in high volatility ("Penthouse").
Staged Take Profits: Plots TP1, TP2, and TP3 events on the chart for visual confirmation or partial exit alerts.
7. Recommended Setup Guide
When applying Gypsy Bot to a new chart, follow this sequence:
Set Timeframe: 4 Hours (4H).
Tune DPT: Adjust "Dump/Moon Protection" inputs first. These filter out bad signals during high volatility.
Tune Module 8 (MTI): Experiment with the MA Type (SSMA is recommended).
Select Modules: Enable/Disable modules based on the asset's personality (Trending vs. Ranging).
Voting Threshold: Adjust ActivateOrders to filter out noise.
Alert Setup: Once visually satisfied, use the "Any Alert Function Call" option when creating an alert in TradingView to capture all Buy/Sell/Close events generated by the engine.
8. Technical Specs
Engine Version: Pine Script V6
Repainting: This indicator uses Closed Candle data for all Risk Management and Entry decisions. This ensures that signals do not vanish after the candle closes.
Visuals:
Blue Plot: Buy/Sell Signal.
Yellow Plot: Risk Management (RM) / DPT Close Signal.
Green/Lime/Olive Plots: Take Profit hits.
Disclaimer:
This script is a complex algorithmic tool for market analysis. Past performance is not indicative of future results. Cryptocurrency trading involves substantial risk of loss. Use this tool to assist your own decision-making, not to replace it.
9. About Signal Lynx
Automation for the Night-Shift Nation 🌙
Signal Lynx focuses on helping traders and developers bridge the gap between indicator logic and real-world automation. The same RM engine you see here powers multiple internal systems and templates, including other public scripts like the Super-AO Strategy with Advanced Risk Management.
We provide this code open source under the Mozilla Public License 2.0 (MPL-2.0) to:
Demonstrate how Adaptive Logic and structured Risk Management can outperform static, one-layer indicators
Give Pine Script users a battle-tested RM backbone they can reuse, remix, and extend
If you are looking to automate your TradingView strategies, route signals to exchanges, or simply want safer, smarter strategy structures, please keep Signal Lynx in your search.
License: Mozilla Public License 2.0 (Open Source).
If you make beneficial modifications, please consider releasing them back to the community so everyone can benefit.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
Free Scripts supporting Automation for the Night-Shift Nation. 🌙
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
Free Scripts supporting Automation for the Night-Shift Nation. 🌙
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.