I want to open only one long position and one short position at the same time. But I open BUYSTOP, BUYLIMIT, SELLLIMIT, SELLSTOP when I open a long a short. If the price go up and beyong SELLLIMIT, the pending order of SELLLIMIT will be trigger, so there will be two short positions. How can I know when the SELLLIMIT is triggered and when it is triggered I close the opened sell, or I let the opened sell opened and don't let the SELLLIMIT be triggered? Thanks.
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- Please, how to open buystop and sellstop orders at the same time
- What is the error in this code? I want to calculate the number of open orders (Buystops/sellstops or Buylimits/selllimits)
SELL_LIMIT wil change to OP_SELL when executed.
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