What is the proper application of Classes in MQL4?

 

I've been coding for about a year now but I've coded from a procedural paradigm.  If this then that, if price does this, modifyOrder that, so to speak

I noticed that MQL4 also can be an object orientated language but I just cannot conceieve where would object orientation apply to algorithmic trading.

Perhaps some here can shift my paradigm around object-orientation and MQL4.

Thank you kindly.

 
https://www.mql5.com/en/blogs/post/680569
MQL's OOP notes: Introduction
MQL's OOP notes: Introduction
  • 2016.09.16
  • www.mql5.com
Both MetaTrader 4 and MetaTrader 5 provide powerfull tools for trading automation, which can be extended even more - to almost any feasible idea - thanks to the built-in programming language - MQL
 
Hoi Cheng: I just cannot conceieve where would object orientation apply to algorithmic trading.

Encapsulate your iCustom calls to make your code self-documenting would be one example.
          Detailed explanation of iCustom - MQL4 programming forum #33 2017.05.23