MT5 Indicator with alerts and labels for HTF Engulfing or HTF Hammer/Shooting Star Bar Play (EHBP) with Multi-Timeframe Validation

İş tamamlandı

Tamamlanma süresi: 8 gün

İş Gereklilikleri

Only apply if you have experience in building multitimeframe indicator. Do not use any software to generate the code automatically.

Code should be concise and proper as per best practices and typed by you.


MQL5 Indicator Requirements: HTF Engulfing or HTF Hammer/Shooting Star Bar Play (EHBP) with Multi-Timeframe Validation


1. Input Parameters

Timeframe Selection

  • Higher Timeframe (HTF):

    • Options:  1 Month ,  1 Week ,  1 Day ,  8 Hour ,  4 Hour ,  2 Hour ,  1  Hour , 15 Minute

    • Default:  1 Day

  • Lower Timeframe (LTF):

    • Options:  1 Month ,  1 Week ,  1 Day ,  8 Hour ,  4 Hour ,  2 Hour ,  1  Hour , 15 Minute

    • Default:  4 Hour

  • Validation:

    • Ensure  LTF < HTF  (e.g., if HTF= 4 Hour , LTF cannot be  8 Hour ).

    • Show error message and disable calculations if invalid.


2. Core Logic

Step 1: Detect HTF Engulfing or Hammer Candle closure + PO3 Signals

  • Bullish Signal (HTF candle):

    • low < previous low   AND   close > previous open AND close >  Previous close  AND   close in Lower Timeframe above  retracement level of selected Fib after breaching below it in lower timeframe but closing above it in lower timeframe candle . Its not necessary that the HTF candle High will be above the high of its previous candle. Still it should be considered if other conditions are met.

  • Bearish Signal (HTF candle):

    • high > previous high  AND  close < previous open AND CLOSE < PREV close  AND   close in Lower Timeframe below retracement level of selected Fib after breaching above it in lower timeframe but closing below it in lower timeframe candle

      Its not necessary that the HTF candle Low will be below the low of its previous HTF candle. Still it should be considered if other conditions are met.

Step 2: Calculate Retracement Levels

For each HTF signal, compute Fibonacci levels as per selection multiple Fib levels can be selected like 26 percent, 38 percent, 50%, 61.8 percent etc:

  • Bullish:

    Copy

    25% = HTF High - (HTF High - HTF Low) * 0.25 38.2% = HTF High - (HTF High - HTF Low) * 0.382 50% = (HTF High + HTF Low) / 2 ...

  • Bearish:

    Copy

    25% = HTF Low + (HTF High - HTF Low) * 0.25 38.2% = HTF Low + (HTF High - HTF Low) * 0.382 ...

Step 3: Track LTF Candle Closes

For each LTF candle close:

  • Bullish Signal Check:
    If LTF candle:

    • Breached below a retracement level (intra-candle  low < level ).

    • Closed above the same level ( close > level ).
      → Trigger alert/label.

  • Bearish Signal Check:
    If LTF candle:

    • Breached above a retracement level (intra-candle  high > level ).

    • Closed below the same level ( close < level ).
      → Trigger alert/label.


3. Visualization & Alerts

Labels

  • Display only after LTF candle closes and conditions are met.

  • Format:

    • EBP [Level] Held (LTF)

    • Example:  EBP 38.2% Held (4H)

  • Placement:

    • Below/above the LTF candle that triggered the condition.

Retracement Lines

  • Plot horizontal lines for all active levels.

  • Color Coding:

    • Bullish: Shades of green.

    • Bearish: Shades of red.

Alerts

  • Trigger only after LTF candle closes. Give meaningful alerts which are descriptive and easy to understand. Print symbol name in alerts. In Chart labels show small labels like Green Up traingle for Bullish Setup and Red down triangle for Bearish setup.

  • Message Examples:

    • XAUUSD Bullish 38.2% Level Held on 4H LTF on 1 Day HTF at time 09:00 AM Swing Low in LTF price is 2912.

    • XAUUSD Bearish 61.8% Level Held on 2H LTF on 1 Day HTF  at time 02:00 PM Swing High in LTF price is 2952.


4. Technical Implementation

Key Functions

  1. Timeframe Validation:

    mql5
    Copy

    bool validateTimeframes() { int htfMinutes = convertToMinutes(htfInput); int ltfMinutes = convertToMinutes(ltfInput); return (ltfMinutes < htfMinutes); }

  2. Track Active Signals:
    Use arrays/structs to store:

    • HTF signal type (bullish/bearish).

    • Retracement levels.

    • Corresponding LTF candle timestamps.

  3. Check LTF Closes:

    mql5 code example just for reference

    void checkLTFCloses() {  
      for (int i = 0; i < arraySize(activeSignals); i++) {  
        // Get retracement levels for signal[i]  
        for (int j = 0; j < levelsCount; j++) {  
          double level = activeSignals[i].levels[j];  
          if (isBullish) {  
            bool breached = ltfLow < level;  
            bool closedAbove = ltfClose > level;  
            if (breached && closedAbove) triggerAlert();  
          } else {  
            bool breached = ltfHigh > level;  
            bool closedBelow = ltfClose < level;  
            if (breached && closedBelow) triggerAlert();  
          }  
        }  
      }  
    }  

No Repainting

  • All labels/alerts are tied to closed LTF candles (confirmed price action).


5. Example Workflow

  1. HTF Signal: Bullish Engulfing + PO3 on  1D  candle.

  2. Calculate Levels: 25% = 1900, 38.2% = 1850, 50% = 1800.

  3. LTF Candle (4H):

    • Candle 1: Low = 1845 (breaches 38.2%), Close = 1855 → Triggers alert/label.

    • Candle 2: Close = 1895 (no breach) → No action.

  4. Labels: Display  EBP 38.2% Held (4H)  below Candle 1 after it closes.


6. Deliverables

  1. Indicator Code:

    • .mq5  file with input validation, multi-timeframe logic, and alerts. Source code and executable both for MT5. Strategy should work in Strategy tester also when replaying.

  2. Documentation:

    • Clear comments explaining HTF/LTF interaction. Inline comments and Header comments.

  3. Testing:

    • Verify on  EURUSD  (HTF=1D, LTF=4H). XAUUSD, USOIL, US30, BTCUSD on various timeframe combinations.

    • Ensure labels/alerts never repaint.






Example of 50% fib retracement after a Bearish Engulfing HTF candle.











































Yanıtlandı

1
Geliştirici 1
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(104)
Projeler
166
24%
Arabuluculuk
23
9% / 78%
Süresi dolmuş
16
10%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(3)
Projeler
4
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(64)
Projeler
77
55%
Arabuluculuk
4
0% / 25%
Süresi dolmuş
1
1%
Çalışıyor
Yayınlandı: 6 kod
5
Geliştirici 5
Derecelendirme
(14)
Projeler
14
14%
Arabuluculuk
8
0% / 88%
Süresi dolmuş
2
14%
Yüklendi
6
Geliştirici 6
Derecelendirme
(9)
Projeler
11
18%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
4
36%
Serbest
7
Geliştirici 7
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
(308)
Projeler
553
35%
Arabuluculuk
79
32% / 42%
Süresi dolmuş
200
36%
Yüklendi
9
Geliştirici 9
Derecelendirme
(2)
Projeler
3
0%
Arabuluculuk
8
13% / 88%
Süresi dolmuş
1
33%
Serbest
Benzer siparişler
2 FX pairs M15 execution with higher timeframe bias Session-based trading (UK time) Fixed % risk per trade Controlled pyramiding (add to winners only) Strict daily loss limits (FTMO-style) Proper order handling (SL always set) Basic logging (CSV) Strategy logic will be provided in detail after NDA / agreement. Must deliver: Source code (.mq5) Compiled file (.ex5) Clean, well-commented code Short support window for
Hi, are you able to create a script/indicator on tradingview that displays a chart screener and it allows me to input multiple tickers on the rows. then the colums with be like "premarket high, premarket low, previous day high, previous day low" . When each or both of the levels break, there will pop up a circle on the chart screener, signaling to me what names are above both PM high and previous day high or maybe
I need an Expert Advisor for MetaTrader 5 (MQL5) to trade XAUUSD based on a simple price movement cycle. Strategy logic: • The EA opens a Buy and a Sell at the same time (one pair per cycle). • Only ONE Sell position must exist at any time. • Every Buy must be opened together with a Sell. Cycle rules: • Step movement = 10 USD in gold price. • CycleEntryPrice = the OPEN PRICE of the last cycle BUY order. • If price
I am looking for a professional MQL5 developer to build a MetaTrader 5 Expert Advisor from scratch. The EA will be called LadyKiller EA. It must trade only the following instruments: • XAUUSD (Gold) • US30 / Dow Jones Index Requirements: • Strong and reliable buy and sell entry logic • Stop Loss and Take Profit system • Risk management (lot size control) • Maximum trades protection • Drawdown protection • Trend
I need an mql5 EA which can be used with 100$ capital very low drawdown The EA should be high frequency trading special for XAUUSD and btcusd or binary options but also the EA should be testable via strategy tester and demo test for five days is needed NO SELECTION CAN BE DONE WITHOUT TESTING when applying make sure you send the backtester results with demo EA testable via strategy tester
I currently have a powerful and well-structured Expert Advisor available on the MT5 platform. This EA is designed with: ✅ Advanced entry and exit logic ✅ Smart risk management system ✅ Automatic lot sizing option ✅ Break-even and trailing stop protection ✅ Spread and session filters ✅ Drawdown control features ✅ Optimized for XAUUSD and scalping strategies ✅ Suitable for prop firm challenges like FTMO It is built for
Do you need a profitable and well-structured trading strategy converted into a fully automated Expert Advisor on the MT5 platform? I specialize in developing advanced, high-performance EAs with: ✅ Smart entry & exit logic ✅ Risk-based lot size calculation ✅ Break-even & trailing stop system ✅ Spread & session filters ✅ Daily drawdown protection ✅ Prop firm (FTMO-style) risk compliance ✅ Fully automated trade
Hello, I'm looking to find out the cost of creating a mobile trading robot. I've tried to describe it as thoroughly as possible in the following document. I look forward to your response. I'd like to know the costs, delivery time, and how you plan to implement it before making a decision
I have an existing MT5 Expert Advisor (“E-Core”). I need an experienced MQL5 developer to integrate a structured risk management upgrade and a higher timeframe trend filter into the current code. Two files will be provided: 1️⃣ E-Core Source Code (Current Version) 2️⃣ Update Instructions File (contains exact inputs, functions, and logic to integrate) The developer must: Integrate the update logic
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs

Proje bilgisi

Bütçe
30+ USD
Son teslim tarihi
from 1 to 2 gün