SD Crystal Heikin Ashi
- Uzmanlar
- Patel Dipeshkumar Ramanbhai
- Sürüm: 1.0
SD Crystal Heikin Ashi is a complete, automated trend-trading Expert Advisor designed to capture sustained market momentum while ruthlessly filtering out market noise. Built with strict risk management parameters in mind, this EA is perfectly suited for traders navigating strict drawdown rules, aggressive broker requirements, or proprietary firm evaluations.
Instead of relying on standard candlestick patterns which can be erratic, this EA calculates Heikin-Ashi values internally on the fly. It combines these smoothed price-action signals with a dual Moving Average (Fast and Slow) filter to ensure trades are only executed when the dominant trend is confirmed by momentum, slope, and price separation.
Key Features
-
100% Standalone & Validation-Friendly: Calculates Heikin-Ashi mathematically within the code. No external or custom indicators ( .ex5 files) are required, ensuring flawless execution and easy VPS deployment.
-
Evaluation & Prop-Firm Ready: Features strict pre-trade margin checks. The EA verifies available free margin before execution, protecting your account from sudden stop-outs during high volatility.
-
Advanced Safe-Exit Logic: Built-in "Safe Stops" algorithm automatically normalizes prices and pushes Stop Loss / Take Profit targets slightly wider if your broker's minimum STOPS_LEVEL demands it, completely eliminating [Invalid Stops] or [Invalid Volume] errors.
-
Dynamic Position Reversal: Automatically detects sudden trend shifts. If a valid opposite signal prints before your SL or TP is hit, the EA instantly closes the open position and reverses direction to catch the new wave.
-
Auto-Lot Compounding: Safely scale your account with a dynamic risk-percentage calculator, or toggle it off to use strict fixed lot sizes.
-
Clean Visual Dashboard: An unobtrusive, on-chart UI displays your live floating PNL and active EA status without cluttering your workspace.
How the Strategy Works
The EA looks for precise moments where market momentum flips in the direction of the macro trend:
-
The Buy Signal: The Heikin-Ashi candles must shift from Red (Bearish) to Green (Bullish). The price must be printing above both the Fast and Slow Moving Averages with clear visual separation, and the Slow MA must be angled upward.
-
The Sell Signal: The Heikin-Ashi candles must shift from Green (Bullish) to Red (Bearish). The price must be printing below both the Fast and Slow Moving Averages with clear visual separation, and the Slow MA must be angled downward.
Input Parameters
--- Strategy Settings ---
-
Fast MA Period (Default: 12): The lookback period for the faster, short-term moving average.
-
Slow MA Period (Default: 50): The lookback period for the slower, macro-trend moving average.
-
MA Method (Default: SMA): Choose between Simple Moving Average (SMA) or Exponential Moving Average (EMA) to dictate how tightly the averages hug the price.
--- Lot Size Settings ---
-
Use Auto Lot (Default: False): Set to True to enable dynamic position sizing based on account balance. (Note: Defaulted to False for safe initial testing).
-
Risk Percent (Default: 1.0): If Auto Lot is True , the EA will calculate the lot size so that the margin used equals exactly this percentage of your total balance.
-
Fixed Lot Size (Default: 0.01): The exact lot size traded if Auto Lot is set to False .
-
Magic Number: A unique identifier allowing the EA to manage its own trades without interfering with other robots on your account.
--- Exit Logic ---
-
Stop Loss (in Points): A hard stop placed behind the entry price to cap maximum risk. (Set to 0 to disable).
-
Take Profit (in Points): A hard target placed ahead of the entry price to lock in profits. (Set to 0 to disable).
Recommendations & Best Practices
-
Timeframes: H1, H4, or D1. (Heikin-Ashi strategies perform significantly better on higher timeframes where intraday noise is eliminated).
-
Pairs: Highly trending assets such as XAUUSD (Gold), EURUSD, GBPUSD, or US Indices (US30, NAS100).
-
Account Type: A low-spread ECN or Raw account is highly recommended to maximize the efficiency of the entry and exit points.
-
VPS: As with all automated systems, running the EA on a low-latency VPS guarantees the algorithm can track new bars and execute signal reversals 24/5 without interruption.
