AlertManual

Touch & Proximity

🟑EMA5 wick

Wick touches EMA5.

L≀EMA5+0.10
🟑SMA21 zone

Close in Β±$X of SMA21.

|cβˆ’SMA21|≀zone
🟑SMA50 zone

Close in Β±$X of SMA50.

|cβˆ’SMA50|≀zone
🟑SMA100 zone

Close in Β±$X of SMA100.

|cβˆ’SMA100|≀zone
🟑SMA200 zone

Close in Β±$X of SMA200.

|cβˆ’SMA200|≀zone
TFZone width
M15Β±$3.00
H1Β±$5.00
H4Β±$5.00
D1Β±$5.00
W1Β±$5.00

MA Crosses

⚑21 Γ— 50

Fast vs medium β€” early shift.

sign flips
⚑21 Γ— 200

Fast vs slow β€” structural.

sign flips
⚑50 Γ— 200

Golden / death cross.

sign flips

Confluence

πŸ”΅Confluence locked

All 4 SMAs within $5.

spread ≀ $5
πŸ”΅Confluence broken

Compression released.

spread > $5

RSI Extremes

πŸ”΄RSI overbought

Short bias.

RSI(14) β‰₯ 70
🟒RSI oversold

Long bias.

RSI(14) ≀ 30

Mean-Reversion Stretch

πŸ”»πŸ”ΊSMA21 stretch

Most frequent.

|cβˆ’SMA21| > t
πŸ”»πŸ”ΊSMA50 stretch

Mid-term exhaustion.

|cβˆ’SMA50| > t
πŸ”»πŸ”ΊSMA200 stretch

Rare, high conviction.

|cβˆ’SMA200| > t
TFSMA21SMA50SMA200
M15$15$25$50
H1$35$60$120
H4$80$150$300
D1$180$300$600
W1$350$700$1,500
πŸ”» Above short setup πŸ”Ί Below long setup πŸ’Ž Premium + RSI aligned βœ… Resolved reversion in motion

EMA5 Sustained Stretch

πŸ”»πŸ”ΊEMA5 stretch

Price away from EMA5 for N+ closed bars. Detects exhaustion of impulse moves.

|cβˆ’EMA5| > t for N bars
⏱Duration filter

Counter resets when bar closes back inside threshold. Kills single-bar spikes.

default N = 2 bars
TFThresholdBars
M15disabledβ€”
H1$82
H4$252
D1$602
W1$1502

Key Levels Β· Daily

πŸ”Approach

Price within $4 of level β€” first heads-up.

|cβˆ’level| ≀ $4
⚠️Pre-touch

Price within $2 β€” get ready, fingers on button.

|cβˆ’level| ≀ $2
🎯Touch

Price within $1 of level β€” decision moment.

|cβˆ’level| ≀ $1
πŸ’₯Break

Closed bar pierces level by >$2.

|closeβˆ’level| > $2
πŸ”„Retest

Price returns to a broken level β€” high-quality entry signal.

broken β†’ at zone
↩️Rejection

Price leaves touch zone without breaking β€” level held.

at β†’ approach/far
Today (May 7)
Level 1$4,867
Level 2$4,821
Level 3$4,780
Level 4$4,728
Level 5$4,679
Level 6$4,639
Level 7$4,600
Level 8$4,552
Level 9$4,516
Level 10$4,466
{TF} timeframe {price} bar close {MA} moving average value {rsi} RSI(14) {n} bar count

System

EA startup Init
πŸ€– AlertManual started Symbol: XAUUSD Magic: {magic} TFs: {enabled} Cap: {cap} per side

Sent once on EA load. Confirms Telegram is wired.

Touch & Proximity

EMA5 wick touch A1
🟑 [{TF}] EMA5 touch Price: {price} EMA5: {ema5} Side: {above|below}
SMA zone entry A2–A5
🟑 [{TF}] {SMA} zone entry Price: {price} {SMA}: {value} Distance: {±$X.XX} Side: {above|below}

{SMA} = SMA21 / 50 / 100 / 200

MA Crosses

MA cross event A6–A8
⚑ [{TF}] {label} cross {↑|↓} A: {ma A} B: {ma B}

Label: SMA21Γ—SMA50, SMA21Γ—SMA200, SMA50Γ—SMA200. Skipped on init bar.

Confluence

Locked A9
πŸ”΅ [{TF}] Confluence LOCKED SMAs within ${spread} Price: {price} β†’ Directional break expected
Broken A9b
πŸ”΅ [{TF}] Confluence broken SMA spread: ${spread} (was ≀ ${maxConf}) Price: {price}

RSI Extremes

Overbought A10
πŸ”΄ [{TF}] RSI overbought RSI({p}): {rsi} β‰₯ {thr} Price: {price} β†’ Mean-reversion SHORT bias
Oversold A11
🟒 [{TF}] RSI oversold RSI({p}): {rsi} ≀ {thr} Price: {price} β†’ Mean-reversion LONG bias

SMA Stretch Β· A12–A14

Stretched ABOVE πŸ”» plain
πŸ”» [{TF}] Stretched ABOVE {MA} Price: {price} {MA}: {value} Distance: +${dist} (thr: ${thr}) RSI({p}): {rsi} β†’ Mean-reversion SHORT
ABOVE + RSI πŸ’Ž PREMIUM
πŸ’Ž PREMIUM [{TF}] Stretched ABOVE {MA} + RSI {rsi} overbought Price: {price} {MA}: {value} Distance: +${dist} (thr: ${thr}) RSI({p}): {rsi} β†’ Mean-reversion SHORT
Stretched BELOW πŸ”Ί plain
πŸ”Ί [{TF}] Stretched BELOW {MA} Price: {price} {MA}: {value} Distance: -${dist} (thr: ${thr}) RSI({p}): {rsi} β†’ Mean-reversion LONG
BELOW + RSI πŸ’Ž PREMIUM
πŸ’Ž PREMIUM [{TF}] Stretched BELOW {MA} + RSI {rsi} oversold Price: {price} {MA}: {value} Distance: -${dist} (thr: ${thr}) RSI({p}): {rsi} β†’ Mean-reversion LONG
ABOVE resolved βœ…
βœ… [{TF}] {MA} stretch ABOVE resolved Price: {price} back within ${thr} of {MA} ({value}) Reversion playing out
BELOW resolved βœ…
βœ… [{TF}] {MA} stretch BELOW resolved Price: {price} back within ${thr} of {MA} ({value}) Reversion playing out

{MA} = SMA21 / SMA50 / SMA200

EMA5 Sustained Β· A15

Sustained ABOVE πŸ”» / πŸ’Ž
πŸ”» [{TF}] EMA5 sustained stretch ABOVE Price: {price} EMA5: {ema5} Distance: +${dist} (thr: ${thr}) Duration: {n} bars RSI({p}): {rsi} β†’ SHORT (price exhausted)

πŸ’Ž prepends + "+ RSI overbought".

Sustained BELOW πŸ”Ί / πŸ’Ž
πŸ”Ί [{TF}] EMA5 sustained stretch BELOW Price: {price} EMA5: {ema5} Distance: -${dist} (thr: ${thr}) Duration: {n} bars RSI({p}): {rsi} β†’ LONG (price exhausted)

πŸ’Ž prepends + "+ RSI oversold".

ABOVE resolved βœ…
βœ… [{TF}] EMA5 stretch ABOVE resolved Price: {price} back within ${thr} of EMA5 ({ema5}) Reversion playing out
BELOW resolved βœ…
βœ… [{TF}] EMA5 stretch BELOW resolved Price: {price} back within ${thr} of EMA5 ({ema5}) Reversion playing out

Key Levels Β· A16

Approach πŸ”
πŸ” [KEY] Approaching ${level} from {above|below} Current: ${price} ({Β±$X.XX}) Watch for reaction

Fires when price enters the $4 band. First heads-up.

Pre-touch ⚠️
⚠️ [KEY] PRE-TOUCH ${level} from {above|below} Current: ${price} ({Β±$X.XX}) ${n} away β€” get ready

Fires when price enters the $2 band. Position your finger.

Touch 🎯
🎯 [KEY] TOUCH ${level} Current: ${price} Context: {from above|below|direct} Decision moment
Break πŸ’₯
πŸ’₯ [KEY] BREAK {ABOVE↑|BELOW↓} ${level} Close: ${close} (buffer: ${buf}) {flip note}

Confirmed only on closed bar. Flip note: was resistance β†’ potential support, etc.

Retest πŸ”„
πŸ”„ [KEY] RETEST ${level} Current: ${price} Context: RETEST {from above|below} (broken {support|resistance}) Decision moment

Highest-quality entry signal β€” broken level being tested as new role.

Rejection ↩️
↩️ [KEY] ${level} rejected β€” {up|down} Current: ${price} ({Β±$X.XX}) Level held

Bounce Trade Β· Auto

Bounce trade fired 🎲
🎲 BOUNCE {BUY|SELL} @ ${level} (L{n} level) Lot: {lot} Entry: ${entry} TP: ${tp} (+$3) SL: ${sl} (-${risk}, next level) R:R = 1:{ratio}

Auto-entry on level touch. One trade per level per day.

Bounce skipped ⚠️ edge
⚠️ Bounce skipped: no SL level {below|above} ${level} (edge of grid) Would have been {BUY|SELL}

Fires when price touches the highest or lowest level β€” no adjacent level to use as SL.

Bounce trade failed ❌
❌ Bounce trade FAILED: {BUY|SELL} @ L{n} ${level} Retcode: {code} ({description})

Sent if broker rejects the order (insufficient margin, market closed, etc.). Level remains unlocked β€” will retry next touch.

Risk Control

Lot cap auto-close R1
πŸ›‘ Lot cap hit - position auto-closed Buy: {buyVol} Sell: {sellVol} (cap: {cap} each) {BUY|SELL} side over cap. Closed: #{ticket} {BUY|SELL} {vol} lot @ {entry} P/L: {Β±$X.XX} ---- {BUY|SELL} exposure exceeded cap. Newest {BUY|SELL} closed.

If both sides over, larger overage closes first; other on next tick.

πŸ›‘ Per-side lot cap

Buy and sell volumes capped independently at 0.20 lot each. Hedged positions allowed β€” 0.20 buy + 0.20 sell is fine. When one side breaches its cap, the newest position on that side closes at market.

Buy cap
0.20 lot
Sell cap
0.20 lot
Max gross
0.40 lot
Cadence
Every tick

How it works

On every tick, the EA sums buy volume and sell volume separately for all XAUUSD positions on the account. Each total is checked against 0.20 lot independently. If a side is over its cap, the newest position on that side closes at market. If both sides are over, the side with the larger overage closes first; the other side closes on the next tick.

Examples

Position state Action
0.20 buy + 0.20 sellAllowed
0.15 buy + 0.10 sellAllowed
0.25 buy + 0.10 sellClose newest BUY
0.05 buy + 0.25 sellClose newest SELL
0.30 buy + 0.25 sellClose newest BUY

What's not enforced

No per-position stop loss. No per-position take profit. No total floating-loss cap. No drawdown limit. The lot cap is the only auto-enforcement β€” it caps exposure size per side, not loss size. Position-level risk is your responsibility.

🎲 Bounce Trade β€” Auto-entry at Key Levels

On Key Level touch, the EA auto-opens a 0.01 lot position betting on a bounce. Each level can trigger one trade per day; after TP or SL hits, that level is locked until tomorrow.

Lot size
0.01
TP
+$3
SL
Next level
Per level
1Γ—/day

Entry logic

When price touches a level (within $1):
β€’ Falls into level (was above) β†’ BUY 0.01 lot
β€’ Rises into level (was below) β†’ SELL 0.01 lot

TP set at +$3 from entry. SL set at the next adjacent level (~$44 away based on today's grid).

R:R math

$3 reward vs ~$44 risk = 1:14.7 R:R. Need ~7% win rate to break even at this ratio. Achievable at structural levels with good selection β€” but a single bad trade wipes out 14 wins. Watch this carefully and tighten SL if needed.

Edge cases

Trade is skipped (level locked, no retry today) if no SL level exists on the relevant side β€” i.e. price touches the highest or lowest level in the grid. Retests of broken levels do not trigger bounce trades, only fresh approach-to-touch transitions do.

May 7 Β· Levels

10 levels
R4 $4,867 3.5 near swing high Β· supply zone
R3 $4,821 1.5 mid-air Β· weak
R2 $4,780 1.0 between half-rounds
R1 $4,728 3.5 week's high Β· first resistance
Open β€” waiting...
S1 $4,679 4.0 Fib pivot + 50-SMA Β· closest target
S2 $4,639 2.5 H4 200-SMA + half-round
S3 $4,600 5.5 round + Fib Β· week's anchor
S4 $4,552 3.0 half-round Β· monthly low
S5 $4,516 1.5 50% Fib Β· round nearby
S6 $4,466 1.5 range bottom
7–10 very strong 4–6 strong 2–3 medium 0–1 weak
Range $4,466–$4,867 Β· mean gap ~$45 Β· update tomorrow morning
🎲 Auto Bounce Trade DISABLED
Manual review pending. Key Level alerts (Approach / Pre-touch / Touch / Break / Retest / Rejection) still fire to Telegram. Re-enable in source by setting InpEnableBounceTrade = true.

Alert formats β€” Telegram

Approach πŸ” within $4
πŸ” [KEY] Approaching ${level} from {above|below} Current: ${price} ({Β±$X.XX}) Watch for reaction
Pre-touch ⚠️ within $2
⚠️ [KEY] PRE-TOUCH ${level} from {above|below} Current: ${price} ({Β±$X.XX}) ${n} away β€” get ready
Touch 🎯 within $1
🎯 [KEY] TOUCH ${level} Current: ${price} Context: {from above|below|direct} Decision moment
Break πŸ’₯ closed >$2
πŸ’₯ [KEY] BREAK {ABOVE↑|BELOW↓} ${level} Close: ${close} (buffer: ${buf}) {flip note}
Retest πŸ”„ broken β†’ at
πŸ”„ [KEY] RETEST ${level} Current: ${price} Context: RETEST {from above|below} (broken {support|resistance}) Decision moment
Rejection ↩️ at β†’ away
↩️ [KEY] ${level} rejected β€” {up|down} Current: ${price} ({Β±$X.XX}) Level held