Skip to content
All library documents

Visualizing Profitable and Losing Trades in Strategy Tester Results

Article MQL5 code base

Summary

The document describes a script for making graphical objects created by a strategy tester easier to inspect during visual analysis. Users can change object properties such as line color, line style, width, and arrow color. Options allow changes to selected lines and support separate examination of profitable and losing trades.

This is a presentation aid for reviewing backtest output: distinguishing winners from losers visually may help a researcher inspect trade placement and outcomes. The description does not explain how to calculate performance metrics, diagnose strategy flaws, or validate a backtest, and it reports no empirical findings. It recommends opening a new chart for each set of changes, but gives no further workflow details. The script can improve chart readability; it does not itself establish that a strategy is profitable or that the visual review is statistically reliable.

Key ideas

  • The script changes the appearance of strategy tester chart objects.
  • Line and arrow colors, line styles, and widths can be adjusted.
  • Separate display options support visual review of profitable and losing trades.
  • Chart formatting assists inspection but does not evaluate strategy performance or validate a backtest.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.