How an EA knows if there is an opened position?
Not very well. https://www.mql4.com/search#!keyword=orderselect%20loop
Thank you for your response WHRoeder, but I have gone to the link you gave me and still I don't find what I need: a way to make the EA to know that there is an open position or not. Unless I am blind, still I didn't found this information.... Best regards and thank you again.
Betowm
Thank you for your response WHRoeder, but I have gone to the link you gave me and still I don't find what I need: a way to make the EA to know that there is an open position or not. Unless I am blind, still I didn't found this information.... Best regards and thank you again.
Betowm
Using OrdersTotal and OrderSelect is the most basic code and it is unbelievable that you have not used it in your practice EAs
https://book.mql4.com/trading/orderclose
Using OrdersTotal and OrderSelect is the most basic code and it is unbelievable that you have not used it in your practice EAs
https://book.mql4.com/trading/orderclose
Thank you very much GumRai. Take in mind that I'm a newbie in programming, otherwise never had I done this question.
Best regards from Argentina :-)
Betowm
Hello to everybody.
Thanks to who answer me and excuse my horrible English and greetings from Argentina
Betowm