INVITE-ONLY SCRIPT
Updated

Kairos QX Indicator [v1.7]

23
What’s New in v1.7?

Streak Analytics (Dashboard Expansion):

The dashboard now tracks Winning and Losing Streaks.

Max Consec. (TP / SL): Displays the highest number of wins and losses that occurred in a row (e.g., 5 / 3).

Avg Consec. (TP / SL): Calculates the average length of your winning and losing streaks (e.g., 2.4 / 1.8).

Updated Default "settings" for MNQ 5 MIN Candles


Full Script Description

This script is a professional-grade Mean Reversion & Trend Following Engine designed for automated execution. It acts as a bridge between discretionary chart analysis and algorithmic trading, allowing you to backtest complex ideas visually and then automate them via alerts without writing code.
1. Core Logic: The "Flip Switch" Strategy

Standard Mode (Mean Reversion):

The script identifies "exhaustion" points where price pierces the Bollinger Bands.

It bets on a reversal (e.g., Price > Upper Band = Short).

Inverse Mode (Trend Following - Default):

With the "Inverse Trades" box checked, the logic flips.

It identifies "breakout" points where price pierces the bands.

It bets on continuation (e.g., Price > Upper Band = Long).

2. Advanced Automation & Safety Features

This system is built to drive trading bots (like TradersPost or 3Commas) safely:

State-Aware Execution: It tracks its own trades (in_trade state). It will never fire a duplicate "Open" signal if a trade is already active, preventing accidental pyramiding.

No Trade Zone (Force Close): You can define a specific time window (default 15:10–17:00). If a trade is open when this time hits, the script immediately triggers a Close Alert, preventing overnight holds.

Signal Cooldown: Configurable "Signals to Skip" allows you to force a cooldown period after a trade closes to avoid over-trading in choppy conditions.

3. Real-Time Analytics Dashboard

The on-chart table provides a transparent, real-time backtest of your settings:

Equity Calculator: You can set a dollar value per point (e.g., $2 for MNQ). The dashboard calculates your estimated Net Profit/Loss based on the total points gained.

Streak Analysis: Shows both the Maximum and Average number of consecutive wins and losses, helping you understand the psychological difficulty of trading the strategy.

Data Integrity: It automatically detects "N/A" trades (candles that hit both SL and TP) and excludes them from the Win Rate calculation to ensure realistic statistics.

4. Modular "Recipe" Building

The strategy is highly customizable via the settings menu (no coding required). You can filter the Bollinger Band trigger with 10 different indicators:

Supported Filters: RSI, Stochastic, CCI, Williams %R, MFI, CMO, Fisher Transform, Ultimate Oscillator, and ROC.

Logic: All selected filters must agree with the main trigger for a trade to fire.

5. Visual Projection Engine

Glowing Outcomes: The script draws exact TP (Green) and SL (Red) boxes for past trades. These boxes glow to indicate the result, allowing for rapid visual verification of the strategy's performance.

Force Close Markers: Special gray markers appear on the chart where a trade was forced to close due to the "No Trade Zone" time limit.
Release Notes
Dashboard Updates

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.