Page 1 of 2 12 LastLast
Results 1 to 10 of 12
 8 Attachment(s)    

Thread: Close all buy and close all sell orders

  1. #1

    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,003

    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 Attached Files

  3. #3
    Banned
    Join Date
    Jan 2009
    Location
    Canada
    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

  5. #5
    Banned
    Join Date
    Jan 2009
    Location
    Canada
    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,003

    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 Attached Files

  7. #7
    Banned
    Join Date
    Jan 2009
    Location
    Canada
    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
    Banned
    Join Date
    Jan 2009
    Location
    Canada
    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 Attached Files

  9. #9

    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 Images
    Attached Files Attached Files
    Last edited by stevensouders; 12-17-2010 at 21:46.

  10. #10
    Junior Member
    Join Date
    Oct 2012
    Posts
    1

    Default

    Hi Funyoo .. im new to FX and EA. I have tried to find EA for "close all sell" or "close all buy" when hit target but couldn't find. I found only close all sell or all buy without the "HIT TARGET or PROFIT". Is it possible if you could help me to create 1 EA which content below:-
    1)Close all sell if profit hit X target.
    2)Close all buy if profit hit X target.
    3)Include trailing stop (If possible, if cannot no problem)
    4) Do not close if equity or margin level less than X % if we close all buy or close all sell (If possible, if cannot no problem)

    Note:
    If no 4 is quite difficult to code so just no 1,2 and 3 in one EA.
    If no 4 and 3 difficult so just no 1 and 2 in one EA
    If still difficult just create no 1 and 2 separately.

    It would be really gratefull if you could provide me with the above.
    Thanks in advance
    Last edited by djanggo; 10-20-2012 at 02:20.

Similar Threads

  1. Looking for script that will close orders
    By traffik in forum Scripts and other tools
    Replies: 3
    Last Post: 06-28-2012, 01:00
  2. Open & Close Orders after x pips
    By f1trader in forum Ideas for expert advisors
    Replies: 5
    Last Post: 08-15-2010, 23:18
  3. Max Orders with a dynamic close
    By snkpool in forum MQL programming
    Replies: 1
    Last Post: 09-22-2009, 04:06
  4. How to close open orders?
    By juhanimi in forum MQL programming
    Replies: 0
    Last Post: 03-05-2009, 08:49

Tags for this Thread

copy, eas, experts, live, live account, magic, magic number, mq4, mql, mql4, multi purpose, profit, scripts, stop, thank you, time, trailing

Posting Permissions

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