Tarea técnica
Build MT5 Trading Robot Based on Adaptive Trendline Channel
Deliverables: .mq5 + .ex5 files (both required)
📐 INDICATOR STRUCTURE
Core Concept: The robot must be built using an Adaptive Trendline Channel structure.
To understand the required indicator logic, please download the free “Adaptive Trend” indicator by Henri Salvatore Bigatti on MQL5. The robot must replicate the trendline behavior shown in that indicator.
The indicator must automatically draw:
-
Support Trendline (TLL): Connects at least two key swing lows.
-
Resistance Trendline (TLH): Connects at least two key swing highs.
-
Channel: The area between TLL and TLH, forming a parallel trendline channel.
📊 CORE FEATURES REQUIRED
-
Fractal swing detection to find swing highs and lows.
-
Trendline regression fit (adaptive slope using standard deviation logic).
-
Automatic drawing of a parallel channel (based on the upper and lower trendlines).
-
Optional display of angle (α), acceleration (δ), and standard deviation (σ) for analysis purposes.
✅ PLATFORM
-
MetaTrader 5 (MT5) only.
📈 STRATEGY LOGIC TO INCLUDE
1. Breakout Strategy (with On/Off toggle)
-
Buy: Breakout above resistance line (TLH) with full candle close above it.
-
Default Stop Loss: 10 real pips below resistance
-
Default Take Profit: 1:2 risk/reward
-
Sell: Breakout below support line (TLL) with full candle close below it.
-
Default Stop Loss: 10 real pips above support
-
Default Take Profit: 1:2 risk/reward
2. Continuation Strategy
-
Sell: When price touches or enters resistance zone:
-
Detect bearish pin bar + bearish full candle close = Sell
-
Buy: When price touches or enters support zone:
-
Detect bullish pin bar + bullish full candle close = Buy
3. Add log Journal
4. INPUT TAB SETTINGS
-
All automatic features must include manual override options via the input tab.
-
Strategies (Breakout and Continuation) must be independently toggleable (On/Off).
-
Number of trades manual.
.
Please send both the .mq5 (source code) and .ex5 (compiled file) upon completion. Thank you!