Warning: Leverage + Grid/Martingale is very high risk
  • The worst case: the account is wiped out and you lose 100% of your capital. If the market runs one way, the EA keeps opening more trades until the margin is gone.
  • More capital does not mean you survive — with Martingale/Grid, a strong trend can wipe out even 10,000 USD.
  • Always try Demo first and watch it work for real for at least 2-4 weeks before you put in real money.
  • Recommended starting capital: a Cent account with 100 USD (= 10,000 USC) to learn — not to make profit (if you lose, you lose little; if it survives, add capital later). See the numbers at How much capital to use
  • Always ask in the group first before you change a setting or trade for real — do not set it up on your own and do not raise the lot on your own.
Remember: This EA is a tool, not an ATM. Use only money you can afford to lose. Never use savings, borrowed money or family money.
Grid Trading EA

DynamicGrid EA

A Grid Trading EA that takes small profits often and closes fast. Suited to gold/forex — ATR-based dynamic grid distance

Version 17.0 | Updated 2026-11-14 | Manual for non-technical users

1What this EA does

▼

This EA works like this: "place a Pending first trade → if price runs against it, place more Grid trades → close when the total is in profit"

  • You do not need to watch the chart. The EA does it all.
  • It takes small profits, but often.
  • It has several layers of protection (Spike, Trend, News, Hedge) that you can switch on or off as you like.
Suited togold (XAUUSD) and the major forex pairs — start on Demo; for real money a Cent account with 100 USD (= 10,000 USC) is recommended, to learn
Not suited topeople who cannot accept Drawdown, who use savings or borrowed money, or who have not passed Demo first
Importantbefore the first use — always ask in the Support group. Do not set it up on your own.

2Minimum setup to run (just 5 items)

▼

Turn on these 5 items and the EA can run. The rest is "switch on when needed".

No.ItemSuggested valueExplanation
1Start EA automatically?trueThe main switch. It must be on or the EA does nothing
2Trade DirectionBOTHTrade both buy and sell
3Fixed Lot0.01Start with the smallest lot
4Enable Grid TradingtrueTurns on the Grid system
5Position close methodBreakevenTPThe safest way to close in profit (since v16.5 the EA's default is Trailing, so you must change it yourself)
Since v14.1, 4 filters come switched onEnable RealtimeTrend Filter (first trade), Spike Filter, Enable Value Area Filter (trade only inside the value area) and Allow counter-trend entries on Stoch Divergence are on from the start — if the EA seems to open fewer trades than older versions, that is normal and the EA is not broken. See RealtimeTrend, Value Area, Mean Reversal
Early close on Friday is the defaultClose time = 16:00 — after this time the EA no longer opens a first trade. See Trading hours & trading days

3How much capital to use

▼

Enough capital depends on how many trades the deepest basket reaches. The numbers below come from a 9-month XAUUSD backtest (Jan - Oct 2026), 10,158 baskets, v16 default values, Fixed Lot 0.01

This table was measured with the EA's default values up to v16.6(lot mode LOT_MODE_PLUS_001, adding 0.02 per trade). v17 changes the EA's defaults to LOT_MODE_GEO_STEPPED and HALFCLOSE_PRUNE_POOL. The numbers below have not been re-measured with these values. Use them as a rough guide only, and try on Demo first

Floating loss by number of trades

Trades in basketHow oftenCent account (real USD)Standard account (USD)
167% of baskets0.021.75
2-430%0.13 - 1.1113 - 111
5-82.8%2 - 11223 - 1,099
9-1123 baskets17 - 281,659 - 2,751
12-1716 baskets45 - 734,520 - 7,253
201 basket16916,944
251 basket31131,073

The floating loss roughly doubles with every trade in the 4-8 trade range. With default values the EA does not cut the loss of a big basket — every basket in the table closed because price came back by itself.

Choose capital by the risk you can accept

Cent account, leverage 1:500, Fixed Lot 0.01

CapitalIn the 9-month backtestSuited to
50 USDAccount wiped out 17 timesNot recommended
100 USDAccount wiped out 2 timesStarting to learn, can accept losing the whole amount
360-600 USDNot wiped outWant to survive the worst basket seen so far
On a Standard account, multiply every number by 100100 USD on Cent equals 10,000 USD on Standard. With small capital use a Cent account only — open a Standard account with 100 USD and the account is wiped out at a basket of 4-5 trades
Read this before you use these numbers
  • If you raise Fixed Lot to 0.02, capital must be multiplied by 2 as well
  • Withdraw profit regularly — profit left in the account is lost too when the account is wiped out
  • This is a single backtest, and only 2 baskets had 20 trades or more. The real market can run much further — a 30-trade basket would have a floating loss of about 410-470 USD on a Cent account
  • If you change the Lot Mode or Grid Mode, this table does not apply. Ask in the group first

4What's new (v12.0 → v17.0)

▼

If you used an older version before, read this section only. The rest is the same as before.

v16.6 → v17.0

The EA's default values changed. Try on Demo firstA Grid EA can lose heavily if price runs one way for a long time. The new values do not remove this risk. Start with a small lot and watch the result on a Demo account before you use real money
  • 3 default values changed: Lot increment mode for Grid = LOT_MODE_GEO_STEPPED (was PLUS_001), % of breakeven the recovery trades pull in (0=off, applies to all modes) = 0 (was 33), HalfClose mode = HALFCLOSE_PRUNE_POOL (was PRUNE). An EA already on a chart, and your existing .set files, keep their own values. The new values apply when you drag the EA onto a new chart
  • New lot mode LOT_MODE_GEO_STEPPED: the lot is multiplied one step every N trades (default: multiply by 1.618 every 3 trades = 0.01 for three trades, 0.02 for three trades, 0.03 for three trades, 0.04 for three trades, 0.07 ...). See Lot Settings
  • New Half Close mode HALFCLOSE_PRUNE_POOL: like PRUNE, but several profitable trades together are used to close the heaviest losing trade. You do not have to wait until one profitable trade is enough. See Half Close
  • Dashboard combining several Magic numbers: if you run the EA on several charts with different Magic numbers in one account, enter the other charts' Magic numbers at Dashboard: also count Magic Number #1 (0 = none) through #4, and the calendar, today's total, the month's total and FLOATING will show the combined totals. The trading of each chart is still kept separate by its own Magic. See Dashboard
  • The Dashboard updates itself every second: on a live chart the numbers keep updating even when no price comes in (quiet or closed market). Before, it had to wait for price to move

v16.5 → v16.6

  • Trial period ended: the EA shows a message that explains how to keep using it for free (move your trading account under our IB, with a link). For Exness, after the move you must open a new trading account (the old trading account stays with the old partner), then enter the new account number when you download the EA, and the license is approved automatically. You do not need to message us your account number. Trading is the same as v16.5 in every way

v16 → v16.5

  • 3 default values changed: Position close method = Trailing (was KeepProfit), Enable Half Close = true (was false), HalfClose mode = HALFCLOSE_PRUNE (was GRID). An EA already on a chart, and your existing .set files, keep their own values. The new values apply when you drag the EA onto a new chart (see Close Position, Half Close)
  • Half Close: 3 modes are left (PRUNE / NET_REDUCE / GRID). An old .set that uses a removed mode will work as GRID; the 4 ratio inputs (InpHalfCloseFixedRatio, InpHalfCloseBaseRatio, InpHalfCloseLotFactor, InpHalfCloseProfitScale) were removed; Emergency Only is ready to work again on every basket; the profit threshold is now counted after swap + commission
  • Market closed: the EA does not send orders while the market is not yet open, and if an order is refused because the market is closed, it pauses sending orders for 5 minutes (before, it sent again and again and filled the log with errors)
  • Lot modes FIB_SCALED / LOG_SCALED / TREND_ADAPTIVE: the lot reducer based on DD now really works (before, the lot cap covered it and it had no effect)

v15.0 → v16

  • Trading rules did not change Your existing input values and .set files can be used as they are
  • New Dashboard: a NEXT ENTRY card that shows the reason a trade is not yet opened on each side, a WAITING ENTRY status tag, MONTH / YEAR / STATS tabs, and totals counted from the first trade (SINCE FIRST TRADE) instead of from installation (see section 24)

v14.1 → v15.0

Before you update to v15.0If you had Staged Hedge on and there are still trades whose comment starts with Hedge_ (for example Hedge_BUY_S1, Hedge_SELL_Rescale) close these trades first — v15.0 no longer recognizes them as hedges and will count them as ordinary Grid trades. Net Hedge trades (NetHedge_B / NetHedge_S) do not need to be closed
What's newWhat it doesSee
New DashboardA monthly calendar: each day shows the closed profit + the deepest floating loss of that day, status tags, BOTH / BUY / SELL buttons, PAUSE / RESUME, CLOSE ALL, click the panel header to collapse itDashboard
10 themesChoose at Dashboard Theme (default Cloudy Sky)Dashboard
Direction buttons are separate per chartPressing BUY / SELL on one chart no longer shows up on another chart. Whenever the EA restarts (MT5 reopened, timeframe changed, input edited) it goes back to Trade Direction in the inputDashboard
Hide position SL/TP lines really worksBefore, the lines still showed even when set to true — now it really hides the order / SL / TP lines on the chart (default true)Screen
Faster backtestAbout 2 times faster without visual mode — same settings, same trading result-
Removed in v15.0
  • The whole Staged Hedge set (UseStagedHedge, InpHedgePreset, HedgeDD_*, HedgeStep1..4_*, HalfCloseIncludeHedge etc.) → use Net Hedge instead
  • DDReduce (DDReduce, profit_threshold, numberforeven, InpCloseStrategy) → use Cross-Side (already on by default)
  • The MKT button (Market Filter) on the Dashboard
  • The Resistance / Support boxes on the chart

v12.0 → v14.1

What's newWhat it doesSee
Value Area FilterTrades the first trade only inside the daily Volume Profile zone (BUY in the lower half / SELL in the upper half) — already on by defaultValue Area
Mean ReversalWhen a Stoch Divergence appears = allow counter-trend entries, and pause the with-trend side — already on by defaultAdvanced Filters
Entry Price FilterDoes not place the first trade if the price is worse than the previous bar's close (stops chasing price)Advanced Filters
New Trailing setStart point/distance split by number of trades into 4 ranges, Virtual Trailing, ATR-based distance, Keep % of the peak profit, faster profit-taking when a counter Swing appearsClose Position
Open-close time per dayEach day has its own open/close time — replaces InpStopOnFriday. Session 1-3 become an extra filterTrading hours
RealtimeTrend Strong / WeakTells a strong trend from a weak one by the number of BOS, so you can trade only the type you wantRealtimeTrend
Custom Spike FilterBesides the 3 presets, you can set the Baseline TF / multiplier / Cooldown yourself + set a minimum floor in pointsSpike Filter
Catch-upIf price jumps across several Grid levels = it opens the skipped trades together (as separate orders)Lot Settings
Breakeven PullThe lot cap of the recovery trade, worked out from "by how many % do you want to pull the breakeven point in", so one trade's lot cannot grow bigger than the basketLot Settings
Lot Mode: Trend AdaptiveWith the trend = fixed lot; when the trend turns against you = it climbs the Fibonacci steps slowly + DampenerLot Settings
More filters can control the GridNews (Also block Grid Orders) and SmartTrend (Filter Initial orders / BlockGrid) let you choose whether they filter the first trade or the Grid tradesNews, Trend Filter
Automatic chart layoutHides the chart Grid lines / Trade History arrows / SL-TP lines, shows the day separator linesScreen
Removed / renamed in v14.1
  • InpStopOnFriday + InpFridayStopHour → use Close time (default 16:00) instead
  • InpTrailingStart / InpTrailingStep → split into 4 ranges [< 3 trades] Trailing start (points) ... [> 10 trades] SL distance from price (points)
  • TimeToStart1..3 are still there but have no effect until you turn on Also use Sessions 1-3 (false=per-day hours only)

v9.9 → v12.0 (older changes)

What's newWhat it doesSee
RealtimeTrend FilterThe new main trend filter. It looks at 2 TFs (Master + Entry) and both must agree before it trades — already on by defaultRealtimeTrend
RealtimeTrend Flip CloseWhen the trend flips = it cuts the counter-side trades at once, without waitingRealtimeTrend
Net HedgeThe new Hedge system, replacing Staged Hedge — it locks with a single trade and has 3 ways outAdvanced Protection
Pattern FilterReads 15 candlestick patterns (Engulfing, Harami etc.) to filter the entry timingPattern Filter
Grid Distance 4 modesChoose the distance as Fixed / Percent / Stepped / TierTable + an ATR Floor can override every modeGrid Settings
Half Close Threshold ModeChoose the loss-cut threshold as Fixed / Adaptive / Tiered + speed up when the loss jumpsHalf Close
Exposure ReductionWhen DD reaches the threshold = it cuts the total lot automatically (a different feature from Half Close)Half Close
Market-adaptive Breakeven TPTP is worked out from ATR instead of fixed pointsClose Position
3 Sessions + choose trading daysSet the time for 3 ranges a day, switch off any day, and there is a Thai time mode (GMT+7)Trading hours
Spread ControlBlocks orders when the spread is unusually wide (Dynamic compares against its own median)Spread Control
Session Lot / Distance LotDifferent lots by time of day, and a bigger lot when the next trade is unusually far awayLot Settings
First-trade price rangeDo not open a first trade when price is beyond the upper/lower range, or too far from the day's open priceFirst trade
Items that were removedif you used them, you need to find a replacement:
  • InpUseMarketFilter + InpUseADXFilter + ATR Ratio → use Spike Filter instead
  • InpUseSR_* (Swing S/R) and InpCCIVoting → gone, use RealtimeTrend instead
  • TimeToStart / TimeToEnd / InpCloseAllOnTimeEnd → changed to TimeToStart1..3 / InpCloseAfterSession1..3
  • UseStochFilter → split into Enable Stoch Filter for BUY / _Sell
  • InpGridBBFilter → BB also gates Grid BUY (add only on BB break-and-return) / _Sell
  • TrendMA_TF → Trend Timeframe
Loading an old .setthe removed values disappear silently and the new items will be at their defaults — go through every section again each time. Do not load it and just run

5General Settings

▼
SettingWhat it doesSuggested value
Magic NumberThe EA's ID number. It must not match any other EA on the same account123456 (change it if it clashes)
MarkDownA note for this set of values (name the setting so you remember it) — no effect on tradingAnything
Dashboard ThemeLook of the Dashboard (10 themes) — see DisplayDG_THEME_SKY (Cloudy Sky)
Exchange Rate (1 USD = ? account currency, 0=no conversion)If the account is in Thai baht, enter the exchange rate (for example 36). If it is in USD, enter 00
Order Mode (Pending/Virtual)How the first trade is placed (real Pending vs Virtual) — see the explanation belowORDER_MODE_PENDING (default)
Pending modify throttle (seconds, 0=off)Delay before the first trade's Pending order is moved (seconds). It stops the EA from chasing a sudden price jump and placing the Pending in the wrong spot0 (off), or 2-5 if you see spread spikes
Dashboard Size (Auto/Small/Medium/Large)Size of the Dashboard (Auto adjusts to your screen)DASH_AUTO
Total P/L counts all Positions (no Magic filter)Makes Total P/L count the trades of other EAs too (no Magic filter)false
Dashboard: also count Magic Number #1 (0 = none) to #4(New in v17) Magic numbers of other EAs that you want the Dashboard to count (up to 4) — display only, no effect on trading. See Dashboard0 (not included)
Close All without confirmationPressing the "Close all" button on the Dashboard closes everything at once, with no confirmation questionfalse (it asks first, which is safer)
Enable Debug ModePrints a detailed log in the Experts tab — turn it on only while looking for the cause of a problemfalse
Cooldown after placing OrderA pause after the first trade is placed, before a new round starts (stops rapid-fire orders)false
Min cooldown (seconds) / Max cooldown (seconds)Length of the pause (seconds) — the EA picks a random value between these two10 / 60
If you do not know what to setLeave everything at the default
Trading time has its own section nowSince v12 the trading time uses a 3-Session system and you can pick the trading days — see Trading time & trading days

InpOrderMode — what is the difference between Pending and Virtual?

ModeHow it worksPros / Cons
ORDER_MODE_PENDING
(default — recommended)
Places a real BuyStop/SellStop at the broker — you see them as normal pending orders in the Terminal Pro: if the VPS or internet drops, the order stays at the broker and fires when the price touches it
Con: some brokers limit the number of pending orders / they can see our entry points
ORDER_MODE_VIRTUAL The EA keeps the stop levels inside itself and sends no pending order to the broker — when the price touches a level, the EA fires a Market order right away Pro: uses no pending slots, the broker cannot see the entry points (less chance of "stop hunting"), good for brokers that limit pending orders
Con: if the VPS/MT5/internet drops, the entry point is simply gone — there is no safety net from the broker. Market execution can slip
Recommendation
  • Beginners / running at home — use ORDER_MODE_PENDING (default). It is safer: if the internet drops you still do not miss the entry point
  • Running on a stable VPS / broker limits pending orders / worried about stop hunts — you can try ORDER_MODE_VIRTUAL, but you must be sure the VPS/internet will not go down
ImportantVirtual Mode = the entry point lives only in the EA's RAM — if MT5/the VPS restarts or the EA is reloaded while it waits for price, the entry point is lost (the EA will build a new one from the current price, not the old price). Do not use it if the terminal does not run non-stop

6Trading time & trading days

▼

v14.1 changed the idea: the open and close time of each day is the main schedule. Sessions 1-3 are an extra filter that only works if you turn it on yourself

Layer 1: trading days + daily open-close time (the main schedule)

SettingWhat it doesDefault value
Trade Monday ... Trade FridayTurn each day on/offAll true
Open time (used when per-day hours are on) / Close time
(same for every day: Tuesday, Wednesday, Thursday)
Time to start/stop opening the first trade of that day (HH:MM)00:00 / 23:59
Open time / Close timeFriday — closes early to avoid the weekend gap (replaces the old InpStopOnFriday)00:00 / 16:00
Trade Saturday (for crypto) / Trade Sunday (for crypto) + Open/CloseFor crypto, which trades on Saturday and Sundayfalse (Forex/gold)
Close all positions+orders at the day's close timeWhen the daily close time arrives = close the open trades + delete all pending ordersfalse
23:59 = the whole dayThe EA reads 23:59 as the end of the day, so there is no dead minute at midnight — enter 23:59 when you want it to trade until the end of the day
Do not move the Friday close time late into the eveningIf you hold Grid trades over the weekend and then meet the Monday gap, the Grid will jump over many levels at once. This is the most common way accounts are lost

Layer 2: Session 1-3 (an extra filter — off by default)

SettingWhat it doesDefault value
Also use Sessions 1-3 (false=per-day hours only)The switch for Session 1-3. false = daily time only; any values typed in the Sessions have no effect at all. true = the time must be inside the daily time and inside at least one sessionfalse
Session 1 Start (HH:MM, empty=off) / Session 1 EndPeriod 1 (HH:MM, empty = this period is off)00:00 / 23:59
Session 2 Start / Session 2 EndPeriod 2 — leave empty = not usedEmpty
Session 3 Start / Session 3 EndPeriod 3 — leave empty = not usedEmpty
InpCloseAfterSession1..3When the session ends, close the open trades + delete all pending orders (works when Also use Sessions 1-3 (false=per-day hours only) is on)false
Example with 2 periodsTo trade only London + New York: turn on Also use Sessions 1-3 (false=per-day hours only) = true + Use Thai time (GMT+7) — off=Server time. Auto DST = true, Session 1 = 14:00-18:00, Session 2 = 19:30-23:30 (Thai time)
The two layers must overlapIf you turn Sessions on and their time does not overlap the daily time, that day will not trade at all (for example Session 1 = 00:00-06:00 but Monday opens at 08:30). When the EA starts, it prints the real schedule of each day in the Experts tab (starting with [DAY]) — check it there

Thai time

SettingWhat it doesDefault value
Use Thai time (GMT+7) — off=Server time. Auto DSTtrue = you can enter Thai time directly (GMT+7, the EA handles DST itself). false = use Server time. It affects both the daily time and the Sessionsfalse
After you turn on Thai time, fix the Friday close timeClose time = 16:00 becomes 16:00 Thai time = it stops from 4 pm on Friday. If you want it to stop late at night, change it to the Thai time you want
End of time = only stops opening new tradesThe EA still manages the trades that are open and keeps taking profit — if you really want everything cleared, you must turn on Close all positions+orders at the day's close time or InpCloseAfterSession, which may close at a loss

7First trade (Initial Order Filters)

▼

Controls where the EA places the first trade and when it must not place it — a good first trade = the Grid does not swell

SettingWhat it doesSuggested value
Initial BUY pending distance (points)Places the BuyStop this many points away from the current price100 (gold), 50-80 (FX)
Initial SELL pending distance (points)Places the SellStop this many points awaySame as the BUY side
Upper bound: no initial order when price above (0=off)Upper limit — above this price, no first trade is opened (0 = off)0
Lower bound: no initial order when price below (0=off)Lower limit — below this price, no first trade is opened (0 = off)0
Dynamic Range: stop initial when far from D1 Open (points, 0=off)Stops opening the first trade when the price is more than X points away from the daily open price (D1 Open) (0 = off)0, or 3000-5000 (gold)
When to use Dynamic RangeOn a day when gold has already moved 50 dollars from the open, that is a trend day, not a range day — the Grid should not enter. Set Dynamic Range: stop initial when far from D1 Open (points, 0=off) and the EA stops opening the first trade by itself
The upper/lower limits are real pricesEnter a price, not points (for example gold 3450). You have to adjust them yourself when price moves to a new zone — if you forget, the EA quietly stops trading

8Lot Settings (trade size)

▼

First question: how should the EA work out the lot?

LotSelectionGood for
FixedLotBeginners — a fixed lot (recommended)
DynamicLotbaseonBalanceYou want the lot to grow with your capital — Balance per 0.01 Lot (USD) = how many USD of capital per 0.01 lot (default 10000)
SqrtLotbaseonBalanceLike Dynamic but grows more slowly (safer)

Second question: how do the Grid trades grow? (Lot increment mode for Grid)

The EA has 12 modes to choose from, ordered from safest → riskiest (the default since v17 is LOT_MODE_GEO_STEPPED; up to v16.6 it was LOT_MODE_PLUS_001):

ModeExample lots (trade 1→5)In simple wordsGood for
LOT_MODE_FIXED0.01, 0.01, 0.01, 0.01, 0.01Every trade is the same, no increase at allSafest, small capital
LOT_MODE_PLUS_001_EVERY50.01, 0.01, 0.01, 0.01, 0.02Adds a little every 5 trades (set by Increment every N positions (for Mode 3))Slow lot growth
LOT_MODE_GEO_STEPPED
(in the selection list it shows as Multiply every N positions)
0.01, 0.01, 0.01, 0.02, 0.02New in v17 — multiplies the lot up one step every N trades (set by [Multiply Every N] Lot multiplier per step and [Multiply Every N] Positions per step). Values shipped with the EA: 0.01 for three trades, 0.02 for three trades, 0.03 for three trades, 0.04 for three trades, 0.07 for three tradesGrows more slowly than Fibonacci (default since v17)
LOT_MODE_PLUS_0010.01, 0.02, 0.03, 0.04, 0.05Adds a fixed amount every trade (set by Lot increment (for Mode 1))Straight-line lot growth (the value shipped with the EA up to v16.6)
LOT_MODE_TREND_ADAPTIVEWith the trend: 0.01 every trade / against the trend: climbs the FibonacciNew — the side that matches the trend uses a fixed lot; once the trend turns against it, the lot starts climbing the Fibonacci + the lot is reduced when DD is high. Once it starts climbing, it keeps climbing until that side's basket is fully closedUse together with RealtimeTrend
LOT_MODE_PLUS_STEPPED0.01, 0.012, 0.018, 0.028, 0.04Adds on a curve (slow first, fast later) — no DD DampenerMiddle ground
LOT_MODE_POWER_LAW0.01, 0.014, 0.022, 0.032, 0.045Grows by a Power Law (adjust [Power Law] k value (0.5=slow, 1=equal, 2=fast))People who like formulas
LOT_MODE_LOG_SCALED0.01, 0.02, 0.028, 0.035, 0.04Logarithmic + reduces the lot when DD is highConservative
LOT_MODE_FIB_SCALED0.01, 0.01, 0.02, 0.03, 0.05Fibonacci (1,1,2,3,5,8...) + reduces the lot when DD is highRecommended
LOT_MODE_FIBONACCI0.01, 0.01, 0.02, 0.03, 0.05Straight Fibonacci, no DampenerMedium capital and up
LOT_MODE_MULTIPLY_DYNAMIC0.01, 0.01, 0.02, 0.027, 0.036Multiplies in tiers (early/middle/late)Experienced users
LOT_MODE_MULTIPLY_150.01, 0.015, 0.023, 0.034, 0.051Pure Martingale, multiplies by 1.5 every tradeLarge capital + passed on Demo (riskiest)
What is a Dampener? The modes with "Scaled" (FIB_SCALED / LOG_SCALED) automatically reduce the lot when DD% is high (it starts reducing at [Fib/Log Scaled] DD% to start reducing Lot = 10%, and reduces the most at [Fib/Log Scaled] DD% at full reduction = 40%, leaving 15% of the normal lot) — it helps slow down a blow-up if the market runs hard against you
A cap against blow-upsMax Lot (0=unlimited, applies to all Modes) Enter 1.0 or 2.0 so the lot cannot run away from the formula (works in every mode)

The adjusters for each mode

SettingUsed by modeWhat it doesdefault
Lot increment (for Mode 1)PLUS_001The amount added per trade0.02
Lot multiplier (for Mode 2)MULTIPLY_15The multiplier per trade1.5
Increment every X positions (for Mode 3) / Increment every N positions (for Mode 3) / Auto Dynamic Lot (for Mode 3)PLUS_001_EVERY5How much to add, and every how many trades0.01 / 5 / false
[Plus Stepped] Curve Power (1=linear, >1=faster, <1=slower)PLUS_STEPPEDThe curve: 1 = straight line, above 1 = faster, below 1 = slower2.0
[Power Law] k value (0.5=slow, 1=equal, 2=fast)POWER_LAW0.5 = slow increase, 1 = equal, 2 = fast increase0.5
[Log Scaled] Slope (1.0=slow, 3.0=fast)LOG_SCALEDSteepness: 1.0 slow, 3.0 fast1.8
[Dynamic Multiply] Multiplier for position 2 / [Dynamic Multiply] Multiplier for middle positions / [Dynamic Multiply] Multiplier for late positionsMULTIPLY_DYNAMICThe multiplier for the 2nd trade / the middle trades / the last trades1.0 / 2.0 / 1.35
[Dynamic Multiply] Middle tier starts at position / [Dynamic Multiply] Late tier starts at positionMULTIPLY_DYNAMICAt which trade number the middle trades start / at which trade number the last trades start3 / 6
[Multiply Every N] Lot multiplier per step / [Multiply Every N] Positions per stepGEO_STEPPEDThe multiplier of each step / how many trades before moving up one step. A bigger multiplier or fewer trades per step = the lot grows faster and the risk is higher1.618 / 3

New in v14: Breakeven Pull — a lot ceiling for the recovery trade

A recovery trade does only one thing: it pulls the basket's breakeven point closer to the price. % of breakeven the recovery trades pull in (0=off, applies to all modes) asks directly "how many % should one trade pull it in?" and the EA works out the maximum lot itself

SettingWhat it doesdefault
% of breakeven the recovery trades pull in (0=off, applies to all modes)The most % that one recovery trade may pull the breakeven point in (0 = off). 33 = the recovery trade's lot is at most about half of the total lot on that side0 (off) since v17; up to v16.6 it was 33
It is a ceiling, not an acceleratorThe EA uses the smaller of the selected mode's formula and this ceiling — it affects the modes where the lot grows by multiplying (GEO_STEPPED, FIBONACCI, FIB_SCALED, MULTIPLY, POWER_LAW, LOG_SCALED, TREND_ADAPTIVE); FIXED and the PLUS family do not get this ceiling. After you turn the ceiling off (0) you should set Max Lot (0=unlimited, applies to all Modes) so the lot cannot grow too big. When Half Close closes trades, the total lot falls and the ceiling falls with it, so one trade never grows larger than the basket it is helping. If you see a recovery trade's lot smaller than the formula should give, this is the cause

Third question: after a Half Close, how big should the next trade be? (Lot Recovery mode after HalfClose)

After the EA closes some trades to cut the loss — what lot will the new trade placed next use:

ModeExplanationGood for
LOT_RECOVERY_NONENo recovery — go back and start counting from 1 again at the starting lotRecommended default, safest
LOT_RECOVERY_FLOORThe new trade is at least as big as the last trade before the closeYou want profit back faster
LOT_RECOVERY_FLOOR_PLUSLike FLOOR + 1 more base lotAggressive
LOT_RECOVERY_RAMPAdds one base at a time until it catches up with the normal FibonacciMiddle ground
LOT_RECOVERY_GOLDENNew trade = last trade × 1.618High risk, large capital
WarningEvery Recovery mode (except NONE) = taking more risk for a chance to win the profit back faster — if the market drags one way, the lot grows even faster and the account can blow up. Use it only when you are experienced

New in v12: Session Lot — different lots for different times

Use a small lot when the market is quiet and a large lot when it is busy (or the other way round) — it works on top of Fixed Lot

SettingWhat it doesSuggested value
--- Session Lot (lot per time window) ---The switch that turns Session Lot onfalse
[Session 1] Time window (Server Time) / [Session 1] LotThe time range (Server time) + the lot for that range00:00-08:00 / 0.01
[Session 2] Time window (Server Time) / [Session 2] LotPeriod 208:00-16:00 / 0.02
[Session 3] Time window (Server Time) / [Session 3] LotPeriod 316:00-24:00 / 0.01
CarefulSession Lot always uses Server time (it does not follow Use Thai time (GMT+7) — off=Server time. Auto DST) — this is different from the Trading time section

New in v12: Distance Lot — a bigger lot when the next trade is unusually far away

If the price jumps so far that the next trade is much farther than the normal Grid distance (for example a gap or a spike), the EA increases the lot of that trade so that the average price moves faster

SettingWhat it doesSuggested value
Distance Lot Multiplier (Gap > Grid = increase Lot)The switchfalse
Distance Threshold (start when Gap/Grid > this)Starts increasing when real distance / Grid distance > this value1.5
Distance Max Multiplier (cap)The ceiling of the multiplier3.0
RiskDistance Lot means adding size when the market is behaving abnormally — if that gap is the start of a long trend, it hurts even more. Beginners: keep it off

New in v14: Catch-up — gather the trades that were skipped

The price jumps (or a filter holds the Grid back) until it is several Grid steps away from the last trade — normally the EA opens one trade. With Catch-up on, the EA opens the skipped trades together, as separate orders, so the lot sequence runs as if nothing was ever skipped

SettingWhat it doesdefault
Catch-up skipped levels (Gap spans several Grid steps = open the skipped orders together)The switchfalse
Catch-up max orders per addThe most trades it may gather at one time (never more than what is left under Max Positions (0 = unlimited))3
The same risk as Distance LotOpening several trades at once when the market jumps = size grows fast at the most dangerous moment. Do not turn it on together with Distance Lot. It does not work on a Netting account or in LOT_MODE_TREND_ADAPTIVE mode
The DD Dampener can now be set in detailBesides [Fib/Log Scaled] DD% to start reducing Lot / [Fib/Log Scaled] DD% at full reduction there is also [Fib/Log Scaled] Min multiplier (0.15=reduce 85%) = the lowest multiplier (0.15 = when DD reaches the full ceiling, 15% of the normal lot is left). Lower this value = safer

9Grid Settings (distance to the next trade)

▼
SettingWhat it doesSuggested value
Enable Grid TradingTurn the Grid on/offtrue
Max Positions (0 = unlimited)Limits the maximum number of trades (0=unlimited)15-20 trades
[Fixed] Distance (points)Minimum distance between trades (points)default 450. 300-450 (gold), 150 (FX)
Enable ATR Floor: grid = max(base, ATR x multiplier)Lets the distance adjust to volatility by itselftrue
SummaryTurn ATR on so the EA handles it, and set Max Position to 15-20 trades to stop it dragging on

New in v12: choose how the trade distance is worked out — Base mode: Fixed / Percent / Stepped / TierTable

There used to be only one way (a fixed distance); now there are 4 modes

ModeHow it is worked outGood for
GRID_DIST_FIXEDThe same distance for every trade ([Fixed] Distance (points))Recommended default, easy to understand
GRID_DIST_PERCENTDistance = % of price ([Percent] % of Last Position price 0.25%)Markets with very different prices (BTC, stocks)
GRID_DIST_STEPPEDThe more trades, the wider the distance, in steps ([Stepped] Positions per tier trades/step × [Stepped] Multiplier between tiers, never wider than [Stepped] Max multiplier (cap) = 5 times)You want the later trades to space out by themselves
GRID_DIST_TIER_TABLEYou set the distance yourself for ranges of trade count (table below)People who know what distance they want and when

Tier Table (used when you choose TierTable)

RangeSettingdefault value
Trades 1-5[Tier 1] Used when positions <= N / [Tier 1] Distance (points)5 / 200 points
Trades 6-10[Tier 2] Used when positions <= N / [Tier 2] Distance (points)10 / 350
Trades 11-15[Tier 3] Used when positions <= N / [Tier 3] Distance (points)15 / 450
Trades 16+[Tier 4] Distance beyond Tier 3 (points)550

ATR Floor — a minimum distance that follows volatility

Enable ATR Floor: grid = max(base, ATR x multiplier) is no longer a separate mode but a minimum floor laid over any mode: the real distance = the larger of (the distance from the selected mode) and (ATR × multiplier)

SettingWhat it doesSuggested value
Enable ATR Floor: grid = max(base, ATR x multiplier)Turns the ATR Floor ontrue
ATR Timeframe ("normal" volatility reference) / ATR PeriodThe TF and Period used to measure "normal" volatilityPERIOD_M1 / 7
Grid = ATR × MultiplierMinimum distance = ATR × this value1.0
Fast react (off=classic averaged ATR)New — stretches the distance instantly at tick level when the bar is moving hard, then slowly shrinks it backtrue
[Fast] Start stretching above this ratio (below=no effect) / [Fast] Full stretch at this ratio[Fast] how many times ATR the move must be before it starts stretching / stretches fully1.5 / 3.0
[Fast] Max multiplier (cap)[Fast] the ceiling of the stretch2.5
[Fast] Shrink per closed M1 bar (0.05=slow, 0.5=fast)[Fast] how fast it shrinks back per 1 M1 bar (0.05 slow, 0.5 fast)0.15
How Fast React helpsWhen news comes out, the price jumps 300 points in 10 seconds — the old average ATR has not even moved yet and the EA places trades too close together, so the Grid swells. Fast React stretches the distance right away within that bar

Controls for the timing of Grid trades

SettingWhat it doesSuggested value
Grid: wait for candle close before OrderWaits for the candle to close before opening a Grid trade (stops opening while a wick pokes out)GCC_OFF, or turn it on if false wicks catch you often
Cooldown between Orders (minutes)How many minutes to pause between Grid trades (0 = no pause)0-5
Exclude Hedge from Grid count (false=count normally)Does not count Hedge trades as Grid trades when counting the numberfalse

10Spread Control (do not open when the spread is wide)

▼

An unusually wide spread = the market has a problem (news, market close, rollover). Opening a trade then means paying a high price from the start

SettingWhat it doesSuggested value
Spread control modeSPREAD_DYNAMIC = the EA collects spread statistics itself and compares to the median / SPREAD_FIXED = you enter the number yourselfSPREAD_DYNAMIC
[Dynamic] Multiplier vs median[Dynamic] blocks when spread > median × this value1.5
[Dynamic] Manual override (0=auto)[Dynamic] set the ceiling yourself (0 = let the EA work it out)0
[Fixed] Max Spread (points)[Fixed] the highest spread it will accept to open (points)20 (gold 30-50)
Also block Grid OrdersBlocks Grid trades too (false = blocks only the first trade)false
--- Auto trading window ---Lets the EA automatically avoid the times when the spread is always widetrue
--- Record Spread data ---Keeps spread statistics to use in its decisionstrue
Export Spread to CSVExports to a CSV file to look back on laterfalse
CSV log interval (seconds)How many seconds between CSV records60
Why DynamicEach broker has a different spread, and the times differ too — a fixed number is usually wrong. Dynamic lets the EA learn by itself what "normal" is for this broker
It needs a warm-upDynamic mode needs to collect statistics for a while to be accurate — in the first hour after you start the EA the filter may still be off

11Close Position (how profit is taken)

▼

4 modes, pick 1 (Position close method)

ModeWhat it doesGood for
BreakevenTPSets a TP automatically. The more trades are open, the closer the TPRecommended for beginners
KeepProfit (default in EA v15.0 – v16)When the profit on that side reaches the target (Initial profit target ($) = 0.2 $), the EA follows the profit and closes that side when the profit falls below 75% of its peak (Min acceptable %)General use
KeepProfitAllSame as KeepProfit but counts BUY+SELL togetherUse with Hedge
Trailing (default in EA since v16.5)Follows the price. More profit, more locked inLong-hold style

BreakevenTP (recommended mode) — TP changes with the number of trades

Number of tradesSettingdefault (points)
trades < 3TP when Positions < 3150
trades 3-6TP when Positions 3-6120
trades 6-10TP when Positions 6-1080
trades > 10TP when Positions > 1050 (the more trades, the faster it closes)
New in v12Exclude Hedge from calculation (all Modes) (default true) = Hedge trades are left out when profit is calculated, in every mode. If they are not separated, the profit number is wrong because the Hedge drags it down.

New in v12: market-adaptive TP — TP mode (Fixed or market-adaptive)

BreakevenTP used fixed points (150/120/80/50). That suits a market with one level of volatility. The new mode works out the TP from ATR instead.

SettingWhat it doesSuggested value
TP mode (Fixed or market-adaptive)TP_FIXED = use the old points / TP_ATR_BASED = work it out from ATR, so it follows volatilityTP_FIXED (beginners)
[Adaptive] Multiplier when positions < 3[Adaptive] ATR multiplier when trades < 33.0
[Adaptive] Multiplier when positions 3-6 / _6to10 / _Over10The more trades, the smaller the multiplier (closes faster)2.0 / 1.2 / 0.8
Min TP (points) / Max TP (points, 0=unlimited)Lower and upper limit so the TP does not go to extremes (0 = no limit)30 / 0
Tighten TP when loss is highWhen the loss is high, squeeze the TP even tighterfalse
Auto-close Positions without TP / Min age (minutes) before closeA trade that has had no TP for more than X minutes is closed (guards against a trade the system lost track of)true / 5
How to chooseTrading one symbol in a quiet market → TP_FIXED is enough. Trading several symbols, or gold with big swings during the day → the ATR mode takes profit more realistically.

Trailing — new set in v14

When Position close method = Trailing (default in the EA up to v14.1 and since v16.5; v15.0 – v16 use KeepProfit) — once the price runs in your favour to the start point, the EA sets an SL behind the price at the set distance and keeps moving it along. It is worked out from the average price of the whole side, not trade by trade.

Start point + distance by number of trades

Number of tradesTrailing start pointSL distance from price
trades < 3[< 3 trades] Trailing start (points) = 250[< 3 trades] SL distance from price (points) = 100
trades 3-6[3-6 trades] Trailing start (points) = 250[3-6 trades] SL distance from price (points) = 75
trades 6-10[6-10 trades] Trailing start (points) = 150[6-10 trades] SL distance from price (points) = 75
trades > 10[> 10 trades] Trailing start (points) = 100[> 10 trades] SL distance from price (points) = 50

Same idea as BreakevenTP: the more trades, the sooner it starts taking profit and the closer it follows (units are points).

Virtual Trailing — the SL lives inside the EA

SettingWhat it doesdefault
Keep SL inside the EA, not on server (price hit = close whole side)Keeps the SL level inside the EA and does not send it to the broker each time it moves. When the price touches that level = the whole side is closed. This cuts down on frequent SL modify orders.true
[Virtual] Once trailing starts, place a real SL at breakeven (in case the EA stops)When trailing starts, a real SL at breakeven is placed at the broker once. It protects you if the EA/VPS goes down.true
[Virtual] Compute SL level every tick (off=every 5 ticks)Calculates the SL level on every tick (off = every 5 ticks, lighter on the computer)true
Min gap between SL modify bursts (ms, 0=off, live only)Delay between rounds of placing the real SL (ms, 0 = off, no effect in the Strategy Tester)500
Virtual = MT5 must stay on all the timeThe SL level that follows the price exists only inside the EA. If MT5/VPS goes down, the profit that trailing had locked is lost, and only the real SL at breakeven is left (if [Virtual] Once trailing starts, place a real SL at breakeven (in case the EA stops) is on). Do not turn that one off when you use Virtual. Running at home on an unstable internet line → set Keep SL inside the EA, not on server (price hit = close whole side) = false so the SL stays at the broker.

Faster profit-taking when a counter Swing appears

After the first trade is open, if a Swing forms against you (you hold SELL and a Swing High forms / you hold BUY and a Swing Low forms) = the market is starting to go the wrong way, and the EA lowers the Trailing start point so it takes profit sooner. It works only when there are fewer than 3 trades and with 3-6 trades.

SettingWhat it doesdefault
On: counter Swing after first trade = lower Trailing start (only < 3 and 3-6 trades)Switchtrue
TF for counter Swing (SELL uses Swing High / BUY uses Swing Low)TF used to look for a counter SwingPERIOD_M5
Trailing start multiplier on counter Swing (0.5 = halve)Trailing start point multiplier (0.5 = starts half as far away)0.5
SL distance multiplier on counter Swing (1.0 = unchanged)SL distance multiplier (1.0 = no change)1.0

Market-adaptive distance + keep a % of the peak profit

SettingWhat it doesdefault
Distance mode: fixed points or ATR-basedTRAIL_FIXED = distance in points from the table above / TRAIL_ATR = distance = ATR × multiplier (follows close in a quiet market, keeps away in a strong market)TRAIL_FIXED
ATR multiplier (used when TRAIL_ATR)ATR multiplier when TRAIL_ATR is chosen1.0
Lock profit at no less than % of peak (0=off, e.g. 70)Locks profit not below this % of the furthest the price has run from the average price (0 = off, e.g. 70)0
Use Keep % only when the side has at least this many trades (0=always)Use Keep % when that side has at least this many trades (0 = always)8
When Keep % is usedA basket with many trades that has just turned positive, where you do not want the profit you made to go back to the market. Set 70 = the price ran 100 points in your favour from the average price, so the SL will not be lower than 70 points.

Lines on the chart + Overlay

SettingWhat it doesdefault
Draw trailing lines on chart (dotted=trail start, solid=trail SL)Draws trailing lines on the chart — the dotted line = trail start point, the solid line = the SL that is followingtrue
BUY trailing line color / SELL trailing line colorLine colour for the BUY / SELL sideBlue / Orange
Trailing alongside other Modes (Overlay)Runs Trailing alongside another mode (you do not need to pick Trailing as the main mode)false

Keep Profit — detailed profit targets

SettingWhat it doesSuggested value
Auto profit target from balanceLets the EA work out the profit target from the size of the capitaltrue
Profit multiplier (when few orders)Profit target multiplier while there are still few trades0.25
Initial profit target ($)Starting profit target ($) while there are still few trades0.2
Order count to start worrying / Order count considered dangerousThe number of trades at which it starts to be "worried" / "in danger". Past that, it accepts closing at a smaller profit.4 / 7
Min acceptable %The % of the target that is accepted when there are many trades75
Take profit as % of balanceKeep a % of the capital instead of $ (0 = not used)0
Auto-close when profit stalls / Stall duration before close (minutes)New — if the profit goes nowhere for more than X minutes, close it and take ittrue / 2
KeepProfitAll alongside other Modes (Overlay)Lets KeepProfitAll run on top of another main modefalse

12Half Close (smart loss cutting)

▼

Half Close makes a losing basket smaller, in exchange for the profit you would get if the price came back by itself. The PRUNE_POOL mode (default in the EA since v17), PRUNE and GRID use the profit of the winning trades on the same side to close losing trades. The NET_REDUCE mode cuts the losing lots with real money.

SettingSuggested value
Enable Half Closetrue (default in the EA since v16.5)
HalfClose modeHALFCLOSE_PRUNE_POOL (default in the EA since v17; in v16.5 – v16.6 it was HALFCLOSE_PRUNE)
Loss close mode (Partial/Cleanup/Full)REMNANT_CLEANUP (closes small leftovers automatically)
Net-profit side is left to Close Mode (HalfClose does not interfere)true (default) — on a side that is in net profit, Half Close does not step in. It leaves the profit-taking mode (Trailing/TP) to take the full profit
Limits of PRUNE / GRIDBacktest on XAUUSD, Jan 2025 – Oct 2026, month by month (capital restarted every month): turning on Half Close in the form that uses profit to close losing trades (GRID, PRUNE) lowered the average profit per month. It does not help in a month when the price runs one way for so long that the account is wiped out, because then there are no winning trades to use. Backtest results do not guarantee the future.
If you do not want the account wiped outSet HalfClose mode = HALFCLOSE_NET_REDUCE: when the open loss of a side reaches 10% of the balance, the EA cuts 30% of that side's losing lots (largest lot first, a real loss) and then waits 5 minutes before it looks again. In the same test period there was no wipe-out month (worst month −40% of capital instead of −95%), but the average profit per month fell by about 30%, and some months that would normally recover by themselves became losses. Pass a Demo first before using it live. If you want the highest average profit and can accept a wipe-out, set Enable Half Close = false.

Half Close modes — HalfClose mode

ModeShort descriptionGood for
HALFCLOSE_GRIDUses the profit of winning trades to close part of the losing trades. Trades far from the price are closed moreDefault in the EA up to v16
HALFCLOSE_PRUNECloses the biggest winning trade together with the heaviest losing trade, when the pair still leaves a profit above the set limit (needs at least 3 trades)Default in EA v16.5 – v16.6; gives up less profit than GRID
HALFCLOSE_PRUNE_POOL
(shown in the list as Prune pooled)
New in v17 — like PRUNE, but if the single biggest winning trade is not enough, it takes the next winning trades and adds them until there is enough to close the heaviest losing trade (if all the trades together are still not enough, it does not close). It closes losing trades faster than PRUNE but uses more winning trades, and it still needs winning trades, so it does not help when the price runs one way for a long time.default (v17)
HALFCLOSE_NET_REDUCEDoes not use profit: when the open loss of a side reaches the limit → cuts the losing lots by the set % (biggest trades first)You do not want a wipe-out and accept lower profit
Modes that were removedFIXED, TIERED, FORMULA, MULTIPLIER, LOGARITHMIC, PROFIT_PROP, EXPONENTIAL, BUDGET, HYBRID — test results were almost the same as GRID or worse. An old .set file that uses one of these modes will run as GRID.

Half Close Emergency Mode — speed up closing when the loss is heavy

Two emergency modes that work differently:

SettingWhat it doesSuggested value
Accelerate closing at high lossSpeeds up HalfClose when DD% goes above DD % to start accelerating (per side) (normally it waits a long time for the threshold; at high DD it closes more often)true (default)
DD % to start accelerating (per side)The DD% per side where the speed-up starts10%
HalfClose only when loss reaches triggerEmergency Only: HalfClose does not work at all until the set loss point is reached (Loss ($) to start HalfClose (per side) or Losing positions to start HalfClose (per side)). It is counted again each round: once that side is fully closed or back in profit, the loss has to reach this point again before HalfClose starts.true (default of v12 — different from the old manual, which said false)
Trigger modeNew — what triggers it: EMERGENCY_BY_AMOUNT (amount of money) or counting the losing tradesEMERGENCY_BY_AMOUNT
Loss ($) to start HalfClose (per side)The loss in $ per side where HalfClose starts-100 (default) or -25 if the capital is small
Losing positions to start HalfClose (per side)Or use the number of losing trades as the trigger instead3
What is the difference between Emergency and Emergency Only?
  • Accelerate closing at high loss = true → HalfClose works normally from the first trade, but runs more often when DD is high
  • HalfClose only when loss reaches trigger = true → HalfClose does nothing at all until the loss reaches the set point (for a style that takes the full profit per trade and does not want to cut early)
ImportantIf you do not understand Emergency Only Mode, do not turn it on — the loss can build up before the system starts to help.

New in v12: loss-cutting threshold — Threshold calculation mode

"How much profit must there be before the EA agrees to close a winning trade to pull down a losing trade" — counted as net profit after the swap and commission of the trades already closed. It used to be one fixed number; now you can choose from 3 kinds.

ModeHow it is worked outGood for
THRESHOLD_FIXEDA fixed number ([Fixed] Fixed threshold ($) = 1 USD)default, easy to understand
THRESHOLD_ADAPTIVECounted as a % of the loss that exists ([Adaptive] Profit target % of loss 0.2 = 20%)Once the account grows you do not need to adjust the number yourself
THRESHOLD_TIEREDSteps by the number of trades — the more trades, the lower the threshold (closes more easily)A Grid where trades often pile up
SettingWhat it doesdefault value
[Tiered] Unit ($ or %)[Tiered] Whether the numbers below are $ or %TIERED_DOLLAR
[Tiered] When positions < 3[Tiered] threshold when trades < 31.50
[Tiered] When positions 3-6 / _6to10 / _Over10[Tiered] more trades, lower threshold0.30 / 0.20 / 0.05
Lower threshold when loss acceleratesLowers the threshold when the loss is speeding up (the market is moving against you fast = cut quickly)true
Detection sensitivity (0.05-0.5)How sensitive it is to catching the speed-up (0.05 slow - 0.5 fast)0.1
Lower threshold at high lossLowers the threshold when DD is highfalse
Min threshold ($) / Max threshold ($ 0=unlimited)Lower and upper limit of the threshold ($, 0 = no limit)0.01 / 0
Increase Threshold per positionRaises the threshold with the number of trades (the opposite of Tiered)false
Increment per position ($)How many $ the threshold goes up per trade (used when the switch above is on)0.3
Not sure what to chooseStay on THRESHOLD_FIXED first, then see whether the EA cuts too often or too slowly. If it cuts so slowly that trades pile up, try THRESHOLD_TIERED.

New in v12: Exposure Reduction — shrink the account size after a high DD

This is a different thing from Half Close. Half Close uses profit to pull down loss. Exposure Reduction agrees to close the heaviest losing trades and throw them away to cut the total risk size when DD reaches the threshold.

SettingWhat it doesSuggested value
Enable Exposure Reduction (reduce lots at high DD)Switchfalse (turn on once you understand it)
DD% to start reducing (per side)The DD% per side where the reduction starts15%
Reduce ratio (0.5 = close 50% of worst losers)What % of the heaviest losing trades to reduce0.50
Cooldown between rounds (seconds)Pause between rounds (seconds)60
DD% must change beyond this before next round (0=off)How many % DD must move before another round is made (stops it firing repeatedly)3.0
Max rounds per day/side (0=unlimited)How many rounds per day per side (0 = no limit)3
This one closes a real lossIt is not a postponement or averaging down — the money is really lost when it closes. The trade-off is that the account does not grow until it is wiped out. Pass a Demo before you turn it on.

Extra Half Close options

SettingWhat it doesSuggested value
[Cleanup] Close all when remaining <= N x minLot[Cleanup] when what is left is no more than N times the minimum lot = close it all2.0
[Grid] Min ratio / [Grid] Max ratio[GRID] Lower and upper limit of the close share0.08 / 0.80
[Grid] Curve Shape (1.0=Linear)[GRID] Curve of the formula (1.0 = straight line)1.0
Batch Mode (limit losing positions per round) / Losing positions per roundLimits how many losing trades are closed per round (stops it closing a lot at once)false / 3
Progressive Mode (close small losses first)Closes the trades with the smaller loss firstfalse
Smallest First Mode / SF min positions (0=always on, below=OFF)Picks the smallest trades to close first + the minimum number of trades needed (0 = always do it)SF_WITH_HC / 0
HC Futility Detection (auto FULL when HC not effective) / Futility Trigger (rounds without lot reduction)If Half Close has run N times but the total lots did not go down → switch to a full closefalse / 3
Close oversized-lot positions in profit (prevent lot runaway)A trade whose lot is bigger than the base is closed as soon as it has a profit (stops the lot from jumping)true
[NetReduce] Lot reduction target (%) / [NetReduce] DD% to start reducing / [NetReduce] Cooldown (seconds)[NetReduce] lot reduction target %, the DD% per side where it starts, and the pause time (seconds)30 / 10 / 300

13Trend & Market Filter (stops opening when the market is dangerous)

▼

The idea: if the first trade gets in well → the Grid does not pile up much. These filters stop the EA opening trades when the market is not suitable, which lowers the chance of being dragged one way.

1. Trend Filter (MA) — Enable Trend Filter (MA)

Uses a Moving Average to check the bigger trend and does not open against it — if the price is above the MA = BUY only, below the MA = SELL only.

SettingSuggested value
Enable Trend Filter (MA)true for a clearly trending market (gold H1)
MA1 Period (Fast)50 or 200
Trend TimeframePERIOD_H1 (general use) — the old name TrendMA_TF has been changed
Also block Grid (false = Initial only)false = filter only the first trade, true = filter Grid trades too
Use MA2 (Slow) - off = Price vs MA1false = compare the price with MA1. true = compare the MA1 and MA2 cross (MA2 Period (Slow) - should exceed MA1 50)

2. SmartTrend Pro Filter — Enable SmartTrend Pro Filter (master switch)

A smart trend filter. It uses ATR + Momentum Power to measure "trend strength". In v14 you can choose to filter the first trade, the Grid trades or both (it used to filter only Grid) — the default filters the first trade only.

SettingWhat it doesdefault
Enable SmartTrend Pro Filter (master switch)Main switch — turn it on if you meet trending markets oftenfalse
Filter Initial ordersFilters the first tradetrue
Filter Grid ordersFilters Grid trades — does not place the next trade when the trend is strong in the opposite direction to the side you holdfalse
SmartTrend TimeframeTimeframePERIOD_M15
ATR PeriodATR Period9
Power Momentum Up (0.2-5.0) / Power Momentum Dn (0.2-5.0)Momentum strength for up / down moves (0.2-5.0, the higher, the stricter it is before a trade passes)2.0 / 3.0
Loading an old .setIf you used SmartTrend to filter Grid before, you must turn on Filter Grid orders = true yourself. Otherwise the behaviour changes to filtering the first trade instead.
How is it different from Trend MA? Trend MA only looks at "which side of the MA the price is on" (direction). SmartTrend also looks at the strength of the trend — if the trend is only swinging lightly it lets the trade pass, and if it is truly strong it blocks.

3. Stochastic Filter — BUY / SELL are now separate

Checks the timing of the first trade: opens BUY when Stoch is oversold, opens SELL when it is overbought — if the first trade gets in well, the Grid piles up less. Since v12 the BUY and SELL sides are separate, so you can turn on just one side.

SettingWhat it doesSuggested value
Enable Stoch Filter for BUYDoes not open BUY if Stoch has not yet fallen to oversoldtrue (ranging market), false (trending market)
Oversold Level (BUY enters when < this)BUY can open only below this value20-30
Enable Stoch Filter for SELLDoes not open SELL if Stoch has not yet risen to overboughttrue / false
Overbought Level (SELL enters when > this)SELL can open only above this value70-80
Stoch Timeframe (BUY) / _SellTF used to read StochPERIOD_M15
StochKPeriod_* / StochDPeriod_* / StochSlowing_*Standard Stochastic values9 / 3 / 3
Use %K (Main) or %D (Signal) line / Use %K (Main) or %D (Signal) lineWhich line decides: STOCH_MAIN_K (%K, fast) or STOCH_SIGNAL_D (%D, steadier)STOCH_SIGNAL_D
Name changedThere used to be one input called UseStochFilter — now there are Enable Stoch Filter for BUY and Enable Stoch Filter for SELL. If you load an old .set, you must set both again.

4. Bollinger Bands Filter — BUY / SELL are now separate

Opens trades only when the price touches the edge of the Band: BUY when it hits the lower line, SELL when it hits the upper line.

SettingWhat it doesSuggested value
Enable BB Filter for BUY / Enable BB Filter for SELLTurns on the BB filter for each side separatelyfalse (default)
BB Timeframe (BUY) / _SellTF of the BollingerPERIOD_M15
BBPeriod_* / BBDeviation_*Standard BB values20 / 2.0
BB also gates Grid BUY (add only on BB break-and-return) / _SellFilters Grid trades too (was InpGridBBFilter)false
Removed in v12The filter set InpUseMarketFilter + InpUseADXFilter + ATR Ratio + Consecutive Candle has been removed from the settings page — it was replaced by the Spike Filter (Baseline ATR), which does the same job but is lighter and more accurate. If you set these in an old .set, they no longer have any effect.
Recommended for beginnersStart with Enable RealtimeTrend Filter (first trade) (on by default) + Spike Filter first — do not touch Stoch/BB yet.

14RealtimeTrend Filter (the new main filter in v12)

▼

The most important new thing in v12, and it is already on — the EA reads the trend itself in real time and only trades in the same direction as the trend.

How it works — 2 layers, they must agree

LayerJobdefault value
Master TFLooks at the big trend — it says "which way is today"PERIOD_H4
Entry TFLooks at the small trend — it decides whether to really open BUY or SELLPERIOD_M1

Both layers must be green together to BUY / red together to SELL — if they do not agree, the EA does not open the first trade.

Main settings

SettingWhat it doesSuggested value
Enable RealtimeTrend Filter (first trade)Main switch (filters the first trade)true (default)
Also filter Grid (recovery) tradesFilters Grid trades toofalse — when on, the Grid will not place trades against the trend, but trades that are already open become harder to recover
Enable Master TF (main trend) - must confirm Entry TF direction to tradeForces Master TF to confirm as welltrue
Master TF: main trend (e.g. H1 while Entry uses M1)TF of the big trendPERIOD_H4 (default in v14.1, was H1)
Entry TF: decides actual BUY/SELLTF that decides the real entryPERIOD_M1 (default in v14.1, was M5)
[Master TF] Lookback bars for trend calculation / [Entry TF] Lookback bars for trend calculationHow many past bars are used in the calculation500 / 500
Attach RealtimeTrend indicator on chart (compare colors with EA, shows Entry TF)Draws the indicator on the chart so you can see the colour the EA works out (for checking)false (turn on when you want to look)

Grey bars — when the market has no trend

At some times the indicator cannot tell up from down = a grey bar, and the EA has to be told what to do.

Gray bar behavior: block / keep previous trend / trade both sidesMeaningResult
RT_GRAY_BLOCKGrey = no trading on both sidesStrictest, fewest trades
RT_GRAY_LASTGrey = keep using the previous trend (green then grey = BUY is still allowed)default, balanced
RT_GRAY_BOTHGrey = trading allowed on both sidesLoosest, most trades
Which TF's gray bar follows "Gray bar behavior" (other TF: gray = stop)The grey-bar rule applies to which TF
RT_GRAYSCOPE_ENTRYEntry TF only — whenever Master is grey = stop (default)
RT_GRAYSCOPE_MASTERMaster TF only — Entry grey = stop
RT_GRAYSCOPE_BOTHApplies to both TFs
The TF that is not chosen always uses the strict ruleThat is, grey = stop. Choose the scope to match the TF you are willing to loosen.

New in v14: Strong / Weak trend

A trend is not equally strong all the time. Right after a new trend starts it counts as Weak — once the price makes enough BOS (Break of Structure: breaking the old swing in the direction of the trend) one after another, it becomes Strong. If there is no new BOS for too long, it drops back to Weak. On the indicator you see this as a dark / light colour.

SettingWhat it doesdefault
First trade: only when trend is Strong / Weak / both (Entry TF, a gray bar counts as neither)What kind of trend (Entry TF) the first trade needs: RT_STRENGTH_ANY (both) / RT_STRENGTH_STRONG / RT_STRENGTH_WEAK. A grey bar counts as neither.RT_STRENGTH_ANY
Strong = this many continuation breaks (BOS) after the flip (0 = always Strong)How many BOS in a row are needed after the trend turns before it counts as Strong (0 = always Strong)1
Strong fades to Weak after this many bars without a new BOS (0 = never)No new BOS for more than this many bars = drop to Weak (0 = no drop)20
How to use itIf you want to enter only once the trend is confirmed → RT_STRENGTH_STRONG (fewer trades). The Strong/Weak value of the Master TF is also used by the Value Area Filter — setting the 2 lower inputs affects both places. Grid trades are not filtered by Strength.

Veto with Overbought / Oversold (do not chase the end of a move)

Even if the trend is in the right direction, if the price has run so far that it is past the zone, entering then is chasing the price — turn this on to block it.

SettingWhat it doesSuggested value
Enable Overbought/Oversold veto (blocks even when trend agrees)Turns on the veto systemfalse (turn on if you often get in at the end of a trend)
Veto indicator (Stochastic / RSI)Uses RT_VETO_STOCH or RT_VETO_RSIRT_VETO_RSI (default)
[Stoch] %K Period / StochDPeriod / StochSlowingStochastic values when Stoch is chosen9 / 3 / 3
Oscillator timeframe (used by both Stoch and RSI)TF of the oscillator (shared by Stoch and RSI)PERIOD_M15
[Stoch] Overbought: above this = no BUY / OversoldAbove 80 = no BUY, below 20 = no SELL80 / 20
[RSI] Period / RSIOverbought / RSIOversoldValues when RSI is chosen14 / 70 / 30

Flip Close — trend turns the other way = cut the opposite side

This one really closes trades, it does not just filter — when the trend flips (green ↔ red), the EA closes all the trades on the side that goes against the new trend, at once.

SettingWhat it doesSuggested value
Close all counter-trend positions when trend flips (green<->red)Switchfalse (default)
TF used to decide a trend flip (independent of the Filter)TF used to decide the trend flip (separate from the filter above)PERIOD_M5
Also delete that side's pending ordersDeletes pending orders on that side tootrue
Leave Hedge trades alone (recommended true when Hedge is on)Does not touch Hedge tradestrue (if you use Hedge)
Skip closing if that side's loss exceeds this (0=no limit)A brake to avoid getting hurt — if that side's loss is more than this value, it does not cut (0 = always cut, no limit)Always set it. Do not use 0
Loss limit unit (% of Balance or $)Unit of the value above: % of Balance or $RTFLIP_LOSS_PERCENT
Flip Close = accepting a big lump lossThe good side is that you can get away from a trend that is about to drag on. The bad side is that if the trend only swings as a fake-out and then comes back, you cut for nothing. Always set Skip closing if that side's loss exceeds this (0=no limit). Otherwise on a day when the market swings back and forth, you will be cut again and again until the account is worn down.
BeginnersUse just the filter (Enable RealtimeTrend Filter (first trade)) — keep Close all counter-trend positions when trend flips (green<->red) off until you have run a Demo and understand how often the trend flips on the symbol you trade.

15Pattern Filter (15 candlestick patterns)

▼

New in v12 — lets the EA read the candlestick pattern before it opens a trade, and enter only when the candle confirms the direction.

SettingWhat it doesSuggested value
Enable Pattern FilterMain switchfalse (turn on if you want fewer but more accurate entries)
Also block Grid (false = Initial only)Applies to Grid trades too (false = first trade only)false
Detection timeframeTF where the candles are readPERIOD_M5
Trend lookback (bars)How many bars to look back to know whether it is going up or down (a reversal pattern needs a trend before it counts)5

Turn on one pattern at a time

SettingPatterndefault
Engulfing (bull + bear)Engulfing, both bull/bear — the standard reversal signalOn
Harami (bull + bear)Harami (a small candle inside a big candle), both bull/bearOn
Hammer + Inverted Hammer (bullish reversal)Hammer + Inverted Hammer (upward reversal)Off
Kicker (bull + bear, strong reversal)Kicker — a strong reversalOff
Morning + Evening StarMorning Star + Evening Star (3 candles)Off
Piercing Line (bull)Piercing Line (bullish)Off
Bullish BeltBullish Belt HoldOff
Hanging Man (bear)Hanging Man (bearish)Off
Shooting Star (bear)Shooting Star (bearish)Off
Doji (neutral, default off) / Doji body fraction (0.01-0.20)Doji (undecided, shows no direction) + the body size that counts as a DojiOff / 0.05
More patterns on = easier to enter, not harderEach pattern is another "way through" — turning on many means there are many conditions that make the EA agree to enter. If you want it strict, turn on fewer.
Do not turn on many filters togetherPattern + RealtimeTrend + Stoch + BB all at once = the EA almost never opens a trade. Try them one at a time on a Demo.

16Range Zone Filter (Premium / Discount)

▼

Smart Money filter. It splits the swing range into 2 zones: Premium (upper half = expensive) and Discount (lower half = cheap), with the Equilibrium line between them. The idea: do not buy high, do not sell low.

Why it mattersThe other filters (Stoch/BB/Trend MA) look at timing. Range Zone looks at the price level against the swing range. If price goes up to grab the high liquidity (deep in Premium) and the EA then BUYs, price is reversed straight back down. This filter prevents that.

3 modes: you can turn on several at the same time

SettingWhat it doesSuggested value
Enable Range Zone FilterMaster switch: turns on the main zone filter (used together with Range Filter applies to... (default: Initial only))true (if the market is often range-bound)
Anti-FOMO: block BUY deep in premium, block SELL deep in discount (independent of UseRangeZone)Anti-FOMO (works independently of UseRangeZone): blocks BUY deep in Premium and SELL deep in Discount, so the EA does not chase pricedefault false; we suggest turning it on
Deep filter (tighten UseRangeZone): enter only at far end of correct zoneDeep mode: used together with UseRangeZone so the EA enters only at the far end of the correct zone (for example BUY only at the far end of Discount)true

Zone settings

SettingExplanationSuggested value
Range Filter applies to... (default: Initial only)Which trades it applies to: FILTER_INITIAL_ONLY (first trade) / FILTER_GRID_ONLY / FILTER_BOTHFILTER_INITIAL_ONLY (default)
Range Zone TimeframeTimeframe used to find the swingPERIOD_H1
Swings LengthHow many bars to look back for the swing high/low50
% depth (shared by Extreme/Deep). 50=mid zone, 100=far end% depth (used with Extreme/Deep): 50 = middle of the zone, 100 = the far enddefault 80

What you see on the chart

SettingSuggested value
Draw zones on charttrue (draws the zone on the chart)
Premium zone (block BUY)clrLightPink (zone that blocks BUY)
Discount zone (block SELL)clrPaleGreen (zone that blocks SELL)
Equilibrium lineclrGray (the Equilibrium line in the middle of the zone)

Short summary of the logic

  • Premium zone (upper half) = expensive, so BUY is not wanted: the system blocks BUY
  • Discount zone (lower half) = cheap, so SELL is not wanted: the system blocks SELL
  • Equilibrium = the middle of the swing range: both sides can pass
  • Turning on Extreme+Deep = it blocks only when price is deep in the wrong zone (fewer false blocks when price is only passing through)
Suggested startTurn on only Anti-FOMO: block BUY deep in premium, block SELL deep in discount (independent of UseRangeZone) = true first (Anti-FOMO standalone). If you like the result, then also turn on Enable Range Zone Filter + Deep filter (tighten UseRangeZone): enter only at far end of correct zone.
Strong trending market (NFP, CPI)Range Zone can block the wrong side. If the trend is clear, it is better to use Enable Trend Filter (MA)/Enable SmartTrend Pro Filter (master switch) together with it. Range Zone suits a sideways / range-bound market.

17Value Area Filter (Daily Volume Profile)

▼

New in v14 and already turned on. The EA builds the day's Volume Profile and finds the Value Area = the price range with the heaviest trading (70% of the volume). The lower edge is called VAL and the upper edge VAH. The idea: BUY in the lower half of the box, SELL in the upper half of the box.

Entry rules

SideCan open when price isSetting
BUYFrom the lower edge (VAL) up to no more than X% of the box heightBUY allowed in this % of the box, from the bottom up (100=whole box) = 50
SELLFrom the upper edge (VAH) down to no more than X% of the box heightSELL allowed in this % of the box, from the top down (100=whole box) = 50
Outside the boxPrice breaks out below the box: BUY is allowed. Price breaks out above the box: SELL is allowed (the favourable side). Turn this off = trades only inside the boxAlso trade past the favourable edge (BUY below the box / SELL above it) = true

50/50 = BUY in the lower half, SELL in the upper half, with no overlap. 100/100 = the whole box can trade on both sides.

Main settings

SettingWhat it doesdefault
Enable Value Area Filter (trade only inside the value area)Main switchtrue
Value Area Filter applies to... (default: Initial only)Which trades it applies to: FILTER_INITIAL_ONLY (first trade) / FILTER_GRID_ONLY / FILTER_BOTHFILTER_INITIAL_ONLY
Value Area Filter works when the RealtimeTrend (Master TF) trend is Strong / Weak / both (otherwise it does not filter)This filter works only when the RealtimeTrend of the Master TF is the type you choose. Otherwise it does not filter at all. RT_STRENGTH_STRONG / RT_STRENGTH_WEAK / RT_STRENGTH_ANY (always filters)RT_STRENGTH_STRONG
Which day's profile to use (previous / current / both merged)Which day's Profile to use: VA_DAY_PREVIOUS (previous day, the box stays still all day) / VA_DAY_CURRENT (today, the box moves during the day) / VA_DAY_MERGED (2 days merged)VA_DAY_CURRENT
Current-day mode: use the previous day until this hour (server time, 0=off)Current-day mode: before this hour (server time) there is little data for today, so the EA uses the previous day's box for now (0 = off)5
Why it is tied to StrongThe default means: when the H4 trend is strong → the EA must enter only at the favourable price inside the box. When the trend is weak or grey → it lets trades through. The Strong/Weak rule is set in RealtimeTrend (Strong = this many continuation breaks (BOS) after the flip (0 = always Strong) / DecayBars) and is read from Master TF: main trend (e.g. H1 while Entry uses M1) even if you have turned the RealtimeTrend filter off.

Match the indicator + what you see

SettingWhat it doesdefault
Profile rows (match the indicator)Number of Profile rows50
Value Area % (match the indicator)Value Area is taken from what % of the volume70
Volume source timeframe (match the indicator)Timeframe used to count volumePERIOD_M1
Draw the zone the EA uses on chart (debug) / EA Value Area zone colorDraws the box the EA uses on the chart + the colour of the boxtrue / dark blue
If you also run the Volume Profile indicatorSet the 3 values above (Bins / Percent / Source TF) to match the indicator. If not, the box you see and the box the EA uses will not be the same.
The EA does not open the first trade even though the trend is rightCheck this filter first. In a strong uptrend price is often in the upper half of the box, where BUY is not allowed, so the EA must wait for a pullback to the lower half. To let it enter more easily → raise BUY allowed in this % of the box, from the bottom up (100=whole box) / SELL allowed in this % of the box, from the top down (100=whole box). While the Profile is still being built, the filter does not block.

18Spike Filter (blocks sudden big moves)

▼

Job: stop the EA opening trades while a candle is unusually long (strong news, a price jump). It measures against a baseline ATR × a multiplier. Above the limit = pause for a number of M1 bars set by the Cooldown.

Preset (Preset: Efficient / Balanced / Protect / Custom)Values usedStrengthSuits
SPIKE_EFFICIENTATR M5 × 1.5, pause 2 barsBlocks only 1.7% of the time (loose)You want more trades
SPIKE_BALANCEDATR M15 × 1.0, pause 3 barsBlocks 2.5% (medium)General use
SPIKE_PROTECTATR M15 (21) × 0.7, pause 5 barsBlocks 3.2% (strict)default, the safe one
SPIKE_CUSTOMSet it yourself in the table belowDepends on what you setExperienced users
SummaryTurn on Spike Filter = true + SPIKE_PROTECT (the value that ships with the EA). Done. You do not need to adjust anything else.

New in v14: Custom + minimum floor

SettingWhat it doesdefault
Min threshold floor (points). 0=offMinimum floor for the limit (points). Works with every preset. It stops a normal bar being counted as a spike when the market is so quiet that the ATR is very small (0 = off)0
[Custom] Baseline TF[Custom] Timeframe of the baseline ATRPERIOD_M15
[Custom] Baseline ATR Period[Custom] Period of the baseline ATR (minimum 5)14
[Custom] threshold = ATR x multiplier[Custom] Limit = ATR × this value. The lower it is, the stricter it is0.8
[Custom] Cooldown M1 bars[Custom] How many M1 bars to pause after a spike is found (minimum 1)3
The Custom values count only when you choose SPIKE_CUSTOMIf another preset is selected, changing these 4 values changes nothing.

19Advanced Filters (Tuner level: turn on only when needed)

▼

4 extra filters. Use them once you understand the EA and want to tune it for one particular kind of market. Careful: Mean Reversal (item 3) is already turned on by default.

Removed in v12Swing S/R Filter (InpUseSR_*) and CCI Multi-TF Voting (InpCCIVoting) are gone. If you see these 2 in an older manual, skip them.

1. Slope Gate (Anti-Trend Grid): Slope Gate

Stops the Grid from being placed against a strong trend on a low timeframe. Slope = (current close − close N bars ago) ÷ ATR. If it goes over the threshold, the opposing side is blocked.

SettingExplanationSuggested value
Slope GateSwitchfalse (try turning it on if the Grid keeps being dragged against the move)
Slope TimeframeTimeframe used for the slopePERIOD_M1
Lookback barsHow many bars back12
ATR ThresholdRatio (slope/ATR). The lower it is, the easier it blocks2.5
ExampleM1 falls −2.5 ATR in 12 bars → BUY is blocked (the BUY Grid stops adding). A rise of +2.5 → SELL is blocked.

2. Extended Move Filter (EMF): Block orders when price has moved too far

Stops entries when price has run too far from the swing. It measures the move (distance from the swing) against the D1 ATR. It has a soft zone (smaller lot) before the hard block.

SettingExplanationSuggested value
Block orders when price has moved too farSwitchfalse (turn on if the market trends hard)
Timeframe for Swing/ATRSwing/ATR timeframePERIOD_D1
Bars to scan Swing High/LowBars used to find the swing20
ATR PeriodATR Period14
Block when Move >= X times ATRBlock when move ≥ X×ATR3.0
Reduce Lot when Move >= X times ATRReduce lot when ≥ X×ATR (soft)2.0
Also block InitialFilter the first tradetrue
Also block GridFilter the Gridtrue
LogicBUY is blocked when price is far above the swing low (it has already run up, so buying now = chasing price). SELL is blocked when price is far below the swing high.

3. Mean Reversal (new in v14): Allow counter-trend entries on Stoch Divergence

Every trend filter tells the EA to "follow the trend", but following it forever means buying at the top. This one looks for Stochastic Divergence (price makes a new high but Stoch does not follow = the push is starting to fade) and then does 2 things:

  • Allow the counter-trend side: the side the divergence points to can pass the trend filters (Trend MA, SmartTrend, RealtimeTrend) for a while
  • Pause the with-trend side: stops opening first trades on the side the divergence says looks doubtful

Example: in an uptrend, a bearish divergence appears on H4 → BUY pauses and SELL is allowed even though the trend is still green.

SettingWhat it doesdefault
Allow counter-trend entries on Stoch DivergenceMain switchtrue
Stoch TimeframeTimeframe used to find the divergence (the one that can allow counter-trend)PERIOD_H4
%K Period / %D Period / SlowingStochastic values9 / 3 / 3
Bars scanned to find pivotsHow many bars back to scan to find a pivot20
Bars on each side required for a pivotHow many bars each side a bar needs to count as a pivot2
Max bars between 2 pivots (0=no limit)2 pivots further apart than this many bars = not counted (0 = no limit)15
Bars the signal stays valid after confirmationSignal stays valid for how many bars after confirmation3
Also require OB/OS zoneIt counts only if it also happens in the Overbought/Oversold zone (stricter)false
Overbought zone (SELL) / Oversold zone (BUY)Zone levels (used when the switch above is on)80 / 20
Draw divergence arrows+lines on chartDraws divergence arrows + lines on the charttrue

Pause

SettingWhat it doesdefault
On divergence, pause trend-side first tradeWhen a divergence is found, pause the first trade on the with-trend sidetrue
Also check divergence on fast TF (found = pause only, no counter entry)Also check divergence on a fast TF. Found = pause only, it does not give permission to go against the trendfalse
Pause detector TFTimeframe of the fast detectorPERIOD_M15
Also pause that side's grid (caution: open basket will not average)Also pause the Grid trades on that sidefalse
Reading the lines on the chartThick solid lines (red/blue) = divergence from the main TF. This one can open trades against the trend. Thin dashed lines (orange/yellow) = from the fast TF, pause only.
Do not turn on Also pause that side's grid (caution: open basket will not average) if you do not understand itPausing the Grid = the basket already open on that side gets no extra averaging trades during the pause. If price keeps running, it becomes harder to recover.
You see the EA open against the RealtimeTrend colourThis is not a bug: Mean Reversal gave it permission. If you do not want it to go against the trend at all → Allow counter-trend entries on Stoch Divergence = false.

4. Entry Price Filter (new in v14): Skip first-trade pending if price is worse than previous bar close

Stops chasing price on the first trade: it does not place the first trade if the current price is worse than the previous bar's close. BUY must not be higher, SELL must not be lower. It applies to the first trade only and does not touch Grid trades.

SettingWhat it doesdefault
Skip first-trade pending if price is worse than previous bar closeSwitchfalse
TF for close[1] reference (CURRENT=chart TF)Timeframe of the bar used for the closing price (PERIOD_CURRENT = the TF of the chart the EA is dragged onto)PERIOD_CURRENT
Tolerance (points, 0=strictest)Tolerance in points (0 = strictest)0
Works fully with VirtualIn ORDER_MODE_PENDING this filter filters the decision to place, but the Stop order still sits at a price further away by the pending distance. In ORDER_MODE_VIRTUAL the price that is checked and the price that is entered are the same price.
Turn on one at a timeTurning on several filters together = a very strict AND gate and the EA will hardly open any trade. Always turn on one at a time and watch the Demo result first.

20Advanced Protection (Cross-Side + Net Hedge)

▼

Advanced protection for the situation "dragged hard in one direction". Do not turn them all on together. Turn on one set at a time.

v15.0 keeps only one Hedge systemStaged Hedge and DDReduce (Standalone) have been removed. What is left is Cross-Side and Net Hedge.

1. Cross-Side DDReduce: Accumulate realized profit from right side to close wrong side

Idea: when the market moves in one direction, the right side makes profit and the wrong side loses. The system accumulates the realized profit from the right side and uses it to close the wrong-side trades one by one (the trade with the smallest loss first).

SettingExplanationSuggested value
Accumulate realized profit from right side to close wrong sideTurns Cross-Side DDReduce on/offtrue (default; we suggest keeping it on)
Min net profit after offset ($)Minimum net profit ($) after the offset, before closing1 USD
Wrong side must have at least N positionsThe wrong side must have at least this many trades before it works1
Which position to close firstWhich wrong-side trade to close first. CROSS_SMALLEST_LOSS = the trade with the smallest loss firstCROSS_SMALLEST_LOSS
Boost right-side Lot per wrong-side exposureBoost the lot on the right side (following the wrong side as it grows) so the accumulated profit catches uptrue
Max boosted LotMaximum cap for the boosted lot0.10
Cooldown between close rounds (seconds)New: pause between close rounds (seconds), so it does not cut too fast30
Target accumulation within X roundsNew: sets the target to finish accumulating the profit within this many rounds (used to work out the boost)20
Delay after trend change before boost (seconds)New: after the trend changes, how many seconds to wait before the boost starts (protects against a fake trend)300
AdvantageYou do not need a separate Hedge. It uses the profit from the right side to close the wrong side little by little. You can leave it on without any fuss.

2. Net Hedge: Enable Net Hedge

Idea: when the DD on one side reaches the limit → open one opposite trade, sized by the share of that side's volume, to stop the bleeding. Then there are 3 guaranteed ways out.

SettingWhat it doesSuggested value
Enable Net HedgeSwitch that turns Net Hedge on/offfalse until it has passed Demo
DD% per side (grid only) to start hedgeDD% per side (counting only Grid trades) at which the hedge starts10%
Lock volume ratio (0.3-1.0)What % of that side's volume to lock (0.6 = lock 60%, not the full amount)0.60
Rebalance when volume deviates beyond (0.2 = 20%)The Grid grows until the ratio is off by more than this %, then the hedge is adjusted (0.2 = 20%)0.20
Cooldown between actions (seconds)Pause between actions (seconds)120

3 ways out

Way outConditionSetting
1. Close when the total is in profitTotal profit (Grid + Hedge) on that side reaches the target → close the whole set, the cycle ends[Exit 1] Combined P/L target ($) - close hedge + that side's grid = 5 USD
2. Trail the Hedge profitThe Hedge profit reaches the arm point. If the profit then falls back to a % of its peak → close the Hedge and keep the profit[Exit 2] Hedge profit to arm trail ($) = 10 USD, [Exit 2] Close when profit falls to % of peak = 70%
3. ExpiryHedge stays open longer than X hours → forced clear (0 = this mechanism is off)[Exit 3] Max hedge age (hours, 0=off) = 168 (7 days)
What Net Hedge does well
  • One trade per side: no opening and closing over and over when the market swings (whipsaw)
  • It can always exit: there are the 3 ways out above, so there is no position that is stuck and cannot be closed
  • No orphan trades: if the Grid side has already closed completely, the Hedge is closed straight after, so nothing is left floating alone
  • Other systems can see it: Half Close / Keep Profit / Exposure Reduction know the Net Hedge trade and keep away from it
  • Survives a restart: it remembers the ticket on the machine, so after you reopen MT5 it still controls the same Hedge
A Hedge does not solve the problemIt only stops the clock so you can think. The loss that is locked is still all there, and you pay swap every night. The real way out is to close and accept it. Do not open a Hedge because you do not want to accept a loss.

21Risk Management (keeps the account from blowing up)

▼
SettingExplanationSuggested value
Daily profit target ($) - stop when reachedDaily profit target ($). When it is reached, stop10-50 (depends on your capital)
Loss limit modeLoss cut modeMODE_PERCENT_PORTFOLIO
Max loss valueLoss, as a % of capital, at which it cuts30-50
Stop EA after loss cutAfter the cut, stop the EA completelytrue
Cooldown after loss cut (minutes, when stopwhenloss=false)New: if Stop EA after loss cut = false, how many minutes to pause before it trades again15
ExampleCapital 1,000 USD, Max loss value = 30 → a loss of 300 USD closes everything straight away.

22News Filter (avoids strong news)

▼
SettingSuggested value
Enable News Filtertrue (we suggest turning it on)
Pause before news (minutes)10 minutes before the news
Pause after news (minutes)10 minutes after the news
Filter High Impacttrue
Filter Medium Impact / Filter Low Impactfalse / false (turn on if you also want to avoid medium/low news)
Also block Grid Ordersfalse = stops only the first trade during news. true = also stops Grid trades (new in v14)
Currencies (comma separated e.g. USD,EUR,GBP)USD (for trading gold / USD pairs)
ImportantGo to Terminal → Options → Expert Advisors → Allow WebRequest → add https://nfs.faireconomy.media

23Telegram Notifications (control the EA from your phone)

▼

The EA can send alerts and take commands through Telegram. You can check the status and close trades from your phone, without opening your computer.

Setup (done once)

  1. Chat with @BotFather in Telegram → type /newbot → name your bot → copy the Bot Token
  2. Chat with @userinfobot → send any message → copy the Chat ID
  3. In MT5: Terminal → Options → Expert Advisors → Allow WebRequest → add https://api.telegram.org
  4. Enter the values in the EA as in the table
SettingWhat to enterSuggested value
Enable Telegram NotificationsOn/offtrue
Bot Token (from @BotFather)Token from @BotFather(paste)
Chat ID (from @userinfobot)Chat ID from @userinfobot(paste)
Report interval (minutes)Send a status report every how many minutes60
Send during trading hours onlySend only during trading hours (no spam while you sleep)true
DD% alert (0=off)Alert when DD% goes over this value (0 = off)15
DD alert interval (minutes)While the DD is still over the limit, repeat the alert every how many minutes3
Commands: pause|resume|status|close allA note field that lists the commands, for reading only. Changing it has no effect-

Commands you can send from Telegram

CommandWhat it does
/statusShows the EA status (open trades / profit / DD)
/pauseStops opening new trades for now (old trades still go on taking profit)
/resumeStarts working again
/close_all SYMBOLCloses all trades of the symbol you name (for example /close_all XAUUSD)
Why it helpsYou are out and strong news comes → type /pause from your phone. You want to close everything → /close_all XAUUSD, without opening MT5.
ImportantBe careful that your Chat ID does not leak. Anyone who knows the Token + Chat ID can command your trades to close. Never share them with anyone.

24Display & chart clean-up

▼

Dashboard (new in v16)

The panel sits in the top-left corner of the chart and cannot be dragged. Click the panel header to fold / unfold it. Arrows and trade lines do not draw over the panel.

  • Panel header: Symbol, timeframe, version, preset name (MarkDown), licence status
  • Buttons: BOTH / BUY / SELL (the side allowed to open new trades), PAUSE / RESUME, CLOSE ALL (asks you to confirm first, unless Close All without confirmation = true)
  • NEXT ENTRY (new in v16): shows BUY and SELL separately: what that side is waiting for and for how long. For example RealtimeTrend gray, News pause, Spread, Outside the trading hours, Loss limit. If a grid is open: the number of trades, the lot, the price of the next added trade, or the reason it is not adding yet
  • THIS MONTH / TODAY / FLOATING: closed profit this month, profit today, the floating loss right now
  • MONTH / YEAR / STATS tabs (new in v16): MONTH = a daily calendar (closed profit + the deepest drawdown of the day, a WEEK column with weekly totals), YEAR = every month of the year, click a month to open it in MONTH, STATS = Profit factor, profitable days, average profit per month, Max drawdown. Use the arrows to move month / year and click LATEST to come back to the present
  • Combine several Magic numbers (new in v17): if you run the EA on several charts with different Magic numbers in one account, enter the other charts' Magic numbers in Dashboard: also count Magic Number #1 (0 = none) to #4 on every chart. Every Dashboard then shows the same total (the line under the EA name shows +N magic). The Magic numbers you enter count on every Symbol. Closed profit is combined for the full history, but the deepest daily drawdown and the MAX DRAWDOWN of the total start counting from the day you enter them. Trades closed by hand are not counted. Each chart's EA still opens and closes only the trades of its own Magic number
  • Updates every second (new in v17): on a live chart the Dashboard updates by itself even when no price comes in (in the Strategy Tester it updates with the price as before). The Server time on the bottom bar follows the broker's price, so it stops while the market is closed
  • SINCE FIRST TRADE / MAX DRAWDOWN: the total since this EA's first trade (same Magic number) on this Symbol, and the EA's maximum DD. The deepest daily drawdown is recorded from the day of the update, so earlier days are blank
  • Bottom bar: Balance / Equity, next news, spread, margin level
Status labelMeaning
RUNNINGCan open a new grid
WAITING ENTRYWorking normally, but the conditions to open a new trade are not met yet. See the reason on the NEXT ENTRY card
PAUSEDThe EA is stopped. Press RESUME (or set Start EA automatically? = true)
MANAGE ONLYThe licence check failed. It looks after only the trades already open and does not open a new grid
LOSS LIMITThe loss limit was reached. It pauses for the time you set
DAILY TARGETToday's profit target is reached
OFF HOURSOutside the trading hours you set
WAITING - NEWSNews pause period
WAITING - SPREADThe spread is wider than the limit you set
To find out why it has not enteredLook at the NEXT ENTRY card first (it names the filter that is blocking each side). If that is not enough, turn on Enable Debug Mode = true and look in the Experts tab.
The panel buttons are not remembered across a restartReopen MT5, change the timeframe or edit an input = BOTH / BUY / SELL go back to Trade Direction, and PAUSE / RESUME go back to Start EA automatically?. If you want to trade one side only, permanently, set it in the inputs.

10 themes, chosen in Dashboard Theme: Midnight Violet, Sakura Night, Gold Luxe, Emerald Garden, Sunset Ember, Graphite Grid, Neon Arcade, Candy Pop, Cloudy Sky (default), Kitty Milk. The size is set in Dashboard Size (Auto/Small/Medium/Large). The theme from an old .set file may not match, so choose it again.

Chart clean-up

The EA draws arrows and lines on the chart every time it opens/closes a trade. After a long run the chart gets so cluttered that MT5 slows down.

SettingWhat it doesSuggested value
Auto-delete Arrows dailyDeletes old arrows automatically every daytrue
Also delete Lines (horizontal/Trend)Also deletes the horizontal/trend lines the EA drewtrue
Keep Arrows/Lines N days (0=delete all)How many days back to keep (0 = delete all)1
Delete all Arrows/Lines on EA exitWhen you remove the EA, clean everything uptrue
Hide chart grid on EA startNew in v14: hides the chart's grid lines when the EA startstrue
Hide trade history arrows on EA startNew in v14: hides MT5's Trade History arrows when the EA startstrue
Hide position SL/TP linesHides the order / SL / TP lines on the chart (with many trades the lines clutter the chart). Really works since v15.0. To see the lines: set false and tick Show trade levels in the chart Properties (F8)true
Show period separators on EA startNew in v14: shows the day separator lines when the EA startstrue
Main colorMain colour of the text on the chartWhite (adjust to the chart background)
CommissionCommission per lot that the broker charges. Enter it correctly so the EA works out the net profit rightAsk the broker for the real value
Enter the Commission correctlyIf you do not, the EA thinks the profit is bigger than it really is. The profit-taking mode then closes trades too early and you end up with a real loss after commission (Raw/ECN accounts will definitely hit this).

25Common situations

▼

Quiet market (Sideway)

  • The EA keeps taking profit steadily. Let it run.
  • Check: there should be no more than 3-5 trades per side.

Strong move (clear Trend)

  • Enable RealtimeTrend Filter (first trade) = true (default) already looks after this. If you are still being dragged, turn on Also filter Grid (recovery) trades = true so the Grid trades are filtered as well.
  • Turn on Block orders when price has moved too far = true to stop entries when price has run too far.
  • Set Dynamic Range: stop initial when far from D1 Open (points, 0=off) so the first trade stops opening when price is too far from the day's open price.
  • If you are dragged so hard that you must get out: Flip Close or Net Hedge, but they must pass Demo first.

Before big news (NFP, CPI, FOMC)

  • The News Filter already looks after it.
  • If you are worried, set Start EA automatically? = false 30 minutes ahead.

Friday market close

  • Close time = 16:00 stops opening first trades after 16:00 on Friday (already the default; it is server time unless you turned on Use Thai time (GMT+7) — off=Server time. Auto DST).
  • If you also want to clear the trades before the market closes → Close all positions+orders at the day's close time = true (it may close at a loss).

26Common problems + fixes

▼
SymptomCauseFix
The EA opens no trades at all (the panel shows PAUSED)Start EA automatically? = false, or PAUSE was pressedPress RESUME or set Start EA automatically? = true
StartEA is on but it still does not open tradesMost common: a filter is blocking (RealtimeTrend: the 2 TF trends do not agree, Value Area: price is in the wrong half of the box, Mean Reversal pauses that side, wide Spread, outside the daily time/session, a day that is turned off)Look at the status label on the panel first (OFF HOURS / WAITING - NEWS / WAITING - SPREAD). If it shows RUNNING but still does not open: turn on Enable Debug Mode = true, look in the Experts tab to see which filter blocks, then loosen that one
The behaviour changed after loading an old .setSome old values were removed/renamed in v12, v14.1 and v15.0Go through the What's new section and set the related values again
Trades are closed at a loss in a lump by themselvesClose all counter-trend positions when trend flips (green<->red) or Enable Exposure Reduction (reduce lots at high DD) is onSet Skip closing if that side's loss exceeds this (0=no limit) as a brake, or turn that feature off if you do not understand it yet
Session 1-3 settings have no effectAlso use Sessions 1-3 (false=per-day hours only) = false (default). The EA uses the daily time onlyTurn on Also use Sessions 1-3 (false=per-day hours only) = true
On Friday the EA stops opening trades earlyClose time = 16:00 (default)It is meant to avoid the weekend gap. You can move it by editing this value, but do not hold trades over the weekend
The EA opens a trade against the trend colourMean Reversal found a divergence and gave permission to go against the trendNormal. If you do not want it → Allow counter-trend entries on Stoch Divergence = false
The recovery trade's Lot is smaller than the formula you chose% of breakeven the recovery trades pull in (0=off, applies to all modes) (default 33) acts as a ceilingRaise the value, or enter 0 to turn it off (more risk)
You do not see the SL at the broker even though Trailing worksKeep SL inside the EA, not on server (price hit = close whole side) = true (default), so the SL is inside the EALook at the trailing line on the chart instead, or turn Virtual off
The trading hours do not match what you setYou forgot to turn on Use Thai time (GMT+7) — off=Server time. Auto DST. The default is Server timeSet Use Thai time (GMT+7) — off=Server time. Auto DST = true and then enter Thai time directly
The profit the EA shows does not match the real amountCommission was not enteredAsk the broker for the commission and enter it correctly
The EA opens a trade but no Grid appearsEnable Grid Trading = false, or Max Position is fullCheck UseGrid, raise Max
Too many trades, heavy lossThe Lot Mode multiplies too muchChange to LOT_MODE_FIXED or FIB_SCALED
News keeps hitting the accountNews Filter / Spike Filter is not turned onTurn on these 2
Licence Error at startDuplicate Magic Number / internet droppedChange the Magic / check the internet
The Dashboard does not show2 EAs dragged onto one ChartRemove 1
You do not see the order / SL / TP lines on the chartHide position SL/TP lines = true (default, really works since v15.0)Set false and tick Show trade levels in the chart Properties (F8)
You pressed BUY / SELL on the panel, and after reopening MT5 it is back to BOTHWhen the EA restarts it uses Trade Direction from the inputsIf you want to trade one side only, permanently, set Trade Direction in the inputs

27Checklist before you run

▼

Tick every item before you turn the EA on (the page remembers your ticks automatically).

285 iron rules (never do these)

▼
1
Never delete trades the EA placed itself
The EA gets confused and works out the Grid wrongly
2
Never change the Lot midway while trades are open
Wait until they are all closed first
3
Never switch off the internet / close MT5 while trades are open
Trailing/TP will not work
4
Never run 2 EAs on the same Symbol with the same Magic Number
The EAs will fight each other
5
Never use money you cannot afford to lose
A Grid EA can blow the account if the market runs hard in one direction