Category Theory in MQL5 (Part 17): Functors and Monoids
by
, 02-03-2024 at 05:19 AM (242 Views)
more...We continue our look at category theory with one more take on functors. So far, we have seen applications of category theory in implementing custom instances of the Expert trailing class, and the Expert Signal class so we will consider applications in using the Expert Money class for this article. All these classes come with the Meta Editor IDE and are used with the MQL5 wizard in assembling expert advisors with minimal coding.
In this article as we sum up our look at functors we’ll examine how when paired with monoids and a pre-order of security prices, we can formulate a system to set position sizes when trading the a security, which will be BTCUSD (bitcoin).