Scripts: Close-All

 

Close-All:

A script to close all market positions and/or pending orders.

Close-All

Author: amrali

 
how i can download this script, please?
 
b.indra.s:
how i can download this script, please?

https://www.mql5.com/en/code/25650

 

Hello.

How can I close positions by open price:

i.e., all positions higher than X open price, and lower than Y open price?


thank you

 
PinoArla:

Hello.

How can I close positions by open price:

i.e., all positions higher than X open price, and lower than Y open price?


thank you

Do not double post!

Your duplicate post has been deleted.

 

Thanks

Do you also have the one for changing TP, SL and placing trailing stops?

 
Super fast. Excellent. Love it. Great job.
 
how it work with all symbol position close when profit or loss 5k.
 

Dear 

I need scrip open buy and sell in pop up with MT5 only Any one can share 

 

Hello! I love this script! This may be a total n00b question but ... is there a way to run it WITHOUT the Inputs window first popping up?


I've assigned it a hotkey and just want it to execute when I press the hotkey without the need to confirm Inputs.


Thank you!!

 
mikejuly:

Hello! I love this script! This may be a total n00b question but ... is there a way to run it WITHOUT the Inputs window first popping up?


I've assigned it a hotkey and just want it to execute when I press the hotkey without the need to confirm Inputs.


Thank you!!

STEP 1

  • In the main window of MetaTrader:
  • Click 'Tools' -> 'Options' to open the options window.
  • Goto the 'Expert Advisors' tab.
  • Check 'Allow DLL imports ....'
  • Click 'OK' to close the 'Options' window.

STEP 2

  • Right-click 'Close-All' -> 'Modify'
  • This will open the script file in MetaEditor.
  • At line #10: insert 2 forward slashes before '#property script_show_inputs'

It will look like this after the edit:

//#property script_show_inputs

  • Click 'File' -> 'Save'
  • Then 'File' -> 'Compile'
  • Close MetaEditor.


Reason: