How can I send sell/buy commands to MT5 from outside of the application?

 

Hi there,

I like to know is there any API to use it on my program to send sell/buy commands to MT5?


What I am trying to do is do some calculations on all stocks in my C++ program, then find best stocks to buy/sell, then send buy/sell commands to MT5 to do that. May someone help me to know how should I do that?


(I can not use mql5 codes in MT5 because of some reasons)

Thank you in advanced!

Reason: