Latest Code Publications in CodeBase
2026.09.16
New publications in CodeBase
- Smart Loss Exit — early exit for losing positions (ATR adverse excursion, time in trade, EMA invalidation, RSI, money cap) with a CSV journal Closes losing positions early, before the full stop-loss, when a rule says the trade is not coming back: adverse move beyond N x ATR, too long in loss, EMA trend flipped, RSI against the position, or a money cap. Never touches a position in profit. Observe-only mode journals what would be closed without closing anything. Every exit is written to CSV with the rule, the age and the maximum adverse excursion, so the rules can be tuned from data.
- APB Channel EA — Heikin-Ashi reversal with channel confirmation and swing-structure stops A complete, self-contained trend-reversal Expert Advisor for gold and silver. It waits for an averaged-bar colour flip to mark a possible reversal, then requires price to close back inside a volatility channel before committing to a trade. Stops are placed at real swing structure, position size is derived from your chosen risk, and the trade is closed early whenever the market prints an opposite-direction signal.
No external indicators are required — all signal logic is built into the EA. Nothing repaints: every decision is made on closed bars only.
2026.09.15
Most downloaded source codes this month
- Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
- LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.
2026.09.15
New publications in CodeBase
2026.09.13
Most downloaded source codes this week
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
- ASQ Command Desk ASQ CommandDesk is a professional order management panel for manual traders on MetaTrader 5. You make the trading decisions — CommandDesk handles execution, risk control, and exit management automatically.
- KSQ CommandCenter Remote Google Sheets Trade Manager KSQ Command Centre is a production-ready, two-way bridge between MetaTrader 5 and Google Sheets. It was originally designed to help fund managers and quantitative traders remotely monitor and manage large, funded accounts (e.g., Darwinex Zero, Prop Firms, PAM, MAM) directly from a mobile browser, without needing to log in to a VPS.
This Expert Advisor not only exports data—it actively listens for commands typed into your Google Sheet and executes them in MT5 in near real-time.
2026.09.12
New publications in CodeBase
- MSB Pro ALGO Position Risk Monitor for MT5 Free MT5 position risk monitor displaying stop-loss risk, account risk percentage, positions without SL and individual position risk directly on the chart.
- MSB Neon Account Dashboard for MT5 Free neon-style MT5 account dashboard displaying balance, equity, floating P/L, daily realized P/L, win rate and open positions directly on the chart.
- Supertrend MTF Indicator Free multi-timeframe Supertrend indicator for MetaTrader 4 with clear trend lines and Buy/Sell signal arrows.
2026.09.11
New publications in CodeBase
- GDS Renko Canvas + Donchian GDS Renko Canvas + Donchian is a compact educational indicator for MetaTrader 5. It renders classic fixed-size Renko bricks on a single CCanvas bitmap layer and overlays a Donchian Channel calculated directly from completed Renko bricks.
The horizontal axis represents Renko sequence rather than time. The internal builder uses incoming BID ticks and the classic two-brick reversal rule. The Donchian Channel is causal: for each newly completed brick, the channel is calculated from the previous N completed Renko bricks only. The current brick is excluded from its own channel calculation.
- GDS Renko Brick Statistics GDS Renko Brick Statistics is a compact educational indicator for MetaTrader 5 that builds classic fixed-size Renko internally from BID ticks and summarizes the behavior of the most recent completed Renko bricks.
2026.09.11
There are more than
12,420 codes published in
Codebase
2026.09.11
New publications in CodeBase
- GDS Renko Canvas + Bollinger A compact educational indicator for MetaTrader 5 that renders classic fixed-size Renko bricks on a single CCanvas bitmap layer and overlays Bollinger Bands calculated directly from completed Renko closes.
The horizontal axis represents Renko sequence rather than time. The internal Renko builder uses incoming BID ticks and the classic two-brick reversal rule. Bollinger Bands are calculated only from completed Renko bricks; the forming brick is never used in the band calculation.
- GDS Renko Bollinger 4-Mode Demo EA GDS Renko Bollinger 4-Mode Demo EA is a free educational Expert Advisor for MetaTrader 5. It demonstrates four different ways to combine classic fixed-size Renko bricks with Bollinger Bands inside one standalone EA.
The EA builds four independent internal Renko streams from incoming BID ticks. Each mode has its own Renko brick size and its own Bollinger settings. Signals are generated only when a Renko brick is fully completed. Bollinger Bands are calculated causally from previous completed Renko closes, so the current brick is excluded until after its signal check.
2026.09.11
New publications in CodeBase
- GDS Renko ADX Demo EA A small educational Expert Advisor showing how Wilder's ADX and Directional Movement can be calculated directly from completed classic Renko bricks.
The EA builds fixed-size Renko internally from BID ticks. No offline charts, custom symbols, DLLs or external indicators are required. +DI, -DI and ADX are updated only after a Renko brick has been completed.
- GDS Renko Canvas GDS Renko Canvas is a compact educational indicator showing how a classic fixed-size Renko chart can be rendered directly in MetaTrader 5 with the standard CCanvas class.
The indicator builds Renko bricks from incoming BID ticks and displays only completed bricks. Continuation requires one brick, while a reversal follows the classic two-brick rule.
Unlike object-based Renko overlays, the visible chart is drawn on a single Canvas bitmap layer. This keeps the chart object list small and makes redraws on resize straightforward.
- GDS Renko Dual MA Demo EA GDS Renko Dual MA Demo EA is a small educational Expert Advisor for MetaTrader 5. It shows one simple way to combine classic fixed-size Renko bricks with two simple moving averages calculated directly from completed Renko closes.
2026.09.10
New publications in CodeBase
- ZetaBurst Scalper EA Tick-driven scalper that only trades genuine statistical outlier price moves, sized and protected to survive real broker execution delay. Backtest results included below.
- EA AurumNeuro Vanguard AurumNeuro Vanguard is an intelligent Expert Advisor (EA) specifically designed for XAUUSD / Gold trading, combining a hybrid Neural Risk Architecture with the Unified Market Dynamics Engine (UMDE).
2026.09.10
New publications in CodeBase
- GDS Renko Momentum Demo EA This educational Expert Advisor demonstrates one simple way to trade momentum on Renko bricks in MetaTrader 5.
Momentum is the difference between the latest completed Renko close and the close N bricks earlier, divided by the brick size. A crossing above the positive threshold produces a BUY signal; a crossing below the negative threshold produces a SELL signal. Staying beyond a threshold does not generate repeated signals.
The EA builds classic fixed-size Renko internally from Bid ticks, with a two-brick reversal. Orders use the available market Bid/Ask rather than synthetic brick prices. If several bricks form on one tick, only a crossing on the final brick can trigger entry.
There is one position at a time, with virtual take profit, virtual stop loss, a maximum holding time, a cooldown and a spread filter. No external indicator, DLL, custom symbol or offline chart is required.
- PulseStrike Scalper - Statistical Burst Detection EA PulseStrike Scalper - Statistical Burst Detection EA
2026.09.09
New publications in CodeBase
- MT5 Symbol Changer Profit Display This is a Real-Time Trade Monitor & Symbol Changer, that shows your running P&L, Trade Count, and Trade Type
- Range compression percentile Ranks the current period's range-so-far against the full historical distribution of past ranges — a true percentile, not just a comparison to the average like ADR% — and flags statistical compression or expansion on a compact live panel with a percentile gauge.
2026.09.09
New publications in CodeBase
- PropFirm Defense A library of 24 MQL5 classes that watches a prop-firm rulebook -- drawdown, daily loss, payout consistency, minimum trading days, news blackout -- against any account, and flattens on breach without ever opening a position of its own.
- MSNR Key Levels MTF MSNR KeyLevels MultiTF draws Malaysian SNR key levels from M5, M10, M15, H1, H4 and D1 at the same time, on any chart you have open. A built-in control panel lets you switch each timeframe on and off with a single click, so you go from a clean chart to full higher timeframe context in a second, and back again just as fast.
2026.09.08
Most downloaded source codes this month
- LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
- Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
2026.09.08
New publications in CodeBase
2026.09.08
New publications in CodeBase
- Universal Pip Value and Dynamic Lot Calculator Class for MQL5 A lightweight, OOP-compliant MQL5 header class (.mqh) for accurate pip value calculation and dynamic lot sizing across all instruments, featuring automated cross-currency rate conversion and broker volume normalization.
- GDS Renko Replay Trainer GDS Renko Replay Trainer is a free educational tool for practising manual decisions on historical Renko charts in MetaTrader 5.
Load a historical interval, replay it forward and place virtual BUY or SELL trades. You can pause, advance one tick or move to the next completed Renko brick. Each virtual position has a stop loss and take profit, and the trainer records the results of your session.
The tool builds fixed-size Renko bricks from historical Bid/Ask ticks, with a classic two-brick reversal. Future ticks are not used to draw the visible chart or execute virtual trades. Buy trades use Ask for entry and Bid for exit; sell trades use the opposite sides. Orders entered on the panel wait for the next replayed valid tick. Stops and targets are checked on every tick, including price gaps.
- VSA Glossary Built on Wyckoff Volume Spread Analysis (VSA) principles, it decodes smart money accumulation, distribution, absorption, and trend direction with zero repainting and a strict 2,000-bar performance limit.
2026.09.07
New publications in CodeBase
2026.09.07
New publications in CodeBase
- RiskPilot Pro — Drag-to-Trade Risk Panel with Break-Even, Trailing and a Daily Loss Guard Drag your stop loss where you actually want it, hit Buy or Sell, and the lot size is already correct — no calculator, no spreadsheet. Handles break-even, trailing, and shuts trading down for the day if you hit your loss limit.
- Extract information from the MT5 broker This MT5 EA is a diagnostic tool that does not execute trades, but collects and displays technical specifications relating to the broker and the trading environment.
The code is structured into four main blocks:
Data Collection (CollectAll): Retrieves information on the account (leverage, currency), the symbol (digits, spread, swap, volumes, stop levels), latency (ping) and time zone (Server-UTC difference). Calculates the swap in real currency.
Sampling (OnTick): Updates spread statistics (minimum, average, maximum) in real time.
Output: Prints the data to the ‘Experts’ log, saves it to a CSV file and displays it on a graphical panel on the chart (UpdatePanel).
Helper: Functions such as CalcSwapInCurrency and various *ToStr functions convert the broker’s raw numerical data into readable strings.
2026.09.07
There are more than
12,400 codes published in
Codebase
2026.09.07
New publications in CodeBase
- Contract Sizer: ladder, floor and a breaker that survives a deposit Three position-sizing protections that do different things; confusing them is why so many accounts get wiped out:
- ladder: one contract per X of balance, always applied as a CAP, even with manual lot sizing;
- floor: below the minimum capital it does not trade; a new deposit is needed;
- breaker: stops at X% below the peak, at any account size, and does not rearm by itself.
What this library solves and almost none does: a deposit is not profit, and a withdrawal is not a loss. The breaker measures the drop against the balance peak. Untreated, a deposit made DURING a drawdown lifts balance and peak together, and the protection stops seeing the drop exactly when it would help. Here deposits and withdrawals shift the peak by the same amount.
The peak is persisted to a file: a breaker that forgets the peak on a terminal restart is not a breaker.
The demo simulates a deposit at the bottom of a drawdown. Run it with the deposit on and off and compare the "drop" column.
- Safe Logger: why your log lines vanish while FileOpen keeps returning success Four EAs writing to the same file, all with FILE_SHARE_READ|FILE_SHARE_WRITE, FileSeek(SEEK_END), FileWrite, FileClose. Looks correct. Every FileOpen returns success. No error in the log. And the lines vanish.
Reason: FILE_SHARE_WRITE lets all four open at the same time. All four call FileSeek(SEEK_END) and get THE SAME offset, because none has written yet. All four write at the same position. Whoever closes last wins. Three lines vanish silently. In my case: 12 events expected, 8 in the file.
The fix is to open EXCLUSIVELY (no FILE_SHARE_WRITE) and retry while another EA holds the file. And to shout in the log when the retries run out: a log that fails silently is worse than no log at all, because you trust it.
The demo script reproduces both modes. To see the loss, drag it onto four charts at the same time with safe mode off and count the lines in the CSV. On a single chart the defect does not show up - which is why it passes in testing and breaks in production.
- Clock Diagnostic: TimeCurrent() freezes and steps backwards TimeCurrent() is not a clock. It is the stamp of the LAST TICK. Two consequences break robots in production:
1. It freezes. With no tick it does not move: illiquid instrument, end of session, unstable connection - and any rule based on it stops with it.
2. It steps backwards: on a symbol switch, a reconnection or a tick from another instrument, the value can go back.
The case that cost me a whole protection: I compared the date of a daily decision with TimeCurrent() to reject an expired one. The server clock stepped back to the previous day, the comparison matched, and four EAs accepted YESTERDAY's decision as valid. The gate that should have failed closed failed open - without a single error in the log.
Rule: TimeLocal() for timestamps, dates, day changes, expiry - all that must always move forward; TimeCurrent() for session hours and market data.
The script measures the divergence in your environment and reports both symptoms live. Run it with the market closed.
2026.09.07
New publications in CodeBase
2026.09.07
New publications in CodeBase
- OHLC Reality Check - at what stop distance does your backtest start lying? Opens a virtual bracketed trade on every M1 bar, walks it forward on the real tick history, and reports for a sweep of stop distances how often 1-minute OHLC modelling would score the trade the wrong way round.
- SessionReopenEA Gold has a daily maintenance break on the CME. The first hour after it rises more than chance explains, in every calendar year of an 11-year sample - while every other hour of the day measures flat.
One trade per session, a volatility-scaled server-side stop, no averaging or grid.
Then my cost model turned out to be wrong. A real-tick backtest showed the true round-trip cost at the reopen is about 60 points, not the 19 my research had charged - the M1 bar spread field is a per-bar summary and understates it roughly threefold. Re-running 11 years at the corrected cost:
+3.34 bps, t 7.40, 59.3% wins -> +1.60 bps, t 3.42, 50.8% wins
The edge survives, at less than half its original strength. That second number is the real one.
What it is not: about +3.3% a year with 4.6% drawdown, roughly one year in nine negative. At 0.01 lots that is ~130 a year - a figure that measures the position size, not the strategy.
2026.09.06
Most downloaded source codes this week
- Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
- LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.
2026.09.06
New publications in CodeBase
- Trade Excursion Report: MFE and MAE of every closed trade, to CSV Exports one CSV line per closed trade with the numbers a statement does not carry: the best unrealised profit the trade showed (MFE), the worst unrealised loss it survived (MAE), how much of the MFE was actually kept, how many bars it spanned, and how long it was held. Same measurement as the Trade Excursion indicator, written to a file instead of drawn, because the questions worth asking of this data are ones a chart cannot answer: does the capture ratio depend on the hour of entry? Are the trades I close early the ones I hold longest? Do losers on Mondays reach a different MAE than on Fridays? Those are one pivot table away once the CSV exists. Output is semicolon separated with a header row, in MQL5\Files; opens in any spreadsheet. Measurement limit: excursions come from bar highs and lows on the chosen timeframe; the path inside a bar is unknown. The bars column reports the resolution each trade got, and the summary counts single-bar trades separately instead of averaging them in.
- Trade Excursion: how much of each winner you actually kept (MFE/MAE from your own history) Your statement tells you what you KEPT. It does not tell you what you HAD. This indicator reads your own closed trades from the account history and draws, for each one, the full range it travelled: the best unrealised profit it ever showed (MFE) and the worst unrealised loss it survived (MAE). The gap between what a trade showed and what it paid is where two common problems hide, and neither is visible in a balance curve: winners closing far below their best point (the exit leaves money behind), and losers whose worst excursion barely passed the stop (the stop sits inside the noise). The number to look at is the CAPTURE RATIO: of the profit a winner showed at its best, how much did you take home? 90% says the exits are well placed; 30% says the market kept offering and the exit kept refusing. Limit, stated up front: excursions come from the bars each trade spanned, on the chart timeframe; the path inside a bar is unknown. Predicts nothing; measures trades that already happened.
- Decision Watchdog: refuse yesterday's decision, fail closed, log once A daily process writes "today's decision" (which strategy runs, or FLAT) to a file the EAs read at the open. One day the writer did not run. The EAs read yesterday's file, compared its date with TimeCurrent() - the server clock, which had stepped back to the previous day overnight - saw a match, and traded all morning on a 24-hour-old decision. No error anywhere. Two rules, both in this class: 1) staleness is judged against TimeLocal(), which always moves forward; TimeCurrent() is the last tick's stamp - it freezes without ticks and can step back on reconnect. 2) When in doubt the answer is FLAT: missing file, bad date, wrong day, empty line - every failure path returns "do nothing", and each is logged ONCE per state change, not on every tick and not never. File format: line 1 = ISO date, line 2 = decision string. The demo writes a fresh, a stale, a malformed, an empty and a missing file, and shows that only the first is allowed to trade.
- Exposure Cap: one position limit per symbol across all your EAs Four EAs on the same symbol, each one honest on its own: each checks "do I have a position?" with its own magic number, sees none, and enters. On a demo account this reached 22 contracts on a symbol meant to carry 1, and a watchdog had to close 16 positions in one morning. The cap belongs at the door, not after the fact. ExposureCap::Allowed(symbol, lots, cap) sums the volume of every open position on the symbol - all magic numbers, manual trades included - and refuses the order BEFORE it is sent when it would breach the cap. One log line with the three numbers (held, requested, cap) says why. Deliberately simple: gross exposure, no netting of longs against shorts, no per-EA quota. It is a check, not a lock: two EAs deciding on the same tick can both pass; in practice EAs on different charts decide on different ticks. The demo script prints held / cap / room for the current symbol and shows the refusal line. Nothing is traded.
- Server Time Offset: the three clocks in MQL5 and how timestamps shift on export A datetime in MQL5 is seconds since 1970 - but server time (TimeCurrent, bar times, deal times) is the broker's wall clock stored AS IF it were UTC. Export it to CSV, read it in Python or a spreadsheet with a "seconds since 1970 UTC" parser, and every timestamp shifts by the server's UTC offset. On a UTC-3 broker that is three hours: the daily bar dated 00:00 reads as 21:00 of the previous day, and "yesterday's session" silently becomes "today's, half formed". That happened to a morning report of mine before this script existed. The script prints TimeTradeServer, TimeCurrent, TimeGMT and TimeLocal, the three offsets between them, the tick lag, and this chart's last bar time in server time and in real UTC - then states the rule: export server timestamps as wall-clock text, or export the epoch together with the offset, and never let the consumer apply its own timezone.
2026.09.06
New publications in CodeBase
- Risk-Based Lot Size Calculator A simple MQL5 script that calculates the correct lot size for a trade based on your account risk percentage and stop loss distance in pips, so every trade risks a consistent, controlled amount of your balance.
- Correlation-Aware Lot Size Calculator Sizes your next trade based on the correlated risk you already have open across other positions — not just the trade in isolation.
2026.09.06
New publications in CodeBase
- Prop Firm Rule Checker Checks your trade history against common prop-firm challenge rules — profit target, max daily loss, max drawdown, consistency rule, and minimum trading days — with a clear PASS/FAIL report.
- GDS Renko Donchian Demo EA A small educational Expert Advisor showing how a classic Donchian breakout can be applied directly to completed Renko bricks.
- TrueCostReport Cost is the one input to a trading system that is knowable exactly, and it is almost always estimated wrongly - always in the direction that flatters the strategy.
This EA measures what one round trip really costs on YOUR broker: the live spread sampled from ticks, the swap for both sides including the triple-charge day, and the commission read from your own deals.
Most spread figures come from the bar's "spread" field, because that is the easy one to reach. It is a per-bar summary, not the quote at any instant. Measured on XAUUSD: 20 points live across 60 readings against a bar-field median of 6. A factor of 3.3.
So a filter set to "skip if spread > 15" never fires - it lets through exactly the moments it exists to block.
Swap is the half most custom simulators do not charge at all. It is asymmetric, one side pays while the other collects, and one weekday counts three times.
Read-only: it never opens, closes or modifies a position.
- SuperTrend TV EA An Expert Advisor that trades the SuperTrend TV indicator through iCustom on closed bars only, shipped with the audit that proves every trade matches a signal and no signal was missed
- Any Indicator Alert - alerts, push notifications and multi-timeframe for any custom indicator, no source code needed Attach it to a chart, type the name of any custom indicator, and it alerts you on that indicator's own buffers - popup, sound, push notification to your phone, or email. It reads the indicator through iCustom, so no source is needed: a compiled .ex5 you downloaded is enough. It can also read that indicator from a higher timeframe, and it re-checks closed bars to tell you whether the indicator repaints or merely lags. It opens in EXPLORE mode, which lists every buffer the indicator has and what is in each one, because "which buffer holds the signal" is the question that stops most people using iCustom at all.
- ErrorHandler - Trade Error Classifier for MQL4 Trade error classifier and automated retry back-off framework for MQL4 Expert Advisors.
2026.09.06
New publications in CodeBase
- Any Indicator Alert - alerts, push notifications and multi-timeframe for any custom indicator, no source code needed Attach it to a chart, type the name of any custom indicator, and it alerts you on that indicator's own buffers - popup, sound, push notification to your phone, or email. It reads the indicator through iCustom, so no source is needed: a compiled .ex5 you downloaded is enough. It can also read that indicator from a higher timeframe, and it re-checks closed bars to tell you whether the indicator repaints or merely lags. It opens in EXPLORE mode, which lists every buffer the indicator has and what is in each one, because "which buffer holds the signal" is the question that stops most people using iCustom at all.
- SuperTrend TV A SuperTrend that returns the same values as TradingView's ta.supertrend, shipped with the tool that proves it bar for bar against the Pine reference
2026.09.05
New publications in CodeBase
- SuperTrend TV A SuperTrend that returns the same values as TradingView's ta.supertrend, shipped with the tool that proves it bar for bar against the Pine reference
- Pending Order Inspector MT5 Read-only panel that checks a BUY STOP or SELL STOP against the symbol contract before you send it: price tick grid, volume minimum/step/maximum, stop distances and order permissions. It never sends, changes or suggests anything.
- Completed Bar Trend Regime Dashboard MT5 An MT5 dashboard that classifies completed-bar trend regimes using EMA structure, ADX/DI, higher-timeframe confirmation, ATR, breakout position and spread context.
- Gold Session Boxes: Sydney, Tokyo, London, New York and the overlap Draws Sydney, Tokyo, London and New York as high/low boxes with the London-New York overlap outlined and the rollover hour shaded. Session times in GMT, broker offset detected automatically, average range of the last N sessions on every label, optional alert at session open.
- MT5 Memory Meter Panel A lightweight memory meter dashboard that reveals current MT5 memory usage and key resource statistics directly on the chart.
- AI Prompt Writer - Simple AI Assistant Customization Customize your MetaTrader 5 AI Assistant with selectable language, personality, menu and behavior using a simple prompt file.
- GridCapitalCalculator Everyone running a grid asks: is my account big enough? The usual answer - the loss at the last grid level - is the wrong number. What ends the account is the margin level reaching the broker's stop-out, while the chain is still open and still looks recoverable.
This EA computes the real figure, then counts how often a move that large has already happened on the symbol's own M1 history.
Three mistakes it fixes, all erring in the reassuring direction: a chain of N legs floats at step x N(N-1)/2, not step x N (at 10 legs, 45 steps of loss, not 10); open positions also lock up margin while they float; and stop-out is a percentage, not zero - at 50%, losing half the equity is enough.
"You need 86 dollars of room" is an abstraction. "A move that size happened 71 times in 100 days, one every 1.4" is a decision.
Set InpEquity to a size you do not have yet to see what the configuration would really need.
Strictly read-only: it never opens, closes or modifies a position.
- Advanced Harmonic Scanner The Advanced Harmonic & RSI Reversal Scanner solves both problems. By combining precise Fibonacci geometry (to find the location of a reversal) with an RSI exhaustion filter (to time the exact moment of the reversal), this script prevents you from catching falling knives
- Tick Audit - check real tick history and backtest quality month by month Reports, month by month, whether your symbol really has ticks or only bars - so you know which part of your backtest ran on generated ticks before you trust the curve. The Strategy Tester gives you one History Quality figure after the test has finished, and it never says which months were the problem. This script asks first.
2026.09.05
There are more than
12,370 codes published in
Codebase
2026.09.04
New publications in CodeBase
2026.09.03
New publications in CodeBase
- Session Range Desk MT5 Session-range breakout EA with ATR filtering, stop-distance sizing, optional break-even/partial close, and a shared chart desk. Hedging accounts; educational source with documented execution and coordination limits.
- Change in State of Delivery Concept: Identifies market microstructure turning points based on ICT/SMC principles.
- H1 Container MTF Boxes Visual MT4 indicator that draws the current or selected H1 range and nested M30, M15, M5 and M1 boxes. An EA based on this logic is in development.
2026.09.02
New publications in CodeBase
- Order Block Detector Detects order blocks — the last opposing candle before an impulsive move that breaks market structure — and draws them as zones that extend live until price returns and mitigates them. Structure breaks and mitigation are both evaluated only on closed bars, so nothing repaints.
- PropFirmGuard Equity guard that enforces a daily loss limit and a total drawdown limit, flattens the account on breach and blocks trading until the next daily reset. Includes the guard as a reusable include file plus a self-test expert that proves the behaviour in the strategy tester.
2026.09.01
Most downloaded source codes this month
- LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.
- Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
2026.09.01
New publications in CodeBase
- IronHawk SMC Trade Zones M5 A closed-bar M5 indicator combining market structure, liquidity sweeps, BOS/CHoCH and momentum to display Entry, SL, TP1 and TP2, with retail-frequency signals and clickable setup history.
- SwiftDraw Lite Quick Chart Drawing and Hotkey Utility for MT5 SwiftDraw Starter is a lightweight charting utility designed to make technical analysis faster and more efficient. Use customizable hotkeys to instantly create and manage essential chart objects such as trendlines, Fibonacci retracements, Supply & Demand zones, arrows and key price levels — with fewer clicks and less time spent navigating MT5 menus.
- Fair Value Gap Scanner MT5 An MT5 fair value gap scanner that marks bullish and bearish imbalances and tracks when each zone is filled.
- Session Liquidity Map MT5 A broker time session map for MT5 that displays Asia, London and New York ranges with their confirmed highs and lows.
- Market Structure Swing Map MT5 A clear MT5 market structure indicator that labels confirmed HH, HL, LH and LL swings directly on the chart.
- Multi Timeframe Trend Matrix MT5 A compact MT5 trend dashboard that compares EMA alignment and ADX strength across six timeframes.
- Overnight Cost Meter The script prices one night of holding: for every open position and every Market Watch symbol it prints the swap per night in your account currency, the annualized cost in percent for both directions, the broker's rate-independent markup (|swap long| + |swap short| never depends on interest rates - it is pure broker margin), and the triple-swap day. Honest "n/a" where a swap mode cannot be converted reliably.
- GDS Renko SuperTrend Demo EA A small educational Expert Advisor for MetaTrader 5 showing one simple way to combine
classic fixed-size Renko bricks with a SuperTrend-style trend state.
- Trading Tool Assistant v2 Manage orders, existing orders, limit orders, trailing, break event & Lot size calculator in one tool
2026.08.31
New publications in CodeBase
- GDS Renko Zones Demo EA A small educational Expert Advisor for MetaTrader 5 showing one simple way to automate support and resistance reactions with internally built classic Renko bricks.
- GDS Renko Fast Demo EA GDS Renko Fast Demo is a small educational Expert Advisor for MetaTrader 5. It demonstrates how two internal fixed-size Renko streams can be used in a simple mechanical trading example without offline charts or custom symbols.
- GDS Renko Bricks A simple real-time classic Renko chart for MetaTrader 5. Set the brick size and the indicator builds equal-width Renko bricks directly from tick data. No offline charts, custom symbols or external libraries are required.
- GDS Renko Reversal Context A simple MT5 indicator that shows the current fixed-size Renko run and the exact price level required to confirm a classic two-brick reversal.
- IronHawk Fibonacci Structure Map Free MT5 indicator that automatically maps Fibonacci levels across multiple timeframes and highlights confluence zones, market structure, premium/discount areas and key price reactions.
- Market Session Separator Indicator Marks the start/end of up to three trading sessions (Asian, London, New York, or any custom windows) with vertical separators and/or shaded background boxes, repeated daily across a rolling recent window. Purely visual — no calculations, no signals, just clean session boundaries.
2026.08.31
There are more than
12,350 codes published in
Codebase
2026.08.30
Most downloaded source codes this week
- KSQ CommandCenter Remote Google Sheets Trade Manager KSQ Command Centre is a production-ready, two-way bridge between MetaTrader 5 and Google Sheets. It was originally designed to help fund managers and quantitative traders remotely monitor and manage large, funded accounts (e.g., Darwinex Zero, Prop Firms, PAM, MAM) directly from a mobile browser, without needing to log in to a VPS.
This Expert Advisor not only exports data—it actively listens for commands typed into your Google Sheet and executes them in MT5 in near real-time.
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
- ASQ Command Desk ASQ CommandDesk is a professional order management panel for manual traders on MetaTrader 5. You make the trading decisions — CommandDesk handles execution, risk control, and exit management automatically.
2026.08.29
New publications in CodeBase
- Elliott Wave Auto Counter / Automatic Wave Labeling Automatically detects swing pivots and labels a rule-validated Elliott Wave count (1-2-3-4-5 impulse and A-B-C correction) directly on the chart, with a Fibonacci info panel. For guidance only, always confirm manually.
- Broker Info Panel MT5 A lightweight MT5 chart indicator that displays live broker and symbol trading specifications including spread, tick size, tick value, volume limits, stop level and freeze level.
- Nadaraya_Watson_Envelope_NR Calculates a non-repainting Nadaraya-Watson envelope using Gaussian smoothing and marks price crosses beyond the upper and lower bands with arrows.
- Risk Based Position Size Calculator A draggable MT5 risk calculator that converts the selected entry and stop distance into a broker normalized position size using tick size, tick value and account risk.
- Broker Execution Diagnostics A read only MT5 script that reports broker symbol specifications, volume limits, price settings, execution modes, trading permissions, margin requirements and estimated profit values.
- SMC Entry Using structure Market Structure & Smart Trade Tracker (MT5)
An advanced all-in-one Smart Money Concepts (SMC) indicator that combines automated market structure mapping, momentum heatmap candles, and institutional trade execution tracking.
- Adaptive_MACD Adaptive MACD is a dynamic momentum indicator that adjusts its smoothing based on market conditions. It calculates a Pearson correlation coefficient between price and bar index over a user-defined period, then uses the resulting R² to blend two different MACD coefficient sets. This makes the MACD line more responsive during strong trends and smoother in sideways markets. The indicator plots a color-coded histogram (strong/weak bullish/bearish) and an optional auto-contrast MACD line that adapts to the chart background. Inputs allow customization of the R² period, fast/slow lengths, signal period, and colors. Suitable for trend-following and detecting momentum shifts.
- Market Replay Tool Market Replay Tool is an MT5 utility that seamlessly merges a Market Replay simulator with interactive TradingView-style Long & Short drawing tools. It allows traders to backtest strategies on historical data with adjustable playback speeds, while effortlessly mapping out risk-to-reward setups using dynamic, draggable entry, stop-loss, and take-profit visual boxes directly on the chart.
2026.08.28
New publications in CodeBase
- SpreadAudit – a broker’s actual spread based on M1 historical data The script retrieves your broker’s actual spread from the ‘spread’ field of the M1 bars and displays the median, the 90th and 99th percentiles in price units, in pips and as a percentage of ATR, and also exports the average and maximum spreads for each hour of the day to a CSV file. This is needed to test strategies against the actual costs on your account, rather than against a ‘typical’ spread estimated from memory.
- RepaintTest - measure whether a drawing indicator repaints Measures whether a drawing indicator repaints, instead of asserting that it does not.
The invariant: once a bar has closed and been processed, no object drawn on it may ever change - not move, not recolour, not change its text, and not disappear. The script seeds a custom symbol with real history, attaches your indicator through a template, records every object, appends bars, forces a full recalculation, and compares object by object.
Changes and disappearances are counted separately, because only a change means the claim is false. A run that compared nothing is reported as INCONCLUSIVE, never as a pass. Output is a CSV you can publish next to the number.
2026.08.27
New publications in CodeBase
- Support Resistance zig zag based Support Resistance zig zag based is a Price Action indicator designed to automatically and dynamically map Support, Resistance, and transition areas (Flip Zones) on the chart. It focuses purely on clear price structure mapping and highlighting key bounce areas (SBR & RBS). It also includes an interactive dashboard to monitor real-time market bias.
- Market Structure Entry Model Market Structure Shift (CHoCH)
Bullish Setup (CHoCH ): Price breaks above the previous confirmed Lower High (LH), signaling a trend reversal from bearish to bullish.
Bearish Setup (CHoCH ): Price breaks below the previous confirmed Higher Low (HL), signaling a trend reversal from bullish to bearish.
- Auto ZigZag Fibonacci Golden Zone Indicator For MT5 The Auto ZigZag Fibonacci Golden Zone indicator automatically detects the latest swing high and low, draws key Fibonacci retracement levels (50%, 61.8%, 78.6%), and highlights the Golden Zone between 61.8% and 78.6% as an optimal pullback entry area. The indicator includes a real-time dashboard, optional buy/sell signals, and full color customization. Works on all symbols and timeframes. Always test on a demo account before live trading.
2026.08.26
New publications in CodeBase
- Volume Profile Levels Indicator Builds a horizontal volume histogram over a recent lookback window and marks the Point of Control and Value Area using the standard TPO/volume value-area expansion algorithm — not just POC ± a fixed offset. Refreshed once per new bar, drawn as a sidebar next to price.
- Sniper Gold Hybrid Recovery EA XAUUSD M15 basket recovery EA with adaptive ATR spacing, LL/LH structure validation, dynamic RSI gating, crash detection, news filter, and smart trade trimming.
- SessionRangeBreakout Asian range indicator with breakout levels for the London session. Entry arrows, alerts, push notifications. Optimised for XAUUSD M15.
2026.08.25
New publications in CodeBase
- Liquidity Sweep Detector Indicator Marks fractal swing highs/lows as liquidity levels, then flags the exact bar where price wicks beyond one and closes back inside — a liquidity sweep / stop hunt — with an arrow and an optional price label. Sweep checks run only on closed bars, so signals never repaint.
- MT5 Vertical Scroll This allows mt5 chart to scroll like tradingview chart with auto button to reset
- Neural Loss-Pattern Auditor Neural Loss-Pattern Auditor trains a small feed-forward neural network, written from scratch in native MQL5, on closed-deal history to test whether behavioral and market-context features predict which trades are more likely to lose. It reports an accuracy uplift over a naive baseline, a probability-calibration table, a permutation feature-importance ranking, and a configurable A-F composite grade with recommendations. On first run it uses a built-in synthetic demo, so the output is visible immediately with no setup; switch one input to InpUseDemoData=false to analyze real account history instead. Pure MQL5: no external libraries, no Python, and no AI service of any kind.
2026.08.25
Most downloaded source codes this month
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
- Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
- LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.
2026.08.24
New publications in CodeBase
- Fair Value Gap Detector Indicator Detects 3-candle Fair Value Gaps (price imbalances) and draws them as boxes that extend live until price trades back through the gap. Detection runs only on fully closed bars, so gaps never flicker in and out as the current candle forms.
- Interactive On-Chart Risk Management and Execution Panel An interactive GUI panel for MetaTrader 5 designed for manual traders and quant developers. It automates dynamic position sizing based on exact account equity risk percentage, features one-click order execution (Buy/Sell), instant BreakEven, Close All functionality, and continuous real-time Trailing Stop management.
- Chaos Theory Lyapunov Exponent EA Quantitative MT5 Expert Advisor that filters market noise using Chaos Theory and the Largest Lyapunov Exponent (LLE). Trades momentum EMA crossovers only during deterministic market regimes, with built-in ATR risk management.
- Drawdown Meter Most reports give you one drawdown number - the worst one. This read-only script measures all three that matter on your own closed history: depth, duration and frequency. It prints the maximum drawdown with its peak, trough and recovery dates, the longest underwater period in days, whether you are at a new peak or how far below it and for how long, and a table of the deepest episodes with the days each took to recover. An episode is not a losing streak: it closes only when a NEW high is made, so a dip that never reclaims the old peak stays the same episode - which is what makes the duration column meaningful. Entry commissions are included and a partial close counts as one round turn, so the curve carries full cost. Optional percentage figures and CSV export. Deposits and withdrawals are excluded: this is the drawdown of your trading, not of your balance line.
- Timer Candle simple coundown timer
- Basket Protective Close Closes a basket of positions when its floating loss reaches a limit set as fixed money, a percent of balance, or a percent of equity. Scope filters by symbol or magic numbers, optional profit target, safe non blocking retries.
- Swing Detector by Pullback (Smart Money Concepts) SMC Pullback marks swing highs and lows using the pullback definition instead of the usual 3-candle pattern. A high is confirmed only when price trades back through the low of the candle that made it — so every marked point is an actual rejection, and highs and lows always alternate. It evaluates closed bars only and never moves a marker once drawn, so it does not repaint. Two buffers expose the confirmed swing prices to an EA via iCustom.
2026.08.24
There are more than
12,320 codes published in
Codebase
2026.08.23
Most downloaded source codes this week
- Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
- LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
2026.08.21
New publications in CodeBase
- Hurst Exponent Regime Switch Indicator Estimates the rolling Hurst exponent of price via rescaled-range (R/S) analysis and plots it as a color-coded oscillator that flags whether the market is currently trending, mean-reverting, or moving like a random walk.
- Multi Timeframe Trend Dashboard Indicator A compact on-chart panel showing the current symbol's trend across several timeframes at once, each evaluated independently with its own Fast/Slow moving-average cross. No switching charts to check "what's H4 doing" — it's all in one place, color-coded.
- Fisher Transform Indicator A Fisher Transform oscillator built from statistical first principles — normalizing price into a bounded range, then applying a logarithmic transform to produce sharp, well-defined reversal signals instead of the gradual turns typical of conventional oscillators. Internal recursive state is handled through proper calculation buffers for reliable, correct behavior across backtests. From the article series "Making Custom Indicators for Beginners."
- SuperTrend Indicator A custom SuperTrend indicator built from first principles, combining an ATR-based volatility band with a ratchet mechanism to produce a clean, non-repainting trend line. Internal recursive state is managed through properly registered calculation buffers, avoiding the state-loss bugs common in manually-managed array implementations. From the article series "Making Custom Indicators for Beginners."
- Wolfe Wave Dashboard Professional MQL5 indicator (separate window) that automatically scans multiple symbols and timeframes, detects the most recent valid Wolfe Wave patterns (bullish/bearish), displays them in an interactive dashboard, and allows one-click chart opening with full pattern drawing.
2026.08.19
New publications in CodeBase
- HybridMicrostructure EA The Hybrid Microstructure EA is an advanced, high-frequency scalping Expert Advisor designed specifically for XAUUSD (Gold) on the M1 timeframe. Unlike traditional indicators that rely on lagging OHLC mathematics, this EA operates on Tick-Level Microstructure Dynamics—tracking tick velocity, volume-weighted average price (VWAP) deviations, and liquidity sweep rejections (stop hunts) executed by institutions.
- AAPL cfd - ORB strategy Using ORB strategy on AAPL cfd
- EdgeMeter - does your entry signal beat the spread? Measures whether an entry signal actually beats transaction costs, before you
spend weeks building an EA around it. Reports net result after cost, an honest
t-statistic on non-overlapping samples, and a random control. Places no orders.
- Dynamic Session Range Sweep Detector with Liquidity Zone Marking Tracks the Asian, London, and New York session ranges, locks each one at session close, and flags true liquidity sweeps — a wick that pierces a locked high or low and closes back inside it — with an arrow signal and a shaded reaction zone. Non-repainting, works on any symbol and timeframe.
2026.08.18
New publications in CodeBase
- Liquidity Void Decay Oscillator. A subwindow oscillator that flags thin-participation displacement bars as "liquidity voids" and scores 0–100 how quickly price re-fills each one, distinguishing fast-absorbed noise from levels still acting as real support or resistance.
- Server Clock and Daily Reset Hour A free, read-only MetaTrader 5 panel that converts your prop firm's daily reset rule (written in whatever time zone the firm uses) into your broker's actual server time, shows a live countdown to the next reset, and warns you before a daylight-saving shift moves the boundary by an hour. Sends no orders, reads no account data, display only.
- Currency Strength Meter Ranks the 8 major currencies by relative strength on a live on-chart panel, calculated from the average percentage change of every available cross pair — not just USD pairs — so weak/strong currencies are visible at a glance, independent of whichever chart you have open.
- Candle Body-to-Wick Pressure Oscillator Converts the body-to-wick makeup of every candle into a bounded conviction reading, then smooths it into an oscillator that flags buyer/seller pressure and automatically marks divergence against price.
- Multi-Symbol Correlation Divergence Meter Tracks the rolling correlation between the current chart symbol and a chosen reference symbol, and flags the moment they decouple while their price spread is statistically stretched.
- Adaptive Volume Profile Node Tracker Builds a rolling, volatility-adaptive volume profile over a configurable lookback window and plots the Point of Control (POC), Value Area High/Low, and statistically significant High/Low Volume Nodes (HVN/LVN) directly on the chart.
- Volume-Weighted Delta Divergence Oscillator A normalized order-flow oscillator that estimates buy/sell volume pressure per bar, accumulates it into a rolling delta, and automatically flags regular bullish and bearish divergence against price swings.
2026.08.18
Most downloaded source codes this month
- Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
- iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
- LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.