Is there a way we can find out if the code took profit or sell at a loss? Is there a function that tells this? I need to find out because my code needs it because i set buysignal to true once a criteria is met. But I cannot set it to false if it takes profit because i dont have a way to find out ..
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Is there a way we can find out if the code took profit or sell at a loss? Is there a function that tells this? I need to find out because my code needs it because i set buysignal to true once a criteria is met. But I cannot set it to false if it takes profit because i dont have a way to find out ..
thank you.