Utilitie Partial Close EA

Buy Partial Close EA trading application in the store of automated robot systems

The most sim­ple and easy to use Par­tial Close (by Riman­tas Petrauskas). The main idea of this EA is to apply par­tial close to your posi­tions. EA will auto­mat­i­cal­ly find your open mar­ket posi­tions and apply par­tial close accord­ing to your set­tings.

For those who do not know what Par­tial Close is: it is sim­ply an action to close only a part of your posi­tion. For exam­ple, if your trade lot size is 1.2 and you close 25% of it (which is 0.3) you will still have 0.9 lot size trade run­ning and exist­ing bank prof­its from that 0.3 lot size that was just closed. This action obvi­ous­ly can be per­formed man­u­al­ly, but if you want to pro­gram your MT4 to do this for you then you need “Par­tial Close EA”.

How to use Partial Close EA?

The EA should be attached to a sep­a­rate chart on your MT4 and it will apply par­tial close to all trades select­ed by mag­ic num­ber or trade num­ber. The EA will see trades of that cur­ren­cy pair (instru­ment) that it is attached to. By default the EA will apply par­tial close to any mar­ket order on the cur­ren­cy pair (instru­ment) it is attached to. The EA can also be applied to non-Forex pairs/instruments like Indices, Com­modi­ties, etc. For this you might need to use Cus­tom­Pip­Sizes option (read expla­na­tion below).

Partial Close EA Inputs

  • Man­ageMag­ic­Num­ber ” This tells the EA to apply par­tial close to trades only with cer­tain mag­ic num­ber you choose. If this val­ue is set to zero, the EA will man­age only man­u­al­ly opened trades. If you set this to ‑1 (neg­a­tive one), the EA will man­age all of the trades run­ning on the account (default val­ue).
  • Man­age­Trade­Num­ber ” This tells the EA to apply par­tial close only to the trade num­ber spec­i­fied. This will also make the EA ignore the Man­ageMag­ic­Num­ber option.
  • Par­tial­CloseC­ount ” This tells the EA to apply par­tial close X times. Set this to zero to dis­abled Par­tial Close option.
  • Par­tial­CloseOn­Hold­Pips ” This tells the EA to start par­tial close when trade reach­es X pips in prof­it. Zero means EA will start apply­ing par­tial close at the first tar­get (Par­tial­Clos­eS­tep­Pips). If this option is set to 50 pips and PartialCloseStepPips=20 pips, then EA would wait for the trade to reach prof­it of 50 + 20 = 70 pips to close the first part of the trade.
  • Par­tial­Clos­eS­tep­Pips ” This tells the EA to apply par­tial close each X pips in prof­it. If this option is set to 20 pips and PartialCloseCount=3, then EA will apply par­tial close 3 times every 20 pips. This means TP1 = 20 pips, TP2 = 40 pips and TP3 = 60 pips.
  • Par­tial­Clos­eS­tep­Per­cent ” This tells EA to close X% of the trade. Per­cent­age of the lot size is count­ed from the ini­tial lot size.
  • Par­tial­Close­BreakEve­nAfter ” This indi­cates after how many par­tial clos­es EA should move stop loss to a break-even point (open price + few pips to cov­er com­mis­sion expens­es). Zero val­ue means no break-even will be applied.
  • Cus­tom­Pip­Sizes ” I have added this option because there are no stan­dard pip sizes for indices and oth­er non-Forex pairs between bro­kers. This option allows you to over­ride the pip size that the EA will detect auto­mat­i­cal­ly. In 99% cas­es EA will work fine on all Forex pairs, but for non-Forex pairs you might notice that pip size is dif­fer­ent between bro­kers. For exam­ple NAS100 with one bro­ker might be quot­ed with 1 dec­i­mal and anoth­er bro­ker might quote it to 2 dec­i­mals. Here is an exam­ple how to enter in a com­ma sep­a­rat­ed list of cus­tom pip sizes:

    XAUUSD=0.1,XAGUSD=0.01,WTI=0.1

    For those who are using EA on a non-Forex pairs please set the Cus­tom­Pip­Sizes option cor­rect­ly accord­ing to your bro­ker set­tings. Sor­ry, I am unable to help you set­ting this option, because each bro­ker might need dif­fer­ent val­ue.

  • Slip­page­ClosePips ” This is the slip­page set­ting EA will use to exit the mar­ket (close the trade). Note that not all bro­kers use this. If you do not know what that is, sim­ply leave it as is.

Partial Close EA 

Relat­ed Posts
Utilitie Draw SPR
This script draws 7 hor­i­zon­tal lines. Three Resis­tance lines are drawn in Green Col­or. One Piv­ot point line in Blue Col­or. Three Sup­port lines in Red Col­or. After draw­ing the lines, the script exits.
READ MORE
Utilitie Cool Informer
The Cool Informer per­forms all the nec­es­sary tasks to help you stay up-to-date with you Forex trad­ing. The Cool Informer uses an audio sound to inform when a tar­get prof­it …
READ MORE
Utilitie Trade Designer script
Descrip­tion Trade Design­er is a script for open­ing posi­tions at the points marked by the Trade Design­er of the same name. The script auto­mat­i­cal­ly deter­mines the direc­tion of the posi­tion, type, and …
READ MORE
Utilitie Commitments of Traders Data
This indi­ca­tor dis­plays Com­mit­ments of Traders data released every week by the CFTC. Please make sure that you down­load MWC_3L.dat file into the fold­er […]/MQL4/Files. Main data fold­er: www.myweeklycot.com/cot/voll/2014/¦ Files: MWC_3L.dat — Net Posi­tions …
READ MORE
Utilitie Show info on chart
This sim­ple util­i­ty shows impor­tant data on the chart. You can set the col­ors via inputs. This has been done for traders using the col­ors that are dif­fer­ent from the default …
READ MORE
Utilitie CloseAllComplete
This free prod­uct clos­es all trades based on spe­cif­ic prop­er­ties such as mag­ic, prof­it, type, etc. It is based on one of the scripts found in one of my Code Base …
READ MORE
Utilitie CloseAllProfitSymbol
The script clos­es all prof­itable orders for the sym­bol on whose chart it is run­ning. Before run­ning the script, you need to allow auto-trad­ing.
READ MORE
Utilitie Clockwer
A Script. A com­mon clock. The script dis­plays two minute and sec­ond hands: gray hands — the time of the last tick, col­ored hands — the sys­tem time of the …
READ MORE
Utilitie LabelKiller
This is a plug-in indi­ca­tor for Con­trol-ado­ra that elim­i­nates all the list­ed labels when a spe­cif­ic price is reached. Just add the indi­ca­tor to the same chart where Con­trol-ado­ra runs and …
READ MORE
Utilitie TrendSemiAutomat
It is a semi­au­to­mat­ic Expert Advi­sor. It opens a posi­tion at the inter­sec­tion of the trend­line, the posi­tion of which is set man­u­al­ly. It works with only one posi­tion. A sig­nal …
READ MORE
Util­i­tie Draw SPR
Util­i­tie Cool Informer
Util­i­tie Trade Design­er script
Util­i­tie Com­mit­ments of Traders Data
Util­i­tie Show info on chart
Util­i­tie CloseAll­Com­plete
Util­i­tie CloseAll­Prof­it­Sym­bol
Util­i­tie Clock­w­er
Util­i­tie LabelKiller
Util­i­tie Trend­Semi­Au­tomat

Leave a Reply

 

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.