Gold AI: Hyper-Frequency 1minute Scalper The Gold AI: Hyper-Frequency is a high-precision scalping tool specifically engineered for the unique volatility of XAUUSD on lower timeframes (1m, 5m). Unlike traditional lagging indicators, this script utilizes a Lorentzian Distance Classifier —a machine learning approach that finds historical price fractals similar to current market conditions to predict the next high-probability move.
This indicator is designed for "Hyper-Frequency" trading, meaning it prioritizes capturing multiple micro-moves while using a three-stage Dynamic Take Profit system to let "runners" extend during strong momentum bursts.
█ THE AI CORE: LORENTZIAN CLASSIFICATION
Instead of standard Euclidean distance, this script employs Lorentzian Distance . This metric is superior for financial time series because it is less sensitive to extreme outliers, allowing the AI to identify patterns in "noisy" 1-minute gold charts that other models might miss.
The AI evaluates three key "features" to find matches: 1 — RSI (7): Momentum and overbought/oversold status. 2 — MFI (7): Money Flow Index to track institutional volume. 3 — ROC (3): Rate of Change to detect immediate velocity.
█ DYNAMIC PROFIT SCALING
To solve the "Gold Problem"—where price often spikes past targets or reverses instantly—we implemented a 3-Stage Profit Extender:
• Stage 1 (Initial TP): Targets a quick scalp (default 1.0 ATR). • Stage 2 (Extension): If momentum remains strong, the TP is automatically pushed further. The Stop Loss moves to Breakeven at this stage. • Stage 3 (Moonshot): For high-velocity moves, the TP extends to a major multiplier while the Stop Loss trails the previous candle's high/low.
█ KEY FEATURES
• K-Neighbors Engine: Analyzes the 'K' most similar historical instances to generate buy/sell "votes." • Sensitivity Control: Adjust how strictly the AI matches patterns. Lower values = higher accuracy; higher values = more frequent trades. • Volatility Filter (ATR): All targets and stops are mathematically pegged to current volatility, ensuring the script adapts whether the market is quiet or explosive. • Volume Gatekeeper: Filters out "fake-outs" that occur on low-volume retail spikes.
█ HOW TO USE
Asset: Optimized for XAUUSD (Gold).
Timeframe: Best performance on 1m or 5m charts.
Session: High-frequency signals are most reliable during London and New York sessions.
Confirmation: For maximum safety, enable the "Filter by 200 EMA" in settings to only take trades in the direction of the macro trend.
Disclaimer: Trading Gold involves high risk. This AI tool is designed to assist in decision-making and pattern recognition. Always perform your own due diligence and use proper risk management. Past performance does not guarantee future results.
Penunjuk Pine Script®






















