Infinity Algo

Renamed "Dark Indicator" to "Infinity Algo"
Added possible Long/Short coming + Alerts (beta) + History
Added dynamic Take Profits and Stop Loss
Added option to view only Long or Short Trades
Default Leverage changed to 50x
Added Beta Take Profits
Changes to text
Bux Fixes
Changed Colors
New ribbon and channel bands
New Bar Coloring Based on Signal Strenght
New Background Coloring
Order Blocks with Breaks and Exits
-New Filter for ranging market
-New menu
⚠️Remove the old script and reload the script from invite-only scripts again to get a new version.
📝Docs will be updated in the near future.
👾You can contact us regarding bugs.
-Adjusted plotshapes sizing
⚠️Remove the old script and reload the script from invite-only scripts again to get a new version.
📝Docs will be updated in the near future.
👾You can contact us regarding bugs.
This update represents a significant evolution from V2.0, introducing powerful new adaptive capabilities and refining existing features.
🚀 Major Updates & New Features:
Pine Script V6 Update: The script has been migrated to Pine Script version 6, leveraging the latest features and potential performance improvements of the platform.
🧠 AI Optimization Engine (Major Addition):
Adaptive Signals: Introduced a new "AI" signal mode (Show Signals Type input). When selected, the indicator dynamically adapts its core parameters based on machine learning analysis of recent market conditions.
Parameter Simulation: The AI engine continuously simulates hundreds of configurations for the primary momentum oscillator (Sensitivity, Upper/Lower Thresholds) on historical data.
Performance Evaluation: Each simulated configuration is scored based on a user-selectable metric (e.g., "Profit Factor \* Sqrt(Trades)", "Win Rate", "Average Profit"). Dedicated AI simulation TP/SL percentages are used for this evaluation.
Volatility Clustering (K-Means): Configurations are automatically grouped (clustered) based on their performance scores. These clusters typically align with different market volatility regimes (Low, Medium, High).
Dynamic Selection: The indicator identifies the current volatility regime and selects the best-performing configuration from the corresponding cluster (with sufficient simulated trades).
Real-time Threshold Adjustment: The selected AI thresholds are further fine-tuned based on immediate volatility fluctuations.
AI Dashboard: An optional on-chart dashboard displays the parameters (Sensitivity, Winrate, Thresholds, Trade Count) of the currently active AI configuration.
New AI Inputs: Added a dedicated 🧠 AI Clustering section in settings to control the AI engine (Enable, Update Frequency, Sensitivity Range, Dashboard, Performance Metric, Simulation TP/SL).
🧹 Removed Features (Moved to New Indicator, Now rolling):
Order Blocks / Buy Sell Zones: The functionality for identifying and displaying Order Blocks (Buy/Sell Zones) has been removed.
Keltner Channel Bands: The optional Keltner Channel visualization has been removed.
Take Profit Exit: Simplified the inputs.
✨ Refinements & Improvements:
Signal Type Input: Changed Show Signals from a number (1-4) to a descriptive dropdown string (Normal + Smart, Normal Only, Smart Only, Regular, AI) for better usability.
Global Settings & Themes:
Consolidated Text Color, Text Size, Color Theme, and Precision inputs into a single "Global Settings" group for better organization.
Introduced a wide array of predefined Color Themes (Default, Dark, High Contrast, Colorblind, Neon Teal, Infinity, etc.) that apply consistent coloring across indicator elements, replacing the simple Bull/Bear color inputs.
TP/SL/Entry Visualization: Changed the plotting style for Take Profit, Stop Loss, and Entry Price levels from individual circles to cleaner dotted lines with associated text labels, which extend forward from the entry bar. Old lines/labels are now correctly deleted when a new position starts.
TP Hit Plotting: Implemented a more efficient system to detect and plot Take Profit hits using small circles, reducing the number of plotshape calls.
"Possible Trade" Indicator: Refined the visual indicator for potential upcoming trades, now using an emoji (➕) and clearer text formatting.
🔔 Alerts:
Added new alert conditions specifically for the "AI" Buy/Sell signals.
Improved Take Profit alert conditions to correctly trigger based on the refined TP hit detection logic when using 'Percentage' exits.
Removed alerts related to Order Blocks.
Code Structure: General code refactoring and organization improvements, including better commenting and grouping of related logic (especially the new AI sections).
We are currently updating the documentation
Note: Bugs may appear
This update focuses on a significant overhaul of the AI engine for more robust performance, the introduction of a brand-new signal mode, and several key usability improvements.
🚀 Major Updates & New Features
- New "HL Sniper" Signal Mode:
- The old "Regular" signal type has been replaced with the new, more advanced HL Sniper mode.
- Completely Overhauled AI Engine:
- Advanced Performance Simulation:
The AI's back-testing engine has been rebuilt from the ground up. It now runs a more realistic simulation, accounting for Stop Loss, Take Profit, and opposite-signal exits to score each configuration. This provides a far more accurate evaluation of a strategy's true historical performance.
- Simplified & More Robust AI Selection:
The AI no longer separates strategies into volatility clusters. Instead, it now analyzes all simulated configurations and selects the single best-performing strategy overall, making its choice more direct and reliable.
- Stable AI Parameters:
Redesigned AI Dashboard:
- The dashboard has been revamped to display more meaningful, at-a-glance performance data.
- It now includes leveraged PnL projections (both in % and $), using the script's Leverage input and a simulated starting capital.
- The "Sim. Metric Val" field has been removed and replaced with the active Leverage setting for better clarity.
✨ Refinements & Improvements
- Granular Sensitivity Control:
- The main Sensitivity input now accepts decimal values (e.g., 18.1, 18.5), allowing for finer control over the oscillator's period.
- Customizable Thresholds:
- Added Upper Threshold and Lower Threshold inputs. Users can now directly adjust the RSI levels required to trigger buy and sell signals, offering greater control over sensitivity.
- Removed Ranging Market Filter:
The experimental Ranging Market Filter (Beta) toggle has been removed to simplify settings and focus on the more advanced AI and HL Sniper modes.
- Cleaner Chart Interface:
- The redundant "Show Buy/Sell Signals?" toggle has been removed.
- When a Take Profit level is hit, its price label is now hidden along with the line, preventing chart clutter during an open trade.
- Consistent Theming:
- The AI Dashboard text color is now correctly synced with the Global Text Color setting.
❗ Important: How to Update ❗
To ensure you have the latest version, you must remove the existing indicator from your chart and re-add it from the "Invite-Only Scripts" section.
If you require access or have any issues, please feel free to contact us.
Stop Loss Hit Alerts:
We've added two new alert conditions:
- 2.2 Stop Loss Long Hit
- 2.3 Stop Loss Short Hit
You can now create alerts to be notified the instant your Stop Loss level is triggered.
✨ Improvements & Bug Fixes
- Alert System Overhaul: All alert conditions have been re-structured and re-numbered sequentially for clarity and ease of use. This cleanup includes removing redundant combined alerts and adding back individual Buy/Sell - Normal and Buy/Sell - Smart alerts for more granular control.
- Corrected "Possible Coming" Signal Logic: Fixed a critical bug where the "Possible Long/Short Coming" alerts would trigger incorrectly when using the AI or HL Sniper signal modes. These pre-signal warnings are now correctly restricted to only the RSI-based modes (Normal & Smart).
❗ Important: How to Update ❗
To ensure you have the latest version, you must remove the existing indicator from your chart and re-add it from the "Invite-Only Scripts" section.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact InfinityAlgo directly.
Note that this private, invite-only script has not been reviewed by script moderators, and its compliance with House Rules is undetermined. TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Warning: please read our guide for invite-only scripts before requesting access.
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact InfinityAlgo directly.
Note that this private, invite-only script has not been reviewed by script moderators, and its compliance with House Rules is undetermined. TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Warning: please read our guide for invite-only scripts before requesting access.