İş tamamlandı
İş Gereklilikleri
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:
-
Price breaks either the high or low level with candle body (wicks don't count)
-
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.