Limiting number of open positions in MT5

 

Dears,

Need your support to sort out my below requirement.

I have 10 pending orders in different currency pairs, manually placed by me. I want freeze/Not to be executed/hold those pending orders when I have 4 Nos of opened positions (any currency). when any one of the opened position is closed, then the next triggering pending order in que should be executed.

Any one can please advise a work around...

 
nabeelvm:

Dears,

Need your support to sort out my below requirement.

I have 10 pending orders in different currency pairs, manually placed by me. I want freeze/Not to be executed/hold those pending orders when I have 4 Nos of opened positions (any currency). when any one of the opened position is closed, then the next triggering pending order in que should be executed.

Any one can please advise a work around...

As you want to place them manually the most simpliest method would be to write the comment() on the chart showing how many pending orders are opened.
 
nabeelvm: I want freeze/Not to be executed/hold those pending orders when I have 4 opened positions (any currency). when any one of the opened position is closed, then the next triggering
  1. Can't be done. They trigger when the market reaches the open price. there is no disable.
  2. You could write an EA or script to remember the unopened ones and delete them (replace with a HLine) and reopen on a close.
  3. What would you do if the market has already gone through their open price? Open at a worst price?