MAM White
- エキスパート
- Matei-alexandru Mihai
- バージョン: 4.5
- アクティベーション: 5
Philosophy — “Build only when the market says yes.”
Most grids slap levels on the chart and hope. MAM White asks for permission first—from the trend, from volatility, and from your broker. It only builds a one-sided LIMIT grid when the fast EMA is aligned with a strong slow-EMA trend and price is properly distanced from the center. No trend? No build. Fresh flip? Cooldown. Spread too wide or outside hours? Stand down.
When it does act, it acts with restraint: LIMIT orders placed at measured steps around EMA_fast, each with server-validated sizing and stop/freeze-level awareness. If take-profit can’t be attached safely at placement, it’s attached later—after fill—without drama. The result is a grid that behaves like a disciplined execution assistant: aligned with the tape, throttle-controlled, and allergic to broker errors. Calm structure > chaotic fills.
Technicals — Precisely what happens under the hood
Trend, Bias & When a Grid May Exist
-
Dual-EMA alignment:
-
Slow EMA defines the primary trend.
-
Fast EMA is the grid center (anchor).
-
Alignment over N bars: fast EMA must stay above (long bias) or below (short bias) the slow EMA for the last N bars.
-
-
Trend strength & location filters:
-
Slope gate: absolute slow-EMA slope over N bars must exceed a pip threshold.
-
Distance gate: mid price must be at least a set distance (pips) from EMA_fast to (re)build.
-
-
Bias & cooldown:
Bias flips to LONG/SHORT only when alignment + slope + distance agree. After a flip, cooldown bars prevent knee-jerk rebuilds.
What It Builds (and Where)
-
One-sided LIMIT grid:
-
LONG side → BUY_LIMITs below EMA_fast.
-
SHORT side → SELL_LIMITs above EMA_fast.
-
Levels per side and step size configurable (pips).
-
Per-level TP distance = step * multiplier .
-
-
Lot sizing options:
-
Fixed base lot, or optional geometric growth (martingale multiplier).
-
All volumes normalized to broker min/max/step.
-
Throttling & Rebuild Hygiene
-
Rebuild gating:
-
Once per bar (optional).
-
Min seconds between rebuilds.
-
Center tolerance (pips) to ignore tiny drift and reduce churn.
-
-
Recentering:
If flat (no positions) and mid-price drifts more than k * step away from the last center, rebuild at the new center. -
Hour window (execution discipline):
-
Trading only inside a defined session.
-
Outside hours: delete pendings and idle.
-
Spread guard: build only if spread ≤ threshold.
-
Validator-Absolute-Safe Execution (Broker-Aware)
-
Double server pre-check:
Every pending order is pre-validated with OrderCheck() . If the server reports NO_MONEY or INVALID_STOPS, MAM White adapts (reduce lots / attach TP later) or skips—no blind retries. -
Margin-safe lot capping:
A conservative cap uses only a fraction of free margin per pending (internally limited to 25% of your configured cap).
A min-lot affordability test refuses to send even the smallest order if it would exceed that cap. -
Stops/freeze-level discipline:
Respect for broker stops and freeze levels:-
LIMIT prices must be beyond these guardrails from current market.
-
TP at placement only if entry-to-TP distance clears the minimum; otherwise, TP is attached after fill.
-
-
Single-send philosophy:
After passing all gates, the order is sent once. If the server still rejects, MAM White does not spam retries (keeps validators and brokers happy).
Smart TP Handling for Open Positions
-
A continuous TP upkeep routine:
-
Computes nominal TP = open ± ( step * multiplier ).
-
Enforces entry-to-TP minimum vs stops level and broker freeze distance.
-
If change is meaningful and allowed, attaches/modifies TP with a single SLTP request.
-
Optional verbose logs for transparency.
-
Pool Maintenance
-
Delete all pendings during off-hours or before a fresh build.
-
Tight counters for this symbol + magic keep things scoped and clean.
Event Flow (simplified)
-
Hours & hygiene: If outside session → delete pendings, show status, exit.
-
Data: mid price, bar time, EMA buffers.
-
Bias: alignment + slope + distance → LONG/SHORT/none; apply cooldown.
-
Build:
-
If flat & no pendings → maybe build at EMA_fast.
-
If drifted far from center while flat → recenter and build.
-
If side changed and flat → rebuild to the new side.
-
On each new bar, if expected pendings are missing → refresh the grid.
-
-
TP upkeep: maintain TPs for all open positions.
-
HUD: live metrics: mid, EMAs, slope pips, distance pips, bias, built side, positions & pendings.
Inputs Cheat-Sheet (by purpose)
-
Identity: symbol, magic, comment
-
Grid: levels/side, step (pips), TP multiplier
-
Sizing: lots, optional martingale, max margin fraction (internally capped)
-
EMA/Bias: slow & fast EMA periods, timeframe, bars aligned, min slope, min distance, flip cooldown
-
Throttle: rebuild once/bar, min seconds between rebuilds, center tolerance
-
Guards: max spread, trading hours window
-
Lifecycle: pending expiry (minutes), recenter threshold (in steps)
-
Misc: verbose logging
Operating Tips
-
Use realistic spread limits and a sensible hour window for your instrument.
-
Start with fixed lots; only enable geometric growth if you fully understand the risk curve.
-
Don’t over-tighten the rebuild throttle—let MAM White reduce churn for you.
Risk Notice: Not investment advice. Markets can be adverse; backtest, forward-test on demo, and size conservatively. MAM White minimizes operational/broker errors and enforces disciplined builds, but profitability depends on market conditions and your risk.