• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:03am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:03am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

EA "Close all positions at profit target" closed all positions at loss ? 8 replies

Need an EA to close my trade when opposite colored candle appears 0 replies

Need EA to close trades on opposite side before placing new order 0 replies

script to "close open orders" and "open opposite orders" 3 replies

Opposite reaction of news 4 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Close by Opposite Positions

  • Post #1
  • Quote
  • First Post: Apr 29, 2010 11:51pm Apr 29, 2010 11:51pm
  •  mfurlend
  • | Joined Apr 2010 | Status: Member | 165 Posts
Hi,
If you have a buy order for 2 lots and a sell order for 1 lots, and your sell order begins to make a profit, I know it is possible to close the sell order in such a way so that the profit goes to lower the investment in the buy order by 1 lot. But how do I do this with MQL4? I could not find anything about this anywhere. The Metatrader 4 help file calls this "Close by Opposite Positions," but I could find no way to automate it. Can anyone help me out with this?
  • Platform Tech
  • /
  • Close by Opposite Positions
  • Reply to Thread
0 traders viewing now
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022