Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Institutional K-Means Machine Learning Liquidity Clusters - indicator for MetaTrader 5

Amanda V | KayruYuta
Published by:
Amanda Vitoria De Paula Pereira
Views:
103
Published:
Print (5).jpg (285.78 KB)
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Flaw in Retail Support & Resistance

Retail traders manually draw horizontal support and resistance lines based on visual memory and subjective bias, this manual approach is statistically invalid. Institutional algorithms do not care about a line you drew on a chart; they operate on volume density and liquidity clustering.

Print


Unsupervised Machine Learning (K-Means)

To eliminate human bias, quantitative hedge funds use data science. The Institutional K-Means Liquidity Clusters indicator brings unsupervised machine learning directly into your MQL5 terminal.

The algorithm processes hundreds of historical price points and mathematically groups them into distinct clusters of high density, the center of these clusters (the "Centroids") represents the exact price levels where liquidity is mathematically concentrated.


Core Quantitative Architecture

  • Mathematical Objectivity: Automatically finds the exact mean of execution clusters, plotting dynamic support and resistance levels that adapt to the shifting market regime.

  • Zero External Dependencies: The classic K-Means algorithm was written natively in C++ (MQL5), meaning it executes complex machine learning arrays in microseconds without requiring slow Python bridges or external DLLs.

  • Dynamic Re-clustering: The engine recalculates the centroids at the close of specific algorithmic intervals to ensure your liquidity map is always aligned with the most recent institutional order flow.


Execution Protocol

  1. Attach the Engine: Deploy the indicator on structural timeframes (H1, H4, or D1) to map the macro liquidity clusters.

  2. Trade the Centroids: Wait for price action to re-test these machine-calculated levels. Since these lines represent maximum historical density, they act as massive magnetic zones for mean-reversion or high-probability breakout retests.

  3. Combine with Flow: Use this macro-map in conjunction with order flow indicators (like CVD or Z-Score) to snipe entries when the price hits a K-Means centroid.

HTF Reversal Divergences HTF Reversal Divergences

A multi timeframe indicator which features RSI divergence. + Buy/Sell signals Inspired from trading view.

Hon APS Advanced Pattern Scanner with DOM and  News Integration Hon APS Advanced Pattern Scanner with DOM and News Integration

Hon-APS (Advanced Pattern Scanner) is a sophisticated, open-source Expert Advisor for MT5. Unlike typical retail bots relying on lagging indicators, Hon-APS trades structural breakouts backed by quantitative Order Flow algorithms. It actively scans for classical chart patterns (e.g., Head & Shoulders, Bottoms, Triangles) and validates entries using L2 Order Book absorption and bid/ask imbalances. Complete with a polished on-chart UI, true Kelly Criterion risk management, and a robust macroeconomic news scraper, it's designed for prop-firm viability and high-end capital preservation.

Hon Matrix Hon Matrix

Hon-Matrix is an advanced algorithmic trading system that combines Price Action, Volatility Analysis, and Real-Time News Filtering. Unlike standard "static" EAs, Hon-Matrix utilises a dynamic decision-making engine that identifies the current market phase (Trending vs. Ranging) and switches its entry logic accordingly. It features a professional-grade on-chart dashboard allowing for live parameter adjustments without restarting the EA, making it a powerful tool for both automated prop-firm passing and personal capital growth.

MACD Signals MACD Signals

Indicator edition for new platform.