Smart EA SMC Liquidity Panel Plus
- Experts
-
Muhammad Faisal Sagala
Sono stato un commerciante online dal 2005 fino ad ora. Prima di diventare un trader, ero docente di programmazione C/C++. Con il supporto del linguaggio MQL4 / MQL5, ho iniziato a sviluppare consulenti esperti dal 2007 per il mio cliente nel mio paese e libero professionista in MQL5.Com ho - Versione: 1.0
- Attivazioni: 5
SMART EA SMC LIQUIDITY PANEL PLUS - ENGLISH GUIDE
Manual & Auto Trading Assistant Copyright 2026 - Faisal Sagala
- Market BUY/SELL and pending stop/limit orders.
- TP/SL/TS from the panel or draggable chart lines.
- Basket BreakEven and TP Average per side.
- LOCK balances BUY/SELL lots on the chart symbol.
- Close by side, profit/loss, instant, or whole account.
- Auto close on equity/profit/loss targets.
- Liquidity Block (LB) zones, FVG, CHoCH/MSS.
- Automatic entries on LB lines (Auto files only).
- Batch entries, lot multiplier, BuySell direction control.
All panel orders use magic InpMagic on the chart symbol.
Some BE, TP Average, LOCK and statistics features use ALL
positions on the symbol; see section 8.
2.1 Trading
InpMagic = 888 magic for orders and Auto entries.
InpSlippage = 10 slippage in points (market/close).
2.2 Panel defaults
InpDefaultLots = 0.01 initial Lots value.
InpDefaultTP = 100 initial TP distance, active unit.
InpDefaultSL = 50 initial SL distance; ignored if BE.
InpDefaultTS = 0 trailing distance; 0 = off.
InpDefaultUsePips = true true = PIPS, false = POINT.
2.3 BreakEven / TP Average
InpAvgTPBufferPoints = 50 extra TP Average distance; uses the
active unit (PIPS/POINT) despite the name.
InpBreakEvenColor = clrYellow BE line, dotted.
InpTPAvgBuyColor = clrDodgerBlue TP AVG BUY, dotted.
InpTPAvgSellColor = clrOrangeRed TP AVG SELL, dotted.
2.4 Liquidity Block
InpLBShowByDefault = false show LB at EA start.
InpLBLookback = 2000 bars scanned for swings/levels.
InpLBSwingStrength = 3 bars each side for a valid swing.
InpLBOBLookback = 30 bars to search the Order Block.
InpLBMaxZones = 6 max zones per direction.
InpLBExtendBars = 30 right extension in bars.
InpLBDrawEaten = true marker on the eaten candle.
InpLBLog = true log details in Experts tab.
InpLBBuyZoneColor = C'200,235,255' buy fill.
InpLBSellZoneColor = C'255,220,220' sell fill.
InpLBBuyLineColor = clrDodgerBlue buy entry line.
InpLBSellLineColor = clrOrangeRed sell entry line.
InpLBEatenColor = clrDimGray eaten marker, OB WAIT.
InpLBEqTolerancePts= 30 equal level tolerance, points.
InpLBTrendSwings = 3 swings used for trend score.
InpLBTrendScore = 2 minimum trend score.
InpLBEqColor = clrMagenta EQH/EQL line.
InpLBLevelColor = clrGold Session/PDH/PDL lines.
InpLBShowFVG = true draw FVG in gray.
InpLBShowChoch = true draw CHoCH/MSS in gray.
InpLBFVGMax = 2 max FVG per direction (1..10).
InpLBChochMax = 3 latest CHoCH/MSS drawn (1..10).
InpLBFVGColor = C'170,170,170' FVG color.
InpLBChochColor = C'140,140,140' CHoCH/MSS color.
2.5 Auto Entry (Auto files only)
InpLBAutoEntryDefault = false Auto ON at EA start.
InpLBAutoEntryPending = false also enter OB WAIT zones.
InpLBAutoLotMult = 1.0 lot multiplier per batch.
InpLBAutoMaxOrders = 1 orders per zone/level (1..50).
InpLBAutoBuySell = true true = follow line direction;
false = one direction per cycle.
InpLBAutoBreakerEntry = true entry at breaker zones; zones
stay drawn when false.
InpLBAutoEqEntry = false EQH sell / EQL buy.
InpLBAutoFvgEntry = false entry on FVG touch.
InpLBAutoChochEntry = false entry on CHoCH/MSS retest.
InpLBAutoSessionEntry = false Session H sell / L buy.
InpLBAutoPdhPdlEntry = false PDH sell / PDL buy.
3.1 Header
Clock shows server time. Show LB toggles all LB objects
(prefix SAPLB_); when off, Auto has no entry lines.
Auto checkbox next to Show LB: checked = auto trading; the
label shows AUTO ON/BUY/SELL. Auto requires Show LB.
3.2 Lots and unit
Lots is the next order volume, normalized to broker rules.
PIPS/POINT toggles the unit and converts TP, SL, TS, and
BE Offset: PIPS->POINT x10; POINT->PIPS /10, min 1.
Lots and money targets are not converted.
3.3 TP / SL / TS
TP: distance from entry; 0 = none. Applied on Enter to new
orders and all panel-magic positions.
SL: ignored while BreakEven is on.
TS: trailing only; SL never moves backwards. When TS is
turned off, SL locked in profit stays; SL never moved into
profit is removed. When all panel positions close, TP/SL
fields reset to InpDefaultTP and InpDefaultSL.
3.4 BUY / LOCK / SELL
BUY/SELL: market at Ask/Bid, volume from Lots; TP above/below
entry, SL on the opposite side unless BE is on.
LOCK: balances total BUY/SELL lots on the symbol using all
positions, including manual/other EA. Delta-neutral only;
the balancing order has no TP/SL.
3.5 BreakEven
Calculates basket breakeven on the symbol (with swap), draws
a dotted line, removes ALL SLs on the symbol, and blocks new
SLs and trailing. If price touches the line (or the line is
inside the spread), it closes ALL positions and deletes ALL
pendings on the symbol without magic filtering, then turns
BE off. Offset shifts BE up for net long, down for net short.
BE cannot be calculated with no positions or zero net volume.
The BE line cannot be dragged.
3.6 TP AVG BUY / SELL
Calculates the volume-weighted average of ALL positions on
that side/symbol and applies TP to panel-magic positions at
average +/- buffer (InpAvgTPBufferPoints x active unit).
TP is kept outside the broker minimum distance. Turning it
off removes TP from ALL positions on that side (no magic
filter). Recalculated when positions or average change.
3.7 Close
Buy/Sell Profit/Loss, All Buy/Sell/Profit/Loss, Close
Instant (panel positions), Close Pending, and Close DontCare
(ENTIRE account, all symbols/magics/directions, no confirm).
Profit/loss uses POSITION_PROFIT (no swap); exactly 0 profit
is not closed by the Profit or Loss buttons.
3.8 Info and targets
LOT/CNT and P/L count ALL positions on the symbol.
Equ/Bal are account values.
Equity Profit/Loss: absolute equity.
Target/Loss %: percent of balance.
Target/Loss $: dollar amount.
0 = inactive. Timer checks every ~1 second.
When triggered: alert, closes panel-magic positions and
pendings on the chart only, turns BE/TP Average off, and
clears the triggered field. Targets use account-wide equity,
so another pair can trigger them.
3.9 Chart TP/SL lines
TP is blue, SL is red, solid width 2. TP draggable when TP
Average is off. SL draggable when TS = 0. Dragging uses the
average price of ALL positions on that side/symbol but
applies only to panel-magic positions. A 1.5 s guard stops
snap-back. Lines disappear when the side has no positions.
Set Lots, TP, SL, and unit first. Hold Shift or Ctrl, move
the mouse to the price, and left-click the chart.
Shift above Ask = BUY STOP. Shift below Bid = SELL STOP.
Ctrl above Ask = SELL LIMIT. Ctrl below Bid = BUY LIMIT.
Clicks between Bid and Ask are rejected. Shift wins if both
keys are held. Crosshair: blue buy, red sell, silver too
near market. Price is normalized and kept outside the minimum
stop distance. Pending orders use GTC and InpMagic; when BE
is on, new pendings get no SL. TP/SL 0 = not set.
1 pip = 10 points. PriceStep = point x10 in PIPS mode.
EURUSD 5 digits: TP 100 = 0.01000 pips / 0.00100 points.
Slippage, stop level, and spread are always in points.
InpAvgTPBufferPoints follows the active unit.
6.1 Concept
LB uses the breaker / failed Order Block model.
OB = last opposite candle before an impulsive move.
Bullish OB = last bearish candle before a rally.
Bearish OB = last bullish candle before a drop.
If a candle CLOSES through the OB, the OB is eaten/failed.
The failed OB range becomes the Liquidity Block:
- Sell Zone = failed bullish demand -> resistance.
- Buy Zone = failed bearish supply -> support.
Labels follow the potential direction, not the old trend.
6.2 Swings
Swing high at bar i: high[i] above high[i-k] and high[i+k]
for k = 1..InpLBSwingStrength. Swing low is the mirror.
A swing confirms after InpLBSwingStrength later bars.
At least 3 swing highs and 3 swing lows are required.
6.3 Trend before the swing
Uses a score over up to InpLBTrendSwings highs and lows.
Difference above tolerance = +1 (HH/HL); below negative
tolerance = -1 (LH/LL); inside tolerance = 0.
Bullish: at least 1 HH + 1 HL and score >= InpLBTrendScore.
Bearish: at least 1 LH + 1 LL and score <= -InpLBTrendScore.
Effective minimum score is 1; default 2 equals one HH + HL.
No extra CHoCH/BOS validation is used.
6.4 Sell Zone
1. Swing high H with bullish prior trend.
2. Last swing low L before H.
3. Bullish OB on the L-H leg: last bearish candle before H,
next candle closes above its high; limited by
InpLBOBLookback.
4. After H, a candle closes BELOW the OB low (eaten).
5. Zone top = OB high, bottom = OB low.
6. Draw SELL box from OB time, extended InpLBExtendBars.
7. SELL entry line = bottom of zone.
If not eaten: OB WAIT zone, used only when
InpLBAutoEntryPending = true.
6.5 Buy Zone
Mirror of Sell Zone:
1. Swing low L with bearish prior trend.
2. Last swing high H before L.
3. Bearish OB: last bullish candle before L, next candle
closes below its low.
4. After L, a candle closes ABOVE the OB high (eaten).
5. Zone top = OB high, bottom = OB low.
6. Draw BUY box extended to the right.
7. BUY entry line = top of zone.
If not eaten: OB WAIT zone.
6.6 Levels
EQH: two or more equal swing highs within tolerance;
level = highest high. Auto entry = SELL when
InpLBAutoEqEntry = true.
EQL: level = lowest low. Auto entry = BUY.
Session H/L: highest high / lowest low since 00:00 server
day (bar time). Session H = SELL, Session L = BUY when
InpLBAutoSessionEntry = true.
PDH/PDL: previous trading day high/low, weekends skipped.
PDH = SELL, PDL = BUY when InpLBAutoPdhPdlEntry = true.
EQH/EQL are skipped after being swept. All levels are
limited by InpLBLookback.
6.7 FVG
Three-candle imbalance.
Bullish FVG: third low > first high; zone between them.
Bearish FVG: third high < first low; zone between them.
Only gaps not fully filled are drawn, max InpLBFVGMax per
direction. Gray dotted border, label FVG.
Entry when InpLBAutoFvgEntry = true: bullish FVG = BUY at
the top; bearish FVG = SELL at the bottom.
6.8 CHoCH / MSS
CHoCH: close breaks the last swing opposite to the previous
break direction (potential reversal).
MSS: close breaks a swing in the same direction (continuation).
Uses confirmed swings and processes old-to-new bars.
Drawn as a thin gray dotted line with a CHoCH or MSS label;
max InpLBChochMax latest events.
Entry when InpLBAutoChochEntry = true:
bullish break = BUY on retest; bearish break = SELL on
retest. Active-day events only; one latest level per side.
The entry waits for a retest, not the break candle.
Display and entry are separate; entry works while Show LB is
on even if the display input is off.
6.9 Visuals
Light blue box = confirmed Buy Zone.
Light red box = confirmed Sell Zone.
Gray box, no fill, OB WAIT = pending OB.
Solid blue/red width-2 line = entry line.
Magenta dotted = EQH/EQL. Gold dash-dot = Session.
Gold solid = PDH/PDL. Gray dotted FVG box.
Gray dotted CHoCH/MSS line. Gray marker = eaten candle.
All objects use SAPLB_ and are drawn behind candles.
6.10 Reading LB
Sell Zone = potential resistance after failed demand.
Buy Zone = potential support after failed supply.
LB is context, not a single signal; use a higher timeframe.
6.11 Limitations
Recalculated only on a new bar or when enabled; objects are
deleted and redrawn, so zones can shift.
Swings need InpLBSwingStrength confirmation bars.
Only chart OHLC; no volume, order book, or tick data.
No popup; logs in Experts and alert.wav on order success.
No news/session filter or zone ranking.
FVG/CHoCH are simplified, not full ICT detection.
Old zones/events may be hidden by the max limits.
Enable Algo Trading, attach the EA, turn on Show LB, and check
Auto. InpLBAutoEntryDefault = true starts Auto immediately.
Initial lot comes from the Lots field. Auto orders use
InpMagic, market price, sl = 0, tp = 0, comment "AE <key>".
Manual and Auto entries can run together. Re-attach the EA
after changing inputs.
Entry lines:
Buy/Sell Zone confirmed = top/bottom of OB, only when
InpLBAutoBreakerEntry = true.
OB WAIT = same lines, also needs InpLBAutoEntryPending.
EQH = SELL, EQL = BUY (InpLBAutoEqEntry).
Bullish FVG = BUY at top; bearish FVG = SELL at bottom
(InpLBAutoFvgEntry).
Bullish CHoCH/MSS = BUY on retest; bearish = SELL on retest
(InpLBAutoChochEntry).
Session L/PDL = BUY; Session H/PDH = SELL
(InpLBAutoSessionEntry / InpLBAutoPdhPdlEntry).
Trigger: price touches or enters the line and stays within
the zone/level range. Session/PDH/PDL/EQH/EQL and CHoCH/MSS
retests use a 5-point band and count as confirmed.
Batch:
InpLBAutoMaxOrders positions per touch, same lot per batch.
Batch lot = panel lot x InpLBAutoLotMult^step.
Step is per direction and rises only after a successful
batch. Step resets to 0 when that side has no Auto positions
(comment "AE "). Multiplier below 1.0 is treated as 1.0.
Failed batches retry next bar; partial batches do not repeat.
BuySell = true: follow line direction. Blue/EQL/bullish
FVG/bullish CHoCH-MSS/Session L/PDL = BUY. Red/EQH/bearish
FVG/bearish CHoCH-MSS/Session H/PDH = SELL. Both sides can
be open.
BuySell = false: one direction per cycle. The first batch
locks the direction until all symbol+magic positions close.
The label shows AUTO BUY or AUTO SELL.
After entry: initial orders have no TP/SL/TS. Manage them
from the panel (TP/SL/TS, BE, TP Average, closes, targets).
TP/SL/TS apply only to panel-magic positions.
Duplicate prevention: keys are unique per line.
OB = swing time + OB time; Session/PDH/PDL/EQH/EQL = price;
FVG = forming candle time + boundary price;
CHoCH/MSS = swing time + break time.
A successful key is done for the active day. Keys are
restored from open positions after restart. New day clears
all keys and recalculates zones/levels.
Execution: market orders at Ask/Bid with InpSlippage and a
supported filling mode. No news/session filter or ranking.
No popup; Experts log and alert.wav. Auto needs ticks and
Show LB. Test on demo with MaxOrders = 1 and LotMult = 1.0.
Panel orders/Auto entries: magic InpMagic.
BuySell direction lock: ALL symbol + InpMagic positions,
not only comments starting with "AE ".
Auto lot step: positions with comment "AE " on symbol+magic.
Trailing, panel TP/SL, TP/SL lines, close buttons, Close
Pending: magic InpMagic on the chart symbol.
Equity/profit/loss targets: read account-wide equity;
close only panel-magic positions/pendings on the chart.
LOT/CNT and P/L: ALL positions on the symbol.
BreakEven (calculate, remove SL, liquidate): ALL positions
and pendings on the symbol.
TP Average (average/remove TP): ALL positions on that side
on the symbol; install TP only on panel-magic positions.
LOCK: ALL positions on the symbol; balancing order uses
panel magic.
Close DontCare: ENTIRE account, all symbols and magics.
Recommendations: use a dedicated account/symbol, unique
magic per strategy, test on demo. Removing the EA does not
close positions; BE and TP Average stop working.
1. Attach the EA, allow Algo Trading.
2. Set inputs and panel Lots/TP/SL/Unit.
3. Entry: BUY/SELL; Shift+Click stop; Ctrl+Click limit.
4. Manage: BreakEven + Offset, TP AVG, LOCK.
5. Set auto targets, then press Enter.
6. Emergency: Close Instant (panel) or Close DontCare.
7. Turn on Show LB for LB zones.
8. Auto: check Auto and set Lots/MaxOrders/LotMult/BuySell.
Breaker entry defaults true; EQH/EQL, FVG, CHoCH/MSS
default false.
Pending rejected: too close, stop level, market closed, or
bad filling mode. Click farther, check Experts.
TP/SL not set: distance below stop level/spread, or BE on.
Increase distance; turn BE off if SL is needed.
Close button does nothing: wrong magic/symbol. Check both.
Close DontCare only for the whole account.
BE not active: no positions or net volume is zero.
BE active but not closing: price has not touched the line
or spread widened; check the log.
TP Average missing: no positions on that side. Open one and
check the green button.
SL line cannot be dragged: TS is active; set TS = 0.
TP line cannot be dragged: TP Average is active; turn it off.
TP/SL changes by itself: another position changed or a
default reset after all positions closed; normal.
Equity target triggered by another pair: targets use account
equity. Isolate the account/symbol or edit the code.
LB missing: Show LB off, not enough bars, fewer than 3
swings, or no new bar. Enable Show LB and wait.
LB changes/disappears: recalculated each bar; it is dynamic.
Auto active but no entry: Show LB off, no valid line, OB
WAIT skipped, direction locked, bad lot, or market closed.
Check Show LB, the AUTO label, lot, and Experts.
Auto lot not rising: Auto positions still open on that
side, so the step has not reset. Close that side.
Opposite zone ignored: BuySell = false and direction locked.
Close symbol+magic positions or set BuySell = true.
Batch smaller than MaxOrder: margin, broker volume limit, or
rejections. Reduce lot/MaxOrder and check margin.
Auto orders merged: netting account; normal.
FVG/CHoCH not shown: display input off, Show LB off, or no
valid pattern/break. Enable both; wait for a new bar.
EQH/EQL entry not triggered: input false, level swept, or
level used today. Enable it and wait for a new level.
FVG entry not triggered: input false, FVG filled, or no
retest. Enable it and wait for a new unfilled FVG.
CHoCH/MSS entry not triggered: input false or no retest.
It waits for a retest, not the break candle.
Breaker zone shown but no entry: InpLBAutoBreakerEntry =
false. Zones stay drawn; set it true for auto entry.
Session/PDH/PDL not triggered: input false, level outside
lookback, or used today. Enable it and wait for a new level.
Trading carries risk. This guide is not a profit guarantee.
Test on demo and use risk management.
