MT4 Close All Script

Discussion in 'MetaTrader Scripts' started by Andy, Apr 7, 2016.

  1. Andy

    Andy Master Trader

    130
    12
    54
    I thought I would post this in the general MT4 area as there doesn't seem to be a sub-section for script-only related discussions.

    Anyway, Enivid, what are your thoughts on a close all script for MT4?

    With the help of the PSC Indicator and Script, I now find the slowest part of the trading process is manually closing multiple positions at once in situations where speed, efficiency and also accuracy are all required.

    I haven't thought of all the specifics of the script as of yet but I thought I would ask your opinion on the subject first.

    Thanks.
     
  2. Andy

    Andy Master Trader

    130
    12
    54
    Anyone?
     
  3. Andy

    Andy Master Trader

    130
    12
    54
    Bump
     
  4. Enivid

    Enivid Administrator Staff Member

    7,765
    253
    114
  5. Andy

    Andy Master Trader

    130
    12
    54
    Thank you, I will give it a try.

    A quick and simple google search did find several scripts but I thought I would start by asking here in case your MQL coding portfolio included such a thing. Plus I know, trust and like your work.
     
  6. Maverick

    Maverick Master Trader

    323
    1
    59
  7. Andy

    Andy Master Trader

    130
    12
    54
  8. eevviill

    eevviill Active Trader

    14
    0
    42
    Here.
     

    Attached Files:

  9. slowpoison

    slowpoison Newbie

    4
    0
    2

    Is there a way to stop all orders on a specific time according to my pc time not broker time?
     
  10. Enivid

    Enivid Administrator Staff Member

    7,765
    253
    114
    If you want the app to work by time, then you need an EA, not script. And yes, it can work based on your PC time rather than the broker's server time. It just has to use TimeLocal() function instead of TimeCurrent() funciton.
     
  11. slowpoison

    slowpoison Newbie

    4
    0
    2
    I see can u cook up an EA that can achieve this? Also if u could add another profit taking feature that'd make it awesome
     
  12. Enivid

    Enivid Administrator Staff Member

    7,765
    253
    114
  13. TheGMan

    TheGMan Active Trader

    7
    2
    39
    I have always used these 2 scripts (Attached)

    One closes all orders on your MT4 Platform the other Only Closes orders for the Pair you drag it on to.
     

    Attached Files:

    Enivid likes this.

Share This Page