Hi everyone
Just as there's a function for selecting a position by ticket "PositionSelectByTicket", there's also a solution for deselecting a position, although I don't think this will be of much use, since according to the documentation, even when a position doesn't exist, you can still retrieve values using the PositionGetDouble() , PositionGetInteger(), and PositionGetString() functions.
I'll ask anyway in case I miss something
Best Reguards,
ZeroCafeione😊.
This piece of feedback is very constructive for me, so it is imperative to check the return of the PositionSelectByTicket() function. And perhaps, for safety's sake, call up the PositionSelectByTicket function once I've retrieved all my data to make sure the position still exists, Correct me if I'm wrong 😅
Best Reguards,
ZeroCafeine

thank you very much Dominik Egert
This piece of feedback is very constructive for me, so it is imperative to check the return of the PositionSelectByTicket() function. And perhaps, for safety's sake, call up the PositionSelectByTicket function once I've retrieved all my data to make sure the position still exists, Correct me if I'm wrong 😅
Best Reguards,
ZeroCafeine

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone
Just as there's a function for selecting a position by ticket "PositionSelectByTicket", there's also a solution for deselecting a position, although I don't think this will be of much use, since according to the documentation, even when a position doesn't exist, you can still retrieve values using the PositionGetDouble() , PositionGetInteger(), and PositionGetString() functions.
I'll ask anyway in case I miss something
Best Reguards,
ZeroCafeione😊.