- 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.
DynamicGrid EA
A Grid Trading EA that takes small profits often and closes fast. Suited to gold/forex — ATR-based dynamic grid distance
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.
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. | Item | Suggested value | Explanation |
|---|---|---|---|
| 1 | Start EA automatically? | true | The main switch. It must be on or the EA does nothing |
| 2 | Trade Direction | BOTH | Trade both buy and sell |
| 3 | Fixed Lot | 0.01 | Start with the smallest lot |
| 4 | Enable Grid Trading | true | Turns on the Grid system |
| 5 | Position close method | BreakevenTP | The safest way to close in profit (since v16.5 the EA's default is Trailing, so you must change it yourself) |
Enable 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
Close 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
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 basket | How often | Cent account (real USD) | Standard account (USD) |
|---|---|---|---|
| 1 | 67% of baskets | 0.02 | 1.75 |
| 2-4 | 30% | 0.13 - 1.11 | 13 - 111 |
| 5-8 | 2.8% | 2 - 11 | 223 - 1,099 |
| 9-11 | 23 baskets | 17 - 28 | 1,659 - 2,751 |
| 12-17 | 16 baskets | 45 - 73 | 4,520 - 7,253 |
| 20 | 1 basket | 169 | 16,944 |
| 25 | 1 basket | 311 | 31,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
| Capital | In the 9-month backtest | Suited to |
|---|---|---|
| 50 USD | Account wiped out 17 times | Not recommended |
| 100 USD | Account wiped out 2 times | Starting to learn, can accept losing the whole amount |
| 360-600 USD | Not wiped out | Want to survive the worst basket seen so far |
- If you raise
Fixed Lotto 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
- 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
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 new | What it does | See |
|---|---|---|
| New Dashboard | A 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 it | Dashboard |
| 10 themes | Choose at Dashboard Theme (default Cloudy Sky) | Dashboard |
| Direction buttons are separate per chart | Pressing 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 input | Dashboard |
Hide position SL/TP lines really works | Before, 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 backtest | About 2 times faster without visual mode — same settings, same trading result | - |
- The whole Staged Hedge set (
UseStagedHedge,InpHedgePreset,HedgeDD_*,HedgeStep1..4_*,HalfCloseIncludeHedgeetc.) → 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 new | What it does | See |
|---|---|---|
| Value Area Filter | Trades the first trade only inside the daily Volume Profile zone (BUY in the lower half / SELL in the upper half) — already on by default | Value Area |
| Mean Reversal | When a Stoch Divergence appears = allow counter-trend entries, and pause the with-trend side — already on by default | Advanced Filters |
| Entry Price Filter | Does not place the first trade if the price is worse than the previous bar's close (stops chasing price) | Advanced Filters |
| New Trailing set | Start 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 appears | Close Position |
| Open-close time per day | Each day has its own open/close time — replaces InpStopOnFriday. Session 1-3 become an extra filter | Trading hours |
| RealtimeTrend Strong / Weak | Tells a strong trend from a weak one by the number of BOS, so you can trade only the type you want | RealtimeTrend |
| Custom Spike Filter | Besides the 3 presets, you can set the Baseline TF / multiplier / Cooldown yourself + set a minimum floor in points | Spike Filter |
| Catch-up | If price jumps across several Grid levels = it opens the skipped trades together (as separate orders) | Lot Settings |
| Breakeven Pull | The 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 basket | Lot Settings |
| Lot Mode: Trend Adaptive | With the trend = fixed lot; when the trend turns against you = it climbs the Fibonacci steps slowly + Dampener | Lot Settings |
| More filters can control the Grid | News (Also block Grid Orders) and SmartTrend (Filter Initial orders / BlockGrid) let you choose whether they filter the first trade or the Grid trades | News, Trend Filter |
| Automatic chart layout | Hides the chart Grid lines / Trade History arrows / SL-TP lines, shows the day separator lines | Screen |
InpStopOnFriday+InpFridayStopHour→ useClose time(default 16:00) insteadInpTrailingStart/InpTrailingStep→ split into 4 ranges[< 3 trades] Trailing start (points)...[> 10 trades] SL distance from price (points)TimeToStart1..3are still there but have no effect until you turn onAlso use Sessions 1-3 (false=per-day hours only)
v9.9 → v12.0 (older changes)
| What's new | What it does | See |
|---|---|---|
| RealtimeTrend Filter | The new main trend filter. It looks at 2 TFs (Master + Entry) and both must agree before it trades — already on by default | RealtimeTrend |
| RealtimeTrend Flip Close | When the trend flips = it cuts the counter-side trades at once, without waiting | RealtimeTrend |
| Net Hedge | The new Hedge system, replacing Staged Hedge — it locks with a single trade and has 3 ways out | Advanced Protection |
| Pattern Filter | Reads 15 candlestick patterns (Engulfing, Harami etc.) to filter the entry timing | Pattern Filter |
| Grid Distance 4 modes | Choose the distance as Fixed / Percent / Stepped / TierTable + an ATR Floor can override every mode | Grid Settings |
| Half Close Threshold Mode | Choose the loss-cut threshold as Fixed / Adaptive / Tiered + speed up when the loss jumps | Half Close |
| Exposure Reduction | When DD reaches the threshold = it cuts the total lot automatically (a different feature from Half Close) | Half Close |
| Market-adaptive Breakeven TP | TP is worked out from ATR instead of fixed points | Close Position |
| 3 Sessions + choose trading days | Set the time for 3 ranges a day, switch off any day, and there is a Thai time mode (GMT+7) | Trading hours |
| Spread Control | Blocks orders when the spread is unusually wide (Dynamic compares against its own median) | Spread Control |
| Session Lot / Distance Lot | Different lots by time of day, and a bigger lot when the next trade is unusually far away | Lot Settings |
| First-trade price range | Do not open a first trade when price is beyond the upper/lower range, or too far from the day's open price | First trade |
InpUseMarketFilter+InpUseADXFilter+ ATR Ratio → use Spike Filter insteadInpUseSR_*(Swing S/R) andInpCCIVoting→ gone, use RealtimeTrend insteadTimeToStart/TimeToEnd/InpCloseAllOnTimeEnd→ changed toTimeToStart1..3/InpCloseAfterSession1..3UseStochFilter→ split intoEnable Stoch Filter for BUY/_SellInpGridBBFilter→BB also gates Grid BUY (add only on BB break-and-return)/_SellTrendMA_TF→Trend Timeframe
5General Settings
▼| Setting | What it does | Suggested value |
|---|---|---|
Magic Number | The EA's ID number. It must not match any other EA on the same account | 123456 (change it if it clashes) |
MarkDown | A note for this set of values (name the setting so you remember it) — no effect on trading | Anything |
Dashboard Theme | Look of the Dashboard (10 themes) — see Display | DG_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 0 | 0 |
Order Mode (Pending/Virtual) | How the first trade is placed (real Pending vs Virtual) — see the explanation below | ORDER_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 spot | 0 (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 Dashboard | 0 (not included) |
Close All without confirmation | Pressing the "Close all" button on the Dashboard closes everything at once, with no confirmation question | false (it asks first, which is safer) |
Enable Debug Mode | Prints a detailed log in the Experts tab — turn it on only while looking for the cause of a problem | false |
Cooldown after placing Order | A 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 two | 10 / 60 |
InpOrderMode — what is the difference between Pending and Virtual?
| Mode | How it works | Pros / 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 |
- 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
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)
| Setting | What it does | Default value |
|---|---|---|
Trade Monday ... Trade Friday | Turn each day on/off | All 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 time | Friday — closes early to avoid the weekend gap (replaces the old InpStopOnFriday) | 00:00 / 16:00 |
Trade Saturday (for crypto) / Trade Sunday (for crypto) + Open/Close | For crypto, which trades on Saturday and Sunday | false (Forex/gold) |
Close all positions+orders at the day's close time | When the daily close time arrives = close the open trades + delete all pending orders | false |
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
Layer 2: Session 1-3 (an extra filter — off by default)
| Setting | What it does | Default 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 session | false |
Session 1 Start (HH:MM, empty=off) / Session 1 End | Period 1 (HH:MM, empty = this period is off) | 00:00 / 23:59 |
Session 2 Start / Session 2 End | Period 2 — leave empty = not used | Empty |
Session 3 Start / Session 3 End | Period 3 — leave empty = not used | Empty |
InpCloseAfterSession1..3 | When 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 |
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)
[DAY]) — check it there
Thai time
| Setting | What it does | Default value |
|---|---|---|
Use Thai time (GMT+7) — off=Server time. Auto DST | true = 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 Sessions | false |
Close 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
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
| Setting | What it does | Suggested value |
|---|---|---|
Initial BUY pending distance (points) | Places the BuyStop this many points away from the current price | 100 (gold), 50-80 (FX) |
Initial SELL pending distance (points) | Places the SellStop this many points away | Same 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) |
Dynamic Range: stop initial when far from D1 Open (points, 0=off) and the EA stops opening the first trade by itself
8Lot Settings (trade size)
▼First question: how should the EA work out the lot?
| LotSelection | Good for |
|---|---|
FixedLot | Beginners — a fixed lot (recommended) |
DynamicLotbaseonBalance | You 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) |
SqrtLotbaseonBalance | Like 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):
| Mode | Example lots (trade 1→5) | In simple words | Good for |
|---|---|---|---|
LOT_MODE_FIXED | 0.01, 0.01, 0.01, 0.01, 0.01 | Every trade is the same, no increase at all | Safest, small capital |
LOT_MODE_PLUS_001_EVERY5 | 0.01, 0.01, 0.01, 0.01, 0.02 | Adds 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.02 | New 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 trades | Grows more slowly than Fibonacci (default since v17) |
LOT_MODE_PLUS_001 | 0.01, 0.02, 0.03, 0.04, 0.05 | Adds 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_ADAPTIVE | With the trend: 0.01 every trade / against the trend: climbs the Fibonacci | New — 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 closed | Use together with RealtimeTrend |
LOT_MODE_PLUS_STEPPED | 0.01, 0.012, 0.018, 0.028, 0.04 | Adds on a curve (slow first, fast later) — no DD Dampener | Middle ground |
LOT_MODE_POWER_LAW | 0.01, 0.014, 0.022, 0.032, 0.045 | Grows by a Power Law (adjust [Power Law] k value (0.5=slow, 1=equal, 2=fast)) | People who like formulas |
LOT_MODE_LOG_SCALED | 0.01, 0.02, 0.028, 0.035, 0.04 | Logarithmic + reduces the lot when DD is high | Conservative |
LOT_MODE_FIB_SCALED | 0.01, 0.01, 0.02, 0.03, 0.05 | Fibonacci (1,1,2,3,5,8...) + reduces the lot when DD is high | Recommended |
LOT_MODE_FIBONACCI | 0.01, 0.01, 0.02, 0.03, 0.05 | Straight Fibonacci, no Dampener | Medium capital and up |
LOT_MODE_MULTIPLY_DYNAMIC | 0.01, 0.01, 0.02, 0.027, 0.036 | Multiplies in tiers (early/middle/late) | Experienced users |
LOT_MODE_MULTIPLY_15 | 0.01, 0.015, 0.023, 0.034, 0.051 | Pure Martingale, multiplies by 1.5 every trade | Large capital + passed on Demo (riskiest) |
[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
Max 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
| Setting | Used by mode | What it does | default |
|---|---|---|---|
Lot increment (for Mode 1) | PLUS_001 | The amount added per trade | 0.02 |
Lot multiplier (for Mode 2) | MULTIPLY_15 | The multiplier per trade | 1.5 |
Increment every X positions (for Mode 3) / Increment every N positions (for Mode 3) / Auto Dynamic Lot (for Mode 3) | PLUS_001_EVERY5 | How much to add, and every how many trades | 0.01 / 5 / false |
[Plus Stepped] Curve Power (1=linear, >1=faster, <1=slower) | PLUS_STEPPED | The curve: 1 = straight line, above 1 = faster, below 1 = slower | 2.0 |
[Power Law] k value (0.5=slow, 1=equal, 2=fast) | POWER_LAW | 0.5 = slow increase, 1 = equal, 2 = fast increase | 0.5 |
[Log Scaled] Slope (1.0=slow, 3.0=fast) | LOG_SCALED | Steepness: 1.0 slow, 3.0 fast | 1.8 |
[Dynamic Multiply] Multiplier for position 2 / [Dynamic Multiply] Multiplier for middle positions / [Dynamic Multiply] Multiplier for late positions | MULTIPLY_DYNAMIC | The multiplier for the 2nd trade / the middle trades / the last trades | 1.0 / 2.0 / 1.35 |
[Dynamic Multiply] Middle tier starts at position / [Dynamic Multiply] Late tier starts at position | MULTIPLY_DYNAMIC | At which trade number the middle trades start / at which trade number the last trades start | 3 / 6 |
[Multiply Every N] Lot multiplier per step / [Multiply Every N] Positions per step | GEO_STEPPED | The 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 higher | 1.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
| Setting | What it does | default |
|---|---|---|
% 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 side | 0 (off) since v17; up to v16.6 it was 33 |
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:
| Mode | Explanation | Good for |
|---|---|---|
LOT_RECOVERY_NONE | No recovery — go back and start counting from 1 again at the starting lot | Recommended default, safest |
LOT_RECOVERY_FLOOR | The new trade is at least as big as the last trade before the close | You want profit back faster |
LOT_RECOVERY_FLOOR_PLUS | Like FLOOR + 1 more base lot | Aggressive |
LOT_RECOVERY_RAMP | Adds one base at a time until it catches up with the normal Fibonacci | Middle ground |
LOT_RECOVERY_GOLDEN | New trade = last trade × 1.618 | High risk, large capital |
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
| Setting | What it does | Suggested value |
|---|---|---|
--- Session Lot (lot per time window) --- | The switch that turns Session Lot on | false |
[Session 1] Time window (Server Time) / [Session 1] Lot | The time range (Server time) + the lot for that range | 00:00-08:00 / 0.01 |
[Session 2] Time window (Server Time) / [Session 2] Lot | Period 2 | 08:00-16:00 / 0.02 |
[Session 3] Time window (Server Time) / [Session 3] Lot | Period 3 | 16:00-24:00 / 0.01 |
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
| Setting | What it does | Suggested value |
|---|---|---|
Distance Lot Multiplier (Gap > Grid = increase Lot) | The switch | false |
Distance Threshold (start when Gap/Grid > this) | Starts increasing when real distance / Grid distance > this value | 1.5 |
Distance Max Multiplier (cap) | The ceiling of the multiplier | 3.0 |
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
| Setting | What it does | default |
|---|---|---|
Catch-up skipped levels (Gap spans several Grid steps = open the skipped orders together) | The switch | false |
Catch-up max orders per add | The most trades it may gather at one time (never more than what is left under Max Positions (0 = unlimited)) | 3 |
LOT_MODE_TREND_ADAPTIVE mode
[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)
▼| Setting | What it does | Suggested value |
|---|---|---|
Enable Grid Trading | Turn the Grid on/off | true |
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 itself | true |
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
| Mode | How it is worked out | Good for |
|---|---|---|
GRID_DIST_FIXED | The same distance for every trade ([Fixed] Distance (points)) | Recommended default, easy to understand |
GRID_DIST_PERCENT | Distance = % of price ([Percent] % of Last Position price 0.25%) | Markets with very different prices (BTC, stocks) |
GRID_DIST_STEPPED | The 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_TABLE | You 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)
| Range | Setting | default 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)
| Setting | What it does | Suggested value |
|---|---|---|
Enable ATR Floor: grid = max(base, ATR x multiplier) | Turns the ATR Floor on | true |
ATR Timeframe ("normal" volatility reference) / ATR Period | The TF and Period used to measure "normal" volatility | PERIOD_M1 / 7 |
Grid = ATR × Multiplier | Minimum distance = ATR × this value | 1.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 back | true |
[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 fully | 1.5 / 3.0 |
[Fast] Max multiplier (cap) | [Fast] the ceiling of the stretch | 2.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 |
Controls for the timing of Grid trades
| Setting | What it does | Suggested value |
|---|---|---|
Grid: wait for candle close before Order | Waits 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 number | false |
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
| Setting | What it does | Suggested value |
|---|---|---|
Spread control mode | SPREAD_DYNAMIC = the EA collects spread statistics itself and compares to the median / SPREAD_FIXED = you enter the number yourself | SPREAD_DYNAMIC |
[Dynamic] Multiplier vs median | [Dynamic] blocks when spread > median × this value | 1.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 Orders | Blocks 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 wide | true |
--- Record Spread data --- | Keeps spread statistics to use in its decisions | true |
Export Spread to CSV | Exports to a CSV file to look back on later | false |
CSV log interval (seconds) | How many seconds between CSV records | 60 |
11Close Position (how profit is taken)
▼4 modes, pick 1 (Position close method)
| Mode | What it does | Good for |
|---|---|---|
BreakevenTP | Sets a TP automatically. The more trades are open, the closer the TP | Recommended 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 |
KeepProfitAll | Same as KeepProfit but counts BUY+SELL together | Use with Hedge |
Trailing (default in EA since v16.5) | Follows the price. More profit, more locked in | Long-hold style |
BreakevenTP (recommended mode) — TP changes with the number of trades
| Number of trades | Setting | default (points) |
|---|---|---|
| trades < 3 | TP when Positions < 3 | 150 |
| trades 3-6 | TP when Positions 3-6 | 120 |
| trades 6-10 | TP when Positions 6-10 | 80 |
| trades > 10 | TP when Positions > 10 | 50 (the more trades, the faster it closes) |
Exclude 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.
| Setting | What it does | Suggested value |
|---|---|---|
TP mode (Fixed or market-adaptive) | TP_FIXED = use the old points / TP_ATR_BASED = work it out from ATR, so it follows volatility | TP_FIXED (beginners) |
[Adaptive] Multiplier when positions < 3 | [Adaptive] ATR multiplier when trades < 3 | 3.0 |
[Adaptive] Multiplier when positions 3-6 / _6to10 / _Over10 | The 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 high | When the loss is high, squeeze the TP even tighter | false |
Auto-close Positions without TP / Min age (minutes) before close | A trade that has had no TP for more than X minutes is closed (guards against a trade the system lost track of) | true / 5 |
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 trades | Trailing start point | SL 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
| Setting | What it does | default |
|---|---|---|
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] 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.
| Setting | What it does | default |
|---|---|---|
On: counter Swing after first trade = lower Trailing start (only < 3 and 3-6 trades) | Switch | true |
TF for counter Swing (SELL uses Swing High / BUY uses Swing Low) | TF used to look for a counter Swing | PERIOD_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
| Setting | What it does | default |
|---|---|---|
Distance mode: fixed points or ATR-based | TRAIL_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 chosen | 1.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 |
Lines on the chart + Overlay
| Setting | What it does | default |
|---|---|---|
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 following | true |
BUY trailing line color / SELL trailing line color | Line colour for the BUY / SELL side | Blue / 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
| Setting | What it does | Suggested value |
|---|---|---|
Auto profit target from balance | Lets the EA work out the profit target from the size of the capital | true |
Profit multiplier (when few orders) | Profit target multiplier while there are still few trades | 0.25 |
Initial profit target ($) | Starting profit target ($) while there are still few trades | 0.2 |
Order count to start worrying / Order count considered dangerous | The 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 trades | 75 |
Take profit as % of balance | Keep 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 it | true / 2 |
KeepProfitAll alongside other Modes (Overlay) | Lets KeepProfitAll run on top of another main mode | false |
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.
| Setting | Suggested value |
|---|---|
Enable Half Close | true (default in the EA since v16.5) |
HalfClose mode | HALFCLOSE_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 |
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
| Mode | Short description | Good for |
|---|---|---|
HALFCLOSE_GRID | Uses the profit of winning trades to close part of the losing trades. Trades far from the price are closed more | Default in the EA up to v16 |
HALFCLOSE_PRUNE | Closes 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_REDUCE | Does 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 |
FIXED, 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:
| Setting | What it does | Suggested value |
|---|---|---|
Accelerate closing at high loss | Speeds 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 starts | 10% |
HalfClose only when loss reaches trigger | Emergency 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 mode | New — what triggers it: EMERGENCY_BY_AMOUNT (amount of money) or counting the losing trades | EMERGENCY_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 instead | 3 |
Accelerate closing at high loss= true → HalfClose works normally from the first trade, but runs more often when DD is highHalfClose 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)
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.
| Mode | How it is worked out | Good for |
|---|---|---|
THRESHOLD_FIXED | A fixed number ([Fixed] Fixed threshold ($) = 1 USD) | default, easy to understand |
THRESHOLD_ADAPTIVE | Counted 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_TIERED | Steps by the number of trades — the more trades, the lower the threshold (closes more easily) | A Grid where trades often pile up |
| Setting | What it does | default value |
|---|---|---|
[Tiered] Unit ($ or %) | [Tiered] Whether the numbers below are $ or % | TIERED_DOLLAR |
[Tiered] When positions < 3 | [Tiered] threshold when trades < 3 | 1.50 |
[Tiered] When positions 3-6 / _6to10 / _Over10 | [Tiered] more trades, lower threshold | 0.30 / 0.20 / 0.05 |
Lower threshold when loss accelerates | Lowers 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 loss | Lowers the threshold when DD is high | false |
Min threshold ($) / Max threshold ($ 0=unlimited) | Lower and upper limit of the threshold ($, 0 = no limit) | 0.01 / 0 |
Increase Threshold per position | Raises 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 |
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.
| Setting | What it does | Suggested value |
|---|---|---|
Enable Exposure Reduction (reduce lots at high DD) | Switch | false (turn on once you understand it) |
DD% to start reducing (per side) | The DD% per side where the reduction starts | 15% |
Reduce ratio (0.5 = close 50% of worst losers) | What % of the heaviest losing trades to reduce | 0.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 |
Extra Half Close options
| Setting | What it does | Suggested 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 all | 2.0 |
[Grid] Min ratio / [Grid] Max ratio | [GRID] Lower and upper limit of the close share | 0.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 round | Limits 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 first | false |
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 close | false / 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.
| Setting | Suggested value |
|---|---|
Enable Trend Filter (MA) | true for a clearly trending market (gold H1) |
MA1 Period (Fast) | 50 or 200 |
Trend Timeframe | PERIOD_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 MA1 | false = 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.
| Setting | What it does | default |
|---|---|---|
Enable SmartTrend Pro Filter (master switch) | Main switch — turn it on if you meet trending markets often | false |
Filter Initial orders | Filters the first trade | true |
Filter Grid orders | Filters Grid trades — does not place the next trade when the trend is strong in the opposite direction to the side you hold | false |
SmartTrend Timeframe | Timeframe | PERIOD_M15 |
ATR Period | ATR Period | 9 |
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 |
Filter Grid orders = true yourself. Otherwise the behaviour changes to filtering the first trade instead.
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.
| Setting | What it does | Suggested value |
|---|---|---|
Enable Stoch Filter for BUY | Does not open BUY if Stoch has not yet fallen to oversold | true (ranging market), false (trending market) |
Oversold Level (BUY enters when < this) | BUY can open only below this value | 20-30 |
Enable Stoch Filter for SELL | Does not open SELL if Stoch has not yet risen to overbought | true / false |
Overbought Level (SELL enters when > this) | SELL can open only above this value | 70-80 |
Stoch Timeframe (BUY) / _Sell | TF used to read Stoch | PERIOD_M15 |
StochKPeriod_* / StochDPeriod_* / StochSlowing_* | Standard Stochastic values | 9 / 3 / 3 |
Use %K (Main) or %D (Signal) line / Use %K (Main) or %D (Signal) line | Which line decides: STOCH_MAIN_K (%K, fast) or STOCH_SIGNAL_D (%D, steadier) | STOCH_SIGNAL_D |
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.
| Setting | What it does | Suggested value |
|---|---|---|
Enable BB Filter for BUY / Enable BB Filter for SELL | Turns on the BB filter for each side separately | false (default) |
BB Timeframe (BUY) / _Sell | TF of the Bollinger | PERIOD_M15 |
BBPeriod_* / BBDeviation_* | Standard BB values | 20 / 2.0 |
BB also gates Grid BUY (add only on BB break-and-return) / _Sell | Filters Grid trades too (was InpGridBBFilter) | false |
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.
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
| Layer | Job | default value |
|---|---|---|
| Master TF | Looks at the big trend — it says "which way is today" | PERIOD_H4 |
| Entry TF | Looks at the small trend — it decides whether to really open BUY or SELL | PERIOD_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
| Setting | What it does | Suggested value |
|---|---|---|
Enable RealtimeTrend Filter (first trade) | Main switch (filters the first trade) | true (default) |
Also filter Grid (recovery) trades | Filters Grid trades too | false — 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 trade | Forces Master TF to confirm as well | true |
Master TF: main trend (e.g. H1 while Entry uses M1) | TF of the big trend | PERIOD_H4 (default in v14.1, was H1) |
Entry TF: decides actual BUY/SELL | TF that decides the real entry | PERIOD_M1 (default in v14.1, was M5) |
[Master TF] Lookback bars for trend calculation / [Entry TF] Lookback bars for trend calculation | How many past bars are used in the calculation | 500 / 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 sides | Meaning | Result |
|---|---|---|
RT_GRAY_BLOCK | Grey = no trading on both sides | Strictest, fewest trades |
RT_GRAY_LAST | Grey = keep using the previous trend (green then grey = BUY is still allowed) | default, balanced |
RT_GRAY_BOTH | Grey = trading allowed on both sides | Loosest, 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_ENTRY | Entry TF only — whenever Master is grey = stop (default) |
RT_GRAYSCOPE_MASTER | Master TF only — Entry grey = stop |
RT_GRAYSCOPE_BOTH | Applies to both TFs |
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.
| Setting | What it does | default |
|---|---|---|
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 |
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.
| Setting | What it does | Suggested value |
|---|---|---|
Enable Overbought/Oversold veto (blocks even when trend agrees) | Turns on the veto system | false (turn on if you often get in at the end of a trend) |
Veto indicator (Stochastic / RSI) | Uses RT_VETO_STOCH or RT_VETO_RSI | RT_VETO_RSI (default) |
[Stoch] %K Period / StochDPeriod / StochSlowing | Stochastic values when Stoch is chosen | 9 / 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 / Oversold | Above 80 = no BUY, below 20 = no SELL | 80 / 20 |
[RSI] Period / RSIOverbought / RSIOversold | Values when RSI is chosen | 14 / 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.
| Setting | What it does | Suggested value |
|---|---|---|
Close all counter-trend positions when trend flips (green<->red) | Switch | false (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 orders | Deletes pending orders on that side too | true |
Leave Hedge trades alone (recommended true when Hedge is on) | Does not touch Hedge trades | true (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 |
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.
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.
| Setting | What it does | Suggested value |
|---|---|---|
Enable Pattern Filter | Main switch | false (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 timeframe | TF where the candles are read | PERIOD_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
| Setting | Pattern | default |
|---|---|---|
Engulfing (bull + bear) | Engulfing, both bull/bear — the standard reversal signal | On |
Harami (bull + bear) | Harami (a small candle inside a big candle), both bull/bear | On |
Hammer + Inverted Hammer (bullish reversal) | Hammer + Inverted Hammer (upward reversal) | Off |
Kicker (bull + bear, strong reversal) | Kicker — a strong reversal | Off |
Morning + Evening Star | Morning Star + Evening Star (3 candles) | Off |
Piercing Line (bull) | Piercing Line (bullish) | Off |
Bullish Belt | Bullish Belt Hold | Off |
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 Doji | Off / 0.05 |
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.
3 modes: you can turn on several at the same time
| Setting | What it does | Suggested value |
|---|---|---|
Enable Range Zone Filter | Master 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 price | default false; we suggest turning it on |
Deep filter (tighten UseRangeZone): enter only at far end of correct zone | Deep 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
| Setting | Explanation | Suggested value |
|---|---|---|
Range Filter applies to... (default: Initial only) | Which trades it applies to: FILTER_INITIAL_ONLY (first trade) / FILTER_GRID_ONLY / FILTER_BOTH | FILTER_INITIAL_ONLY (default) |
Range Zone Timeframe | Timeframe used to find the swing | PERIOD_H1 |
Swings Length | How many bars to look back for the swing high/low | 50 |
% depth (shared by Extreme/Deep). 50=mid zone, 100=far end | % depth (used with Extreme/Deep): 50 = middle of the zone, 100 = the far end | default 80 |
What you see on the chart
| Setting | Suggested value |
|---|---|
Draw zones on chart | true (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 line | clrGray (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)
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.
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
| Side | Can open when price is | Setting |
|---|---|---|
| BUY | From the lower edge (VAL) up to no more than X% of the box height | BUY allowed in this % of the box, from the bottom up (100=whole box) = 50 |
| SELL | From the upper edge (VAH) down to no more than X% of the box height | SELL allowed in this % of the box, from the top down (100=whole box) = 50 |
| Outside the box | Price 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 box | Also 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
| Setting | What it does | default |
|---|---|---|
Enable Value Area Filter (trade only inside the value area) | Main switch | true |
Value Area Filter applies to... (default: Initial only) | Which trades it applies to: FILTER_INITIAL_ONLY (first trade) / FILTER_GRID_ONLY / FILTER_BOTH | FILTER_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 |
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
| Setting | What it does | default |
|---|---|---|
Profile rows (match the indicator) | Number of Profile rows | 50 |
Value Area % (match the indicator) | Value Area is taken from what % of the volume | 70 |
Volume source timeframe (match the indicator) | Timeframe used to count volume | PERIOD_M1 |
Draw the zone the EA uses on chart (debug) / EA Value Area zone color | Draws the box the EA uses on the chart + the colour of the box | true / dark blue |
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 used | Strength | Suits |
|---|---|---|---|
SPIKE_EFFICIENT | ATR M5 × 1.5, pause 2 bars | Blocks only 1.7% of the time (loose) | You want more trades |
SPIKE_BALANCED | ATR M15 × 1.0, pause 3 bars | Blocks 2.5% (medium) | General use |
SPIKE_PROTECT | ATR M15 (21) × 0.7, pause 5 bars | Blocks 3.2% (strict) | default, the safe one |
SPIKE_CUSTOM | Set it yourself in the table below | Depends on what you set | Experienced users |
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
| Setting | What it does | default |
|---|---|---|
Min threshold floor (points). 0=off | Minimum 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 ATR | PERIOD_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 is | 0.8 |
[Custom] Cooldown M1 bars | [Custom] How many M1 bars to pause after a spike is found (minimum 1) | 3 |
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.
Swing 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.
| Setting | Explanation | Suggested value |
|---|---|---|
Slope Gate | Switch | false (try turning it on if the Grid keeps being dragged against the move) |
Slope Timeframe | Timeframe used for the slope | PERIOD_M1 |
Lookback bars | How many bars back | 12 |
ATR Threshold | Ratio (slope/ATR). The lower it is, the easier it blocks | 2.5 |
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.
| Setting | Explanation | Suggested value |
|---|---|---|
Block orders when price has moved too far | Switch | false (turn on if the market trends hard) |
Timeframe for Swing/ATR | Swing/ATR timeframe | PERIOD_D1 |
Bars to scan Swing High/Low | Bars used to find the swing | 20 |
ATR Period | ATR Period | 14 |
Block when Move >= X times ATR | Block when move ≥ X×ATR | 3.0 |
Reduce Lot when Move >= X times ATR | Reduce lot when ≥ X×ATR (soft) | 2.0 |
Also block Initial | Filter the first trade | true |
Also block Grid | Filter the Grid | true |
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.
| Setting | What it does | default |
|---|---|---|
Allow counter-trend entries on Stoch Divergence | Main switch | true |
Stoch Timeframe | Timeframe used to find the divergence (the one that can allow counter-trend) | PERIOD_H4 |
%K Period / %D Period / Slowing | Stochastic values | 9 / 3 / 3 |
Bars scanned to find pivots | How many bars back to scan to find a pivot | 20 |
Bars on each side required for a pivot | How many bars each side a bar needs to count as a pivot | 2 |
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 confirmation | Signal stays valid for how many bars after confirmation | 3 |
Also require OB/OS zone | It 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 chart | Draws divergence arrows + lines on the chart | true |
Pause
| Setting | What it does | default |
|---|---|---|
On divergence, pause trend-side first trade | When a divergence is found, pause the first trade on the with-trend side | true |
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 trend | false |
Pause detector TF | Timeframe of the fast detector | PERIOD_M15 |
Also pause that side's grid (caution: open basket will not average) | Also pause the Grid trades on that side | false |
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.
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.
| Setting | What it does | default |
|---|---|---|
Skip first-trade pending if price is worse than previous bar close | Switch | false |
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 |
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.
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.
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).
| Setting | Explanation | Suggested value |
|---|---|---|
Accumulate realized profit from right side to close wrong side | Turns Cross-Side DDReduce on/off | true (default; we suggest keeping it on) |
Min net profit after offset ($) | Minimum net profit ($) after the offset, before closing | 1 USD |
Wrong side must have at least N positions | The wrong side must have at least this many trades before it works | 1 |
Which position to close first | Which wrong-side trade to close first. CROSS_SMALLEST_LOSS = the trade with the smallest loss first | CROSS_SMALLEST_LOSS |
Boost right-side Lot per wrong-side exposure | Boost the lot on the right side (following the wrong side as it grows) so the accumulated profit catches up | true |
Max boosted Lot | Maximum cap for the boosted lot | 0.10 |
Cooldown between close rounds (seconds) | New: pause between close rounds (seconds), so it does not cut too fast | 30 |
Target accumulation within X rounds | New: 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 |
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.
| Setting | What it does | Suggested value |
|---|---|---|
Enable Net Hedge | Switch that turns Net Hedge on/off | false until it has passed Demo |
DD% per side (grid only) to start hedge | DD% per side (counting only Grid trades) at which the hedge starts | 10% |
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 out | Condition | Setting |
|---|---|---|
| 1. Close when the total is in profit | Total 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 profit | The 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. Expiry | Hedge stays open longer than X hours → forced clear (0 = this mechanism is off) | [Exit 3] Max hedge age (hours, 0=off) = 168 (7 days) |
- 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
21Risk Management (keeps the account from blowing up)
▼| Setting | Explanation | Suggested value |
|---|---|---|
Daily profit target ($) - stop when reached | Daily profit target ($). When it is reached, stop | 10-50 (depends on your capital) |
Loss limit mode | Loss cut mode | MODE_PERCENT_PORTFOLIO |
Max loss value | Loss, as a % of capital, at which it cuts | 30-50 |
Stop EA after loss cut | After the cut, stop the EA completely | true |
Cooldown after loss cut (minutes, when stopwhenloss=false) | New: if Stop EA after loss cut = false, how many minutes to pause before it trades again | 15 |
Max loss value = 30 → a loss of 300 USD closes everything straight away.
22News Filter (avoids strong news)
▼| Setting | Suggested value |
|---|---|
Enable News Filter | true (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 Impact | true |
Filter Medium Impact / Filter Low Impact | false / false (turn on if you also want to avoid medium/low news) |
Also block Grid Orders | false = 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) |
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)
- Chat with
@BotFatherin Telegram → type/newbot→ name your bot → copy the Bot Token - Chat with
@userinfobot→ send any message → copy the Chat ID - In MT5: Terminal → Options → Expert Advisors → Allow WebRequest → add
https://api.telegram.org - Enter the values in the EA as in the table
| Setting | What to enter | Suggested value |
|---|---|---|
Enable Telegram Notifications | On/off | true |
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 minutes | 60 |
Send during trading hours only | Send 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 minutes | 3 |
Commands: pause|resume|status|close all | A note field that lists the commands, for reading only. Changing it has no effect | - |
Commands you can send from Telegram
| Command | What it does |
|---|---|
/status | Shows the EA status (open trades / profit / DD) |
/pause | Stops opening new trades for now (old trades still go on taking profit) |
/resume | Starts working again |
/close_all SYMBOL | Closes all trades of the symbol you name (for example /close_all XAUUSD) |
/pause from your phone. You want to close everything → /close_all XAUUSD, without opening MT5.
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 label | Meaning |
|---|---|
| RUNNING | Can open a new grid |
| WAITING ENTRY | Working normally, but the conditions to open a new trade are not met yet. See the reason on the NEXT ENTRY card |
| PAUSED | The EA is stopped. Press RESUME (or set Start EA automatically? = true) |
| MANAGE ONLY | The licence check failed. It looks after only the trades already open and does not open a new grid |
| LOSS LIMIT | The loss limit was reached. It pauses for the time you set |
| DAILY TARGET | Today's profit target is reached |
| OFF HOURS | Outside the trading hours you set |
| WAITING - NEWS | News pause period |
| WAITING - SPREAD | The spread is wider than the limit you set |
Enable Debug Mode = true and look in the Experts tab.
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.
| Setting | What it does | Suggested value |
|---|---|---|
Auto-delete Arrows daily | Deletes old arrows automatically every day | true |
Also delete Lines (horizontal/Trend) | Also deletes the horizontal/trend lines the EA drew | true |
Keep Arrows/Lines N days (0=delete all) | How many days back to keep (0 = delete all) | 1 |
Delete all Arrows/Lines on EA exit | When you remove the EA, clean everything up | true |
Hide chart grid on EA start | New in v14: hides the chart's grid lines when the EA starts | true |
Hide trade history arrows on EA start | New in v14: hides MT5's Trade History arrows when the EA starts | true |
Hide position SL/TP lines | Hides 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 start | New in v14: shows the day separator lines when the EA starts | true |
Main color | Main colour of the text on the chart | White (adjust to the chart background) |
Commission | Commission per lot that the broker charges. Enter it correctly so the EA works out the net profit right | Ask the broker for the real value |
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 onAlso 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 onUse 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
▼| Symptom | Cause | Fix |
|---|---|---|
| The EA opens no trades at all (the panel shows PAUSED) | Start EA automatically? = false, or PAUSE was pressed | Press RESUME or set Start EA automatically? = true |
| StartEA is on but it still does not open trades | Most 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 .set | Some old values were removed/renamed in v12, v14.1 and v15.0 | Go through the What's new section and set the related values again |
| Trades are closed at a loss in a lump by themselves | Close all counter-trend positions when trend flips (green<->red) or Enable Exposure Reduction (reduce lots at high DD) is on | Set 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 effect | Also use Sessions 1-3 (false=per-day hours only) = false (default). The EA uses the daily time only | Turn on Also use Sessions 1-3 (false=per-day hours only) = true |
| On Friday the EA stops opening trades early | Close 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 colour | Mean Reversal found a divergence and gave permission to go against the trend | Normal. 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 ceiling | Raise the value, or enter 0 to turn it off (more risk) |
| You do not see the SL at the broker even though Trailing works | Keep SL inside the EA, not on server (price hit = close whole side) = true (default), so the SL is inside the EA | Look at the trailing line on the chart instead, or turn Virtual off |
| The trading hours do not match what you set | You forgot to turn on Use Thai time (GMT+7) — off=Server time. Auto DST. The default is Server time | Set 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 amount | Commission was not entered | Ask the broker for the commission and enter it correctly |
| The EA opens a trade but no Grid appears | Enable Grid Trading = false, or Max Position is full | Check UseGrid, raise Max |
| Too many trades, heavy loss | The Lot Mode multiplies too much | Change to LOT_MODE_FIXED or FIB_SCALED |
| News keeps hitting the account | News Filter / Spike Filter is not turned on | Turn on these 2 |
| Licence Error at start | Duplicate Magic Number / internet dropped | Change the Magic / check the internet |
| The Dashboard does not show | 2 EAs dragged onto one Chart | Remove 1 |
| You do not see the order / SL / TP lines on the chart | Hide 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 BOTH | When the EA restarts it uses Trade Direction from the inputs | If 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)
▼The EA gets confused and works out the Grid wrongly
Wait until they are all closed first
Trailing/TP will not work
The EAs will fight each other
A Grid EA can blow the account if the market runs hard in one direction