How to add a class into libraries

 

Dear,

We know you can create a class in MQL language. But class file is MQH file. It is open source. 

My question is how can i create a class file ex4 type file and i want to use that class file to others EA or indicator.

Anyone have any idea to create a class file like libraties file (.ex4 type file) 


 
Mohammad Ali:

Dear,

We know you can create a class in MQL language. But class file is MQH file. It is open source. 

My question is how can i create a class file ex4 type file and i want to use that class file to others EA or indicator.

Anyone have any idea to create a class file like libraties file (.ex4 type file) 


Instead .mqh copy all classes inside the main source of the ea?