Trader Dynamic Index
- 专家
- Mohamed Jalloh
- 版本: 1.0
- 激活: 5
Core Features and Filters
-
TDI (Traders Dynamic Index)
The EA computes the TDI using selectable candle types: Japanese, Heikin Ashi, or both. It calculates the TDI’s green (price MA), red (signal MA), and yellow (baseline) lines, along with Bollinger Bands using a custom standard deviation value. -
Multiple Filters for Trade Signals
-
Baseline Filter: Trades are filtered based on the TDI baseline value.
-
Ichimoku Cloud (Kumo) Filter: Optionally restricts trades to those above/below the cloud.
-
Trend Angle, SP Reversal, TDI Hook, TDI Squeeze, TDI Hidden, Green/Yellow Cross, Green Breaks BBand: These are additional signal and filter options that can be toggled via input parameters.
-
-
Candle Source Selection
The EA can operate on standard Japanese candles, Heikin Ashi candles, or require agreement from both (for confirmation).
Trade Management Features
-
Stop Loss and Take Profit
-
ATR-based calculation for dynamic stop loss (SL) and take profit (TP) levels, with multipliers adjustable via input.
-
Option to enable/disable stop loss on new trades.
-
-
Partial Profit Taking
-
The EA can close a percentage of the position (default 50%) when price reaches a partial TP based on ATR.
-
-
Trailing Stop
-
Uses ATR to trail the stop loss as price moves in favor of the trade.
-
-
Auto-Close After N Bars
-
Trades can be automatically closed after a user-defined number of candles.
-
-
Baseline Zero-Cross Exit
-
Positions are closed if the TDI baseline crosses the zero line in the opposite direction.
-
-
One Trade Per Day Option
-
Prevents multiple trades on the same symbol in a single day.
-
Helper Functions and Logic
-
Heikin Ashi Calculation
Custom function to compute Heikin Ashi candles for use in TDI and price action filters. -
ATR Calculation
Used for SL, TP, trailing stop, and partial profit logic. -
Bullish/Bearish Pattern Filters
Simple price action checks for bullish/bearish patterns, supporting both candle types. -
Position Management
Functions to check for open positions, close all positions, and close positions based on various criteria.
Key Input Parameters (User-Configurable)
| Parameter | Description |
|---|---|
| CandleSource | Candle type: Japanese, Heikin Ashi, or Both |
| RSI_Period | RSI period for TDI calculation |
| Price_MA_Period, Signal_MA_Period, Baseline_Period | Periods for TDI moving averages |
| BB_StdDev | Bollinger Band standard deviation for TDI |
| LotSize | Trade lot size |
| ATR_Mult_SL, ATR_Mult_TP | Multipliers for ATR-based SL/TP |
| OnlyOneTradePerDay | Restrict to one trade per day |
| UseBaselineFilter, UseIchimokuFilter, UseCloudFilter | Toggle various filters |
| TrailingStopATR_Mult | ATR multiplier for trailing stop |
| EnablePartialProfit, PartialProfitPct, PartialTP_ATR_Mult | Partial profit settings |
| UseStopLoss | Toggle stop loss |
| CloseTradeAfterCandles | Auto-close trade after N candles |
| EnableBaselineZeroCrossExit | Enable exit on baseline zero cross |
Summary
This EA is a comprehensive, multi-filter trading robot for MetaTrader 5. It combines TDI, Ichimoku, price action, and other technical signals with sophisticated trade management, including ATR-based stops, trailing, partial profit, and auto-close logic. All major features are user-configurable, allowing for flexible adaptation to different trading styles and market conditions
