I think you should start with these articles:
- Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners
- Orders, Positions, and Deals in MetaTrader 5
Rosh:
I think you should start with these articles:
- Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners
- Orders, Positions, and Deals in MetaTrader 5
thanks for your answer... have u a quickly example to resolve my problem?
thanks
UPDATE:
SOLVED! THANKS

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all,
i'm moving from mql4 and i need help...
here my problem:
i want to find the profit of the last closed trade... i can do easily on mq4 but i find some difficult here...
Pls can you help me??? (with an example plsss)
Thanks All!!!