Let’s talk Partial Close (a.k.a. scaling out of position). I will explain how you can close position partially in MetaTrader 4 platform and give you an opportunity to have automated Partial Close option.
I am sure you already know what Partial Close is, but in case you haven’t heard of it before let me explain.
Partial Close is when you close a fraction of your position to lock in profit and leave a portion running to take advantage of any further price runs. Often Partial Close comes in a combination with Break Even. This means that you move stop loss to an open price or a few pips in profit.
A simple example would be if you hold a 1.0 lot trade and then once it reaches +50 pips in profit you close 25% of it (which would be 0.25 lot) leaving the rest of 0.75 lot to run. At this point you can move stop loss to an open price so if the price reverses you will get stopped out of that 0.75 trade with zero profit, but in overall you end up in profit because you closed 0.25 trade at +50 pips previously. And if the price continues to move in your favor obviously you can scale out again and again.
I should note that Partial Close not always benefit the trader. It might not work on some strategies and some might even produce worse results. Obviously, you need to test Partial Close well on each of your strategies to see if it improves the strategy. And when you are closing the trades note that Longs are closed at BID price and Shorts are closed at ASK price.
Partially Closing Positions in MetaTrader 4
The process is fairly very easy, however after speaking with a lot of traders I’ve found out that only few of them know about this option.
In the picture below you see my list of trades running in the “Trade” tab of my MT4 platform.
To partially close that EURUSD short position I need to double click on any column (except for the S/L and T/P columns) of that trade which would open a window like this.
Note that “Volume” field shows “1.00” value, which is the size of my EURUSD order. If I click the yellow “Close” button the whole order would be closed completely.
To close only part of my order I need to enter lot size of how much I want to close (scale out) in the “Volume” field. In the picture below you see I have entered 0.5 lot size.
Now when I click the yellow “Close” button it would close only half of my position, because 0.5 is half of my original 1.0 lot size. If I entered 0.25 lot size to close, this would mean I am closing 25% of my initial 1.0 lot size order. As you might already understand, you cannot close orders partially if they are lower than 0.02 size. I mean you cannot close part of the 0.01 lot size trade, unless your broker supports lots lower than 0.01.
Let’s see what happens when I click the yellow “Close” button now.
My order was partially closed and I have the remaining 0.5 lots still running. You can see in the picture above the trade “Comment” column says “from #16785957” which means this trade was scaled out from a trade #16785957. And if we look at the list of closed orders in the “Account History” tab we will find this closed trade (0.5 lot) and it has a trade comment which says “to #16799089“. It means that this order was scaled out to a trade #16799089. This is how you can recognize if a trade was closed partially or not.
Another way to close orders partially
Instead of double-clicking, you can click right mouse button on the order you want to close partially. When you do this a contextual menu will appear.
In this pop-up menu you need to select the “Modify or Delete Order” option which would open another window which looks like this.
In order to close a trade partially you will have to choose another “Type” which should be “Market Execution” or “Instant Execution” (depending on your account type). Once you set proper “Type“, that window will turn into the exact same window with the yellow “Close” button as you saw before, where it allows you to enter the lot size you want to close in the “Volume” field. Enter a lot size you want to close and then click the yellow “Close” button to close a portion of your trade.
Automated Partial Close
Closing orders partially on MT4 is a manual process, but it can be automated with the help of a special tools like Expert Advisors. Quite a lot of people been asking me for years if I have such EA, so I have decided to create one and make it affordable nearly to every currency trader.
My other intention is to add Partial Close feature to the Trader On Chart app and I am working on this as well. But even without this option integrated into TOC app you can still use both TOC and Partial Close EA in the same MT4. You just need to open additional chart for each EA.
Downloading Partial Close EA from the MT4 App Market
So here’s how you can get the Partial Close EA in 5 simple steps.
1. Login to MQL5 Community from your MT4 client terminal
If you are not logged into MQL5 Community you need to do this to download the EA. In your MT4 client terminal navigate to Tools -> Options in the top menu.
In the “Options” window that will appear, open the “Community” tab.
If you do not have an account at the MQL5 Community (a.k.a. MT4 and MT5 app market) then you can create it there by entering your login (create something you can remember) and e-mail address. If you do have an account at MQL5 Community you should click the “If you have an account, please login” link below the “Register” button and enter your username and password.
Note: Even though it is named MQL5 Community, you will find apps and indicators for both, MT4 and MT5 trading platforms. And NO, I do not think MT4 will be gone anytime soon.
When you click OK your MT4 client terminal will log-in to the MQL5 Community and you will be able to download MT4 Apps. You can check “Journal” tab to see if you were logged in or not.
If you enter wrong login or password or you do not have an account on MT4 app market you will see an error in the “Journal” tab.
2. Find Partial Close EA on the app market
When you are logged into the MQL5 Community on your MT4 client terminal you need to switch to the “Market” tab at the bottom in order to download the Partial Close EA.
Once you switch to the “Market” tab (1) you then select the “Applications” tab (2). Then type “partial close ea” in the search field (3) and my Partial Close EA should appear in the search results (4). Click on the EA to open its page.
Note: You can also type my name “Rimantas” in the search field to find my apps.
3. Installing Partial Close EA to your MT4 terminal
To install Partial Close EA to your MT4 client terminal you need to click the “Download” button in the right-top corner. This will download the EA and install it for you.
Once EA is downloaded and installed, it will appear in the “Navigator” window under the “Expert Advisors -> Market“.
4. Running Partial Close EA
To run Partial Close EA you need to double-click it or drag-and-drop it to the currency chart of your choice. Note that EA will apply partial close function only to the trades of the same currency pair. This means if you attach EA to the EURUSD chart then it will apply partial close function only to the orders of EURUSD pair.
Please make sure to read the instructions on the MQL5 Community to learn how to use this EA. I am really very busy already answering hundreds of email messages each week, so any questions that are already explained and answered on my website or this product website might be unanswered.
5. Leave a review on MQL5 Community
After few weeks of using my Partial Close EA, please go to the product page on MT4 app market and leave a review.
This is a very simple process. All you need to do is to open a “Review” tab, click the “Add review” link and write a review 🙂 Thank You.
This blog post will definitely help you learn how to close your positions partially (scale out) in the MetaTrader 4 platform. It also explains how you can program your MT4 to apply Partial Close function automatically for you.
Now tell me in the comments below, was this helpful?
Would you be interested to learn how you can implement partial close function into almost any Expert Advisor MQ4 file that you have?