Trading EducationFree MT5 Pivot Points Indicator — Open-Source MQL5 Code
Free open-source MT5 pivot points indicator — five calculation methods, daily, weekly and monthly levels, clean non-repainting lines. MIT licence.
Simple MT5 forex backtesting guide: modeling modes, 100% modeling quality, real ticks, realistic costs, forward testing, and report checks.

Backtesting is where your trading idea meets historical market data. Not live trading. Not proof. But useful enough to answer one question: If I had traded this exact plan before, would it have survived? MT5 makes forex backtesting fast. The risk: it also makes bad backtesting fast. One wrong setting can turn the same EA from solid to useless. TL;DR: To backtest forex strategy in MT5 with results you can trust, use real ticks for final validation, load enough history, include spread/commission/delay, test more than one date range, and confirm with a forward period.
Quick map:
A useful backtest is not just a profit number. It is a simulation with realistic data, account rules, costs, and execution. MT5 can test Expert Advisors, run visual checks, optimize settings, and split results into backtest and forward periods. Think of Strategy Tester as a calculator. Your settings are the inputs. Clean results do not mean true results.
Backtest trust chain
| History data | Modeling mode | Costs + delay | Forward check |
Use this short checklist before judging any EA. Confirm the EA is testable
If your EA reacts inside a candle, use tick testing. This includes scalping, tight stops, trailing stops, stop orders, and level-touch logic.
Speed vs realism
| Open prices only Fastest | 1 minute OHLC Fast screen | Every tick Generated ticks | Real ticks Final check |
Rule: use fast modes to debug. Use real ticks to judge performance.
100% modeling quality means the tester had complete, consistent history for the selected symbol and period. It does not mean the strategy will work live. For serious MT5 tests, do not rely blindly on default broker history. Broker history can be incomplete, short, or different from the feed you want to simulate. For 99%+ or 100% quality, use high-quality real tick data with variable spread. Best workflow
High-quality tick test flow
| 1. Download real ticks | 2. Import M1 + ticks | 3. Use real-tick mode | 4. Check report quality |
Important caveat: MT5 can also use real ticks supplied by your broker. That may be enough if the broker has complete tick history for your symbol and dates. External tick data is useful when broker history is missing, too short, or not the feed you want to test. MT4 note: MT4 usually needs tools such as Tick Data Suite or Tickstory to reach 99% modeling quality. MT5 has native real-tick and custom-symbol support, but the imported data still has to be clean.
Most perfect backtests are just low-friction tests. Spread
Commission
Execution delay
After a test, use Open Chart to see deals drawn on the chart. A saved tester.tpl template makes reviews faster. 
Start with the curve, not the profit.
Check these first:
For cleaner exports, use MT4/MT5 backtest reports that are actually readable.
Optimization runs many parameter sets. That is useful. It is also how traders overfit.
Use forward testing inside optimization. MT5 optimizes on the first period, then checks selected runs on the forward period.
Good sign: nearby settings also work. Bad sign: one perfect setting surrounded by bad settings.
Common mistakes
Tools that help
Final reminder: Backtesting is a filter, not a prophecy. Use it to remove weak ideas, then test survivors with real ticks, realistic costs, and forward validation.