+ Reply to Thread
Results 1 to 9 of 9
 7 Attachment(s)    

Thread: Close all buy and close all sell orders

  1. #1
    Member
    Join Date
    Oct 2008
    Posts
    166

    Default Close all buy and close all sell orders

    is their any scripts can close only the all sell order

    scripts can close only the buy order

    =================ihave one that close all order

    CloseAllBuySell - MQL4 Code Base

  2. #2
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,178

    Default

    Quote Originally Posted by q8m2002 View Post
    is their any scripts can close only the all sell order

    scripts can close only the buy order

    =================ihave one that close all order

    CloseAllBuySell - MQL4 Code Base
    Good question.

    I have made some modifications on a script that I have found on mql.com. That should work.
    Attached Files

  3. #3
    Member
    Join Date
    Jan 2009
    Posts
    43

    Default

    Quote Originally Posted by funyoo View Post
    Good question.

    I have made some modifications on a script that I have found on mql.com. That should work.
    Hi funyoo,

    Could you create EAs close all buy and sell orders for each pair ? I mean if I trade 10 pairs and I just want to close all buy order OR all sell order of 1 pair only.

    And another EA close all trades for 1 pair only ?

    Thank you,
    Last edited by john; 02-25-2009 at 04:18.

  4. #4
    Junior Member
    Join Date
    Jan 2009
    Posts
    19
    Last edited by AlisNutrior; 02-25-2009 at 09:06.

  5. #5
    Member
    Join Date
    Jan 2009
    Posts
    43

    Default

    Hi AlisNutrior,

    Thank you. May be there are some bugs, the 1st one close all orders (open & pending orders) but some time it's not close all orders. The 2nd one just close all open orders only.

  6. #6
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,178

    Default

    Quote Originally Posted by john View Post
    Hi AlisNutrior,

    Thank you. May be there are some bugs, the 1st one close all orders (open & pending orders) but some time it's not close all orders. The 2nd one just close all open orders only.
    Hi John,

    Here are two examples,

    For each pair that you want to manage, you have to copy these codes and to modify the symbol at line 20.
    Attached Files

  7. #7
    Member
    Join Date
    Jan 2009
    Posts
    43

    Default

    Quote Originally Posted by funyoo View Post
    Hi John,

    Here are two examples,

    For each pair that you want to manage, you have to copy these codes and to modify the symbol at line 20.
    Thank you very much Funyoo,

  8. #8
    Member
    Join Date
    Jan 2009
    Posts
    43

    Default

    Hi All,

    This EA is close all opening and pending orders each pair, is there any one can modify this EA just close all pending orders each pair only (let all opening orders running) ?

    Thanks in advance,
    Attached Files

  9. #9
    Member
    Join Date
    Jul 2009
    Posts
    38

    Default

    Quote Originally Posted by funyoo View Post
    Hi John,

    Here are two examples,

    For each pair that you want to manage, you have to copy these codes and to modify the symbol at line 20.
    Funyoo, do you have a script or an EA that can be placed on an open window so that it will close all open trades if the total profit has reached a certain percentage or a certain number of pips or something to that extent???

    Steven Souders

    **** UPDATE ****
    NEVERMIND FUNYOO,,,, I FOUND ONE ON THE INTERNET CALLED "THE MULTI PURPOSE TRADE MANAGER" ...IT WORKS GREAT! THANKS FOR EVERYTHING YOU HAVE DONE FOR ME.

    Steven Souders
    Attached Images
    Attached Files
    Last edited by stevensouders; 12-17-2010 at 21:46.

+ Reply to Thread

Similar Threads

  1. Close Trade
    By abroco in forum Ideas for expert advisors
    Replies: 4
    Last Post: 06-30-2009, 14:39
  2. Close all open trades after every x profit
    By begu in forum MQL programming
    Replies: 1
    Last Post: 04-09-2009, 19:03
  3. How to close open orders?
    By juhanimi in forum MQL programming
    Replies: 0
    Last Post: 03-05-2009, 08:49
  4. Close Specific Trade Positions
    By jimhook_uk1 in forum MQL programming
    Replies: 5
    Last Post: 02-17-2009, 20:38
  5. Close of candle system
    By inkuumba in forum Ideas for expert advisors
    Replies: 2
    Last Post: 01-11-2009, 06:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts