Hi all, can anyone help with a situation I want to code. An EA has opened a position and is active, now the EA has a "rule to close the position immediately" I can find no way to achieve this action. Thought of holding position ticket number in a buffer, but how do I get that number and close the position??? Any help or examples would be a big help. Thanks.
- How Do i Use PositionClose()
- Questions from a "dummy"
- How can hold a position for n number of bars in an EA?

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