Custom symbols in MT5: create a small reproducible price experiment

Custom symbols in MT5: create a small reproducible price experiment

A controlled price sequence can answer a narrow question such as whether a trailing rule moves once or whether a pending order survives a gap. Custom symbols help isolate that behaviour from the thousands of unrelated events in a long market history.

Separate fixture and market data

MQL5 provides functions for creating custom symbols and managing their rates and ticks. A custom symbol is not automatically a tradable broker instrument. Its properties and data must be deliberately prepared for the experiment.

Design one path

An illustrative fixture might rise, pause, retrace and rise again. State the intended entry and exit observations before running it. Preserve the generated timestamps and prices, and avoid selecting only the path that makes the EA look best.

Freeze the specification

Record tick size, contract settings, volume rules, costs and the supplied data file alongside the EA build and inputs. If these change between runs, a different result may come from the environment rather than the code change.

Use it as a development tool

Ask AI to explain which branch the fixture exercises and which behaviours it leaves untested. Label any resulting chart as a synthetic scenario. Use ordinary broker-data testing separately for historical evaluation; the small experiment answers a different, more focused question.

MQL5 custom symbol functions

Back to top

MQLume Bespoke

Built around your ambition.

Explore bespoke services →

Have something more specific in mind?

Ask us about advanced custom development. Share your requirements through private support or email; we will discuss the scope and quote separately.

100% committed to following up on your delivery and support requests.

Free downloads. Real source files.

FREE

Lizard [MQLume]

MQL5 / MT5Version v2.1

Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

US$99.00FREE
FREE

Scraper Gold [MQLume]

MQL5 / MT5Version v3.7

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

US$95.00FREE
MQLume

More to explore. A community to share it with.

Stay close to MQLume, wherever you like to learn.

YouTube

See our EAs in action. Explore backtests, walkthroughs and practical guides.

Watch on YouTube

Telegram

Meet other EA users, share ideas and keep up with what’s new.

Join the community Follow official updates

Cart

One personal-use licence per project. Each project can be added once.

Your cart is waiting for its first passenger.

Choose an EA or source edition to get started.

Continue shopping