Skip to content
All library documents

Monoid Groups as a Framework for Constrained Trading Choices

Article MQL5 articles

Summary

The article explains monoids and groups through a trading-oriented MQL5 framework. A monoid consists of a set, an identity element, and a closed binary operation; a group adds the requirement that every element has an inverse whose operation with it yields the identity. The implementation represents elements and domains with template classes, stores the identity as an index, and defines possible operations through an enumeration. A monoid-group subclass adds a check that searches for an inverse for every member.

The proposed application is to constrained sets of trader choices at decision points, where inverse relationships could support symmetric or reversible selections. The article describes implementation concepts and prints example values from a USDJPY chart, but it does not demonstrate a complete trading system or provide performance tests. It explicitly leaves the practical selection rules for future work, so the potential connection to trading decisions remains illustrative rather than validated evidence of an edge.

Key ideas

  • A monoid combines a set, an identity element, and a closed binary operation.
  • A group adds an inverse for every set member, with each element-inverse pair producing the identity.
  • The MQL5 design represents the identity by an index into the domain and checks inversion through a subclass method.
  • The author suggests using group structure to reason about constrained choices at trading decision points.
  • The article does not build a complete trading system or test whether the framework improves trading performance.

Tags

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