1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MT4 code adjustment?

Discussion in 'General Forex Talk' started by player_x, Jan 21, 2010.

  1. player_x

    player_x Recruit

    Joined:
    Dec 3, 2009
    Messages:
    7
    Likes Received:
    0
    Hi fellows,
    I wonder if there is any piece of code who can be implemented in the MT4 platform so it will make it capable to close multiple positions simultanesly?Does anyone knows ?
     
  2. Music Man

    Music Man Corporal

    Joined:
    Aug 8, 2009
    Messages:
    91
    Likes Received:
    0
    Is the code available at Order Closer Scripts - MQL4 Code Base what you're looking for?

    Note: I have not tested this code, but you might lots of stuff on the codebase.mql4.com site you want to try out.

    MM
     
  3. jtfx

    jtfx Private, 1st Class

    Joined:
    Dec 29, 2009
    Messages:
    40
    Likes Received:
    1
    to open or close "simultaneously" on MT4 platform is not possible.
    You can only open/close a position ONE at a time.
    Opening multiple charts to run a "closer" script will cause "Context Busy" error which will put your account ON-HOLD for 30~60 seconds!!!

    To close positions is to close ONE-AT-A-TIME..

    When you say, "close multiple positions" are you referring to ALL positions of the same currency pair? or close ALL POSITIONS on ALL currency pairs?

    Attached is a script a friend wrote for me:
    You can select to
    YES = Close ALL positions on ALL pairs
    NO = Close ALL positions on current currency
    Cancel = Do nothing

    (This is a script NOT EA, save it inside EXPERTS/SCRIPT)
     

    Attached Files:

Share This Page