Results 1 to 3 of 3
 1 Attachment(s)    

Thread: Close all orders if profit is positive

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    22

    Default Close all orders if profit is positive

    Hi,
    Could someone tell how could I close all orders when the last order close in profit by take profit or trailing stop?
    Thanks in advance
    Luis

  2. #2

    Default

    It is easier if you attach the code, then I can add the requested function easily.
    Or, you can copy and paste the code of the attached script and do the changes you need to make it
    work for you.

    Good luck,
    O. Shaban
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Dec 2009
    Posts
    22

    Default

    Hi oshaban,

    Before all thank you for your response to my issue.
    Regarding the problem with the close of the orders I've done some work and now seems that the orders are closing. When I say seems is because the EA close all open orders once the the TrailingStop close the last open order while in the Tester, but in Demo it just close the order that the TrailingStop closes.

    I've put other thread;
    Opening at price and alternating orders

    where I explain what my actual problems are.
    Really am looking for support in those issues because I canīt find proper information how to deal with it.
    I appreciate very much if you could provide some support here

    Best Regards
    Luis

Similar Threads

  1. Close all buy and close all sell orders
    By q8m2002 in forum Scripts and other tools
    Replies: 11
    Last Post: 12-01-2012, 04:38
  2. Looking for script that will close orders
    By traffik in forum Scripts and other tools
    Replies: 3
    Last Post: 06-28-2012, 01:00
  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

closing, copy, demo, how to, mql, profit, programming, stop, support, thank you, trailing, trailingstop

Posting Permissions

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