MT4 EA Based on Multi-Timeframe Session High/Low Breakout Logic with Risk Management

MQL4 EA Forex Strategy optimization

작업 종료됨

실행 시간 13 일
고객의 피드백
i am pleased with the excellent work !
피고용인의 피드백
good customer, easy to communicate with.

명시

I want a professional Expert Advisor (EA) for MetaTrader 4, designed to work on any currency pair and based on a multi-timeframe breakout and retest strategy using session high/low levels.


🔧 EA Specifications:

✅ General Logic:

  • EA should operate based on two timeframes:

    • If I attach it on M1, it uses M1 and H1

    • If I attach it on M5, it uses M5 and H4


⏱️ 1. Session Detection and Level Drawing:

  • EA identifies a session window:

    • For example, from 13:00 to 14:00 on H1 chart

  • During this hour:

    • Place two vertical lines at the start and end of the session (13:00 and 14:00)

    • Detect the highest high and lowest low between 13:00 and 14:00

    • Draw horizontal lines for the high and low levels (on chart and for logic)


🔍 2. Signal Detection (during next session):

  • From 14:00 to 15:00, EA monitors price action.

  • A valid signal occurs if:

    1. Price breaks either the high or low level with candle body (wicks don't count)

    2. Then forms a trend by also breaking the opposite level with candle body

This confirms a directional breakout and retest.


📈 3. Trade Entry Rules:

After a valid breakout in both directions, EA places a Buy Limit or Sell Limit based on trend direction:


🟩 Buy Setup (Bullish Breakout):
  • First, price breaks the low, then moves up and breaks the high

  • Entry: Place Buy Limit at the lowest candle body close inside the move

  • Stop Loss (SL):

    • If the candle has a wick → place SL just below the wick

    • If no wick → calculate pip range of the longer of the two candles involved, divide by 4, and subtract from entry

  • Take Profit (TP): Use Risk-to-Reward = 1:5


🟥 Sell Setup (Bearish Breakout):
  • First, price breaks the high, then drops and breaks the low

  • Entry: Place Sell Limit at the highest candle body close

  • SL/TP logic same as in Buy setup


⚠️ 4. Trade Restrictions:

  • Only one or two trades per session:

    • If no signal → no trade

    • If a trade hits TP → do not enter another trade

    • If a trade hits SL → EA is allowed to enter one more trade if a new valid signal appears

    • If second trade also hits SL → no further trades


⏳ 5. Limit Order Expiration:

  • All Buy/Sell Limit orders are only valid during the next hour after the session

    • Misol: sessiya 13:00–14:00, keyin kirish/savdo 14:00–15:00 gacha bo'lishi kerak.

    • Agar narx soat 15:00 ga qadar buyurtma chegarasini qo'zg'atmasa → buyurtmani bekor qiling va chizilgan darajalarni o'chiring


⚙️ Kirishlar:

Faqat bitta kirish parametri talab qilinadi:

  • RiskPerTrade (%) : SL asosidagi savdo boshiga xavf. Misol uchun, agar ga o'rnatilgan bo'lsa 1 , har bir SL uchun hisob balansining 1% xavf ostida bo'ladi.


📊 Diagramma ko'rsatish:

EA diagrammada quyidagilarni ko'rsatishi kerak:

  • Yuqori/past darajalar uchun gorizontal chiziqlar

  • Seansning boshlanishi va tugashi uchun vertikal chiziqlar

  • Savdo faol bo'lganda kirish, SL va TP darajalari

  • aaa_4949 Grafikda EA nomini ko'rsating


Iltimos, EA to'g'ri risklarni boshqarishdan foydalanishiga va barcha standart MT4 brokerlariga mos kelishiga ishonch hosil qiling.


파일:

PNG
ea_Breakout.png
274.7 Kb

응답함

1
개발자 1
등급
(7)
프로젝트
7
86%
중재
0
기한 초과
0
무료
2
개발자 2
등급
(58)
프로젝트
90
43%
중재
4
0% / 100%
기한 초과
3
3%
작업중
3
개발자 3
등급
(298)
프로젝트
477
40%
중재
105
40% / 24%
기한 초과
81
17%
로드됨
게재됨: 2 코드
비슷한 주문
I need a simple semi-auto assistant for XAUUSD on MT5. Main functions: * BOS detection * CHOCH detection * Liquidity sweep detection * Buy/Sell arrows * London & New York session filter * Alert notifications * Simple dashboard No martingale. No grid. I need clean and optimized code with editable settings. Do you have experience with SMC/ICT concepts and XAUUSD? Can you build something like this
Язык платформы: MQL4 или MQL5 (уточним с выбранным исполнителем). Тип проекта: Информационный советник-сканер. БЕЗ автоматической торговли (без открытия ордеров). Краткое описание задачи Необходимо разработать высокооптимизированный многопоточный сканер рынков, который будет одновременно мониторить от 250 до 400 торговых инструментов (Forex, Crypto, Индексы, Акции). Система работает на базе 5 независимых виртуальных
Добрый день. Нужно написать советника: - Хеджирование ( открытия двух сделок одновременно buy, sell) - Buy например в плюсе, то СЛ в безубыток с тралом и пирамидингом (набор объема в buy) - Sell в минусе, то двигается стоп в безубыток buy с набором объема в sell -Трал ордера когда их как минимум 4 в одну сторону (Настраиваемое) -П ирамидинг ордеров через каждые 10 п, усреднение на том же уровне где и открытие ордера
Ищу для покупки исходный код адекватного торгового робота на долгосрок. Интересуют только прозрачные алгоритмы с понятным обоснованием входов и выходов. Рассматриваются работы которые торгуют от 1 года не менее имеют инвест пароль от счета + как дополнения сигнал на мкл просьба остальным не писать. ищу для себя реально рабочую вещь. Спасибо
Добрый день! 30 - 100 USD
Требуется адаптировать простенький индикатор для МТ5 под новые существующие сейчас билды. Раньше в 2015гг. индикатор работал. как обновились билды на мт5 , индикатор перестал прикрепляться к графику. Мой емейл: Eduardfoer@mail.ru Ребята с адаптацией индикатора ничего не выходит!!! Нет Mq файла. Тогда может кто нибудь сможет не за бесплатно восстановить сам терминал МТ5 под билды.13-13-15 года. Чтобы индикатор встал

프로젝트 정보

예산
100+ USD
기한
에서 3  5 일