Results 1 to 5 of 5
 0 Attachment(s)    

Thread: Closing a partial trade

  1. #1

    Default Closing a partial trade

    I'd like to be able to close only part of a trade when the price reaches a certain point. The problem is if I use OrderClose() with a lot size smaller than the actual order lot size, it closes the portion but the rest of the order seems to disappear. Has anyone been able to do this via code?

    Paul

  2. #2

    Arrow

    You can download the EA from the link below and you will see the code that you need.

    Multi-purpose trade management ea @ Forex Factory

  3. #3

    Default

    Thanks, I'm looking at it now.

  4. #4

    Default

    I figured out what I was doing wrong from looking at the example. It helps to see the code sometimes! Thanks for the help!

    Paul

  5. #5

    Arrow

    Quote Originally Posted by ppentz View Post
    I figured out what I was doing wrong from looking at the example. It helps to see the code sometimes! Thanks for the help!

    Paul
    You are welcome!

Similar Threads

  1. labtrend EA with partial close
    By billgate in forum Ideas for expert advisors
    Replies: 0
    Last Post: 06-28-2014, 19:24
  2. Partial exit code
    By arbus in forum MQL programming
    Replies: 0
    Last Post: 06-03-2012, 03:54
  3. Replies: 0
    Last Post: 09-14-2010, 14:14

Tags for this Thread

closing

Posting Permissions

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