CS PatternAIfy recognition
- Experts
- Version: 1.0
- Activations: 20
PatternAIfy is an advanced algorithmic trading system designed to merge traditional technical analysis with modern machine learning. Inspired by the foundational principles outlined in Fred K. H. Tam's authoritative book, "The Power of Japanese Candlestick Charts", this Expert Advisor identifies high-probability candlestick formations and validates them through a sophisticated artificial intelligence engine.
By combining classical charting wisdom with deep quantitative analysis, PatternAIfy is engineered to navigate complex market environments with precision.
Advantages and Features
- Neural Network Core: Utilizes a native perceptron architecture enhanced by the Adam Optimizer to dynamically adapt to shifting market conditions and score pattern confidence.
- Institutional Entry Mode: Avoids volatile pullbacks by utilizing pending stop orders for institutional-grade execution confirmation.
- Elite Matrix Multi-Timeframe Alignment: Analyzes structural fractal alignments across macro timeframes (H4 and D1) before permitting localized entries.
- Volume Spread Analysis (VSA): Correlates price action with volume spikes to validate the authenticity of breakouts and candlestick formations.
- Dynamic Supply and Demand: Maps institutional order blocks natively to prevent trading directly into major resistance or support zones.
- Portfolio Hedging Matrix: Automatically calculates Pearson correlation across traded pairs and implements a multi-tier basket profit management system to manage exposure.
- Strict Risk Management: Incorporates advanced partial take profits, break-even mechanics, and a fractal-based dynamic trailing stop to protect capital.
- Ghost Protocol: Conceals hard stop loss and take profit levels from the broker server while adding humanized execution jitter.
Input Parameters
Strategy Settings
- Analysis Timeframe: The primary chart timeframe for pattern detection.
- Lot Sizing Mode: Choose between fixed fractional or fixed lot sizing.
- Fixed Lot Size: The volume used if fixed lot is selected.
- Risk Per Trade (%): The account risk per setup if fractional sizing is enabled.
- Kelly Multiplier: Fractional Kelly criterion for advanced position sizing.
- Max Daily Drawdown (%): Hard stop limit for daily account drawdown.
- Stop Loss (Base ATR Multiplier): Initial stop loss distance based on Average True Range.
- Take Profit (Base ATR Multiplier): Initial take profit distance based on Average True Range.
- Use Trailing Stop: Enables dynamic trailing of the stop loss.
- Trailing Method: Select between ATR-based or Fractal-based trailing mechanics.
Indicator Filters
- Use RSI / Stochastic / MACD / CCI: Toggles for standard oscillators to gauge momentum.
- Use Trend Filter: Toggles the macro trend directional filter.
- Trend (EMA) Period: Lookback period for the trend baseline.
- Hough S/R Filter: Toggles structural support and resistance detection.
Ghost Protocol (Anti-Manipulation)
- Use Stealth SL/TP: Hides actual stop loss and take profit levels from the broker.
- Max Spread (Points): Maximum allowed spread before execution is blocked.
- Humanized Execution Jitter: Adds micro-delays to simulate manual trading execution.
Hybrid Management
- Use Partial TP: Enables scaling out of profitable positions.
- Partial Target Ratio: The Risk-to-Reward ratio at which to take partial profit.
- Partial Close Volume (%): The percentage of the position to close at the partial target.
- Use Break-Even: Moves the stop loss to entry once the partial target is hit.
Dynamic Timeframe & Economic Calendar
- Auto-switch timeframe on high vol: Shifts to a secondary timeframe during extreme volatility.
- Volatility Ratio Threshold: The threshold required to trigger a timeframe shift.
- Block trading near high-impact news: Prevents entries around major economic events.
- Block X mins before/after news: Time windows to suspend trading operations.
Machine Learning Confidence
- Use Native Neural Network: Activates the AI scoring system for pattern validation.
- Minimum ML Confidence: The required AI probability threshold (0.0 to 1.0) to validate a pattern.
- Scale Lot Size by Confidence: Dynamically adjusts trade volume based on the AI's confidence score.
- Use Adam Optimizer (AI): Enables advanced weight adjustment for faster convergence.
Phase 2: Elite Matrix
- Multi-Timeframe Fractal Alignment: Requires macro trend alignment before entry.
- Macro Trend Timeframe: Set the overarching trend timeframe.
- Use Order Blocks: Enables trading around institutional supply/demand zones.
- Order Block Lookback: The number of bars to analyze for supply and demand.
- Use VSA: Activates Volume Spread Analysis filtering.
- Auto-Hedge Drawdown (%): The threshold to activate the Portfolio Hedging Matrix.
