Get Info Trading

 

Hello dear friends


I'm just getting to know mql 5 language and I am facing a challenge
I want to write an expert with mql5 that will show me all the information of every currency I have an open trade.
For example, information such as the price at which the purchase was made, profit limit, stop loss and current market price
Can anyone help me please?

I need a sample code .

thanks

 

If you need sample code, please run a search in the CodeBase section (or in the Articles section).

However, given that you are just beginning with MQL5, I suggest you put aside what your intend, and instead simply dedicate some time to first learning to do very simple things.

Learn to crawl before you walk. Learn to walk before you run.

Research the many articles dedicated to beginners. Study the many examples in the Codebase, to see how they work, and change them so that you can practice.

Don't try to bite off more than you can chew. Take it one step at a time and do it properly before you move onto the next step.

Reason: