Login / Register
Add a review
Log in
Sign UP
[bws_google_captcha]

the easiest-to-utilize partial Close EA (out of Rimantas Petrauskas).

Note: Partial Close EA does not work from the MT4 strategy tester.

to test the expert Advisor, use the demo version: https://www.mql5.com/ru/marketplace/product/13617

Note: Partial Close EA does not work from the MT4 strategy tester.

to test the expert Advisor, use the demo version: https://www.mql5.com/ru/marketplace/product/13617

the main idea of the expert Advisor is to employ partial final to rankings. The expert Advisor automatically finds your receptive market positions and applies a partial close according to your preferences.

for those who don’t know what partial closing is: it’s just closing part of your position. for example, if your trading lot size is 1. and you’ve got closed 25% of it (which is 0.3), you still have an open trade with a lot size of 0.9 and a profit from a trade with a lot size of 0.3 that you just closed. Of course, this action can be performed manually, but if you want to program your MT4 for this, You need the partial Close expert Advisor.

[spoiler title=”Read More…”]

The expert Advisor must be attached to a separate chart, and it will partially close all trades selected using the magic number or trade number. The expert Advisor sees the transactions of the currency pair (instrument) to which it was attached. By default, the EA will partially close any market order on the currency pair (instrument) to which it is attached. The expert Advisor can also be applied to pairs/instruments outside the Forex market, for example, on the Stock or Commodity market, etc. to do this, you need to use the CustomPipSizes function (see below).

  • ManageMagicNumber-the EA applies partial closing to trades with the magic number you selected. If this parameter is set to zero, the EA only manages manually opened trades. If this parameter is set to -1 (negative value), the expert Advisor manages all trades that are active on the account (default value).
  • ManageTradeNumber-the EA applies a partial close to the specified trade number. With this parameter, the expert Advisor ignores the ManageMagicNumber option.
  • ManageTradeWithComment-the EA applies partial closing only to those trades with the selected text in the “comment” field. If the value of this parameter is “777”, the expert Advisor manages trades containing the specified”comment”. For example, “1777” or ” 777 ” or ” 777565, but not “7737” or transactions without comment.
  • PartialCloseCount-the EA applies partial closing X number of times. Set the value to zero to disable the partial closure function.
  • PartialCloseOnHoldPips-the EA starts partial closing when the trade reaches a profit of X pips. If the value is zero, the EA starts partial closing when the first target profit (PartialCloseStepPips) is reached. If this option is set to 50 pips and PartialCloseStepPips=50 pips, the EA will expect a profit of 20 20 = 70 pips to close the first part of the trade.
  • PartialCloseStepPips-the EA applies a partial close every X pips of profit. If this option is set to 20 pips and PartialCloseCount=3, the EA applies a partial close 3 times every 20 pips. This means that TP1 = 20 pips, TP2 = 40 pips, and TP3 = 60 pips.
  • PartialCloseStepPercent-the EA closes X% of the trade. The percentage of the lot size is calculated from its initial size.
  • PartialCloseBreakEvenAfter — the number of partial closes through which the EA moves the stop loss to the breakeven point (opening price a few pips to cover the Commission). A zero value means that there is no break-even point.
  • CustomPipSizes — this option was added due to the lack of standard pips sizes for indexes and other non-Forex pairs. This option allows you to override the PIP size, which is automatically recognized by the expert Advisor. In 99% of cases, the expert Advisor shows good results on all Forex pairs, but when working with non-Forex pairs, it should be noted that brokers can have different pips sizes. For example, one broker may quote NAS100 with 1 decimal place, and another broker-with 2 digits. Here is an example of making an entry in the list of pips sizes separated by commas: XAUUSD=0.1, XAGUSD=0.01, WTI=0.1
  • When using the expert Advisor on non-Forex pairs, configure the CustomPipSizes option according to your broker’s settings. Unfortunately, I will not be able to help you configure this option, as each broker may need its own value.
  • SlippageClosePips-setting the slippage for the EA to exit the market (closing the trade). Please note that not all brokers use it. The parameter also does not work on ECN accounts. If you don’t know how to use it, just leave the parameter as it is.

Rimantas Petrauskas is a software engineer and algorithmic Forex trader.

[/spoiler]

Add review
Reviews ( 0 ):