Shahzaib
Shahzaib
  • Information
no
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Seller at Sargodha
Create Professional EA's & Indicators
Shahzaib
Published article How To Debug MQL5 Code in MetaEditor
How To Debug MQL5 Code in MetaEditor

This article is a practical walk-through of the MetaEditor debugger using a rolling z‑score indicator with two planted bugs: an off‑by‑one array access and a silent wrong‑denominator variance. We show how to set breakpoints, step through code, read the call stack, and inspect values in the Watch window. You will learn a repeatable method to catch both crashing index errors and tiny numerical biases that charts cannot reveal.

Shahzaib
Published article How To Profile MQL5 Code in MetaEditor
How To Profile MQL5 Code in MetaEditor

This article profiles a rolling z-score indicator with bands using MetaEditor's built-in sampling profiler. We read the Total CPU and Self CPU columns and follow the heat‑mapped source to the true hotspots, replace window rescans with sliding accumulators, remove a redundant array copy, and honor prev_calculated. The result is the same output with measured samples reduced from roughly 7,050 to 59.

Shahzaib
Registered at MQL5.community