Skip to content
All library documents

Monitoring Long and Short Baskets with Weekly Price and Position Statistics

Article MQL5 code base

Summary

This document describes a chart utility for viewing groups of long and short symbols together. Users can configure each basket with up to 50 symbols, select a symbol to display on the chart, and review per-symbol and total statistics. These include weekly price movement, average true range for the chart timeframe, open-position profit or loss, and position exposure in lots. The displayed week can be changed, and the selected week can be highlighted on the chart. Long and short baskets use opposite signs when calculating weekly points.

The utility is for monitoring rather than generating trade signals or selecting positions. Its statistics can help a trader inspect basket performance and exposure in one place, while keeping quote-processing work low by scheduling display updates separately. The description gives no evidence about whether the display improves decisions or performance, and it does not explain how portfolio-level risk is aggregated across correlated symbols. The point, ATR, profit, and lot figures are descriptive measures; they do not account for all costs or establish a risk-adjusted view of the baskets.

Key ideas

  • The utility displays configurable long and short symbol baskets on one chart.
  • Users can inspect weekly price changes, ATR, open-position profit or loss, and lot exposure.
  • Weekly point calculations reverse direction between long and short baskets.
  • The display supports symbol selection, week navigation, and highlighting of a selected week.
  • The described statistics are monitoring aids and do not demonstrate trading performance or portfolio risk.

Tags

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