Loading…

Trailing Stops Partial 2

Trailing Stops Partial 2 — a MetaTrader 4 script kept in the Old Kings collection. Judging by its name, it is built around trailing stops. Its source code uses moving averages and Parabolic SAR. It has 40 settings, for example Account Is Mini (default true), Expert Name (default TrailingPartialClose) and st6 (default --Profit Controls--). Drop it on a demo chart first to see exactly what it does. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Script · MT4 · v1.0 · Free

About Trailing Stops Partial 2

Trailing Stops Partial 2 is a script for MetaTrader 4 based on Moving Average and Parabolic SAR. It has 40 settings, such as Account is mini, Expert name and St6. MQL source code included.

Files in the download: TrailingWithPartialClose.mq4.

Settings

SettingDefaultWhat it does
Account is minitrue
Expert nameTrailingPartialClose
St6--Profit Controls--
Stop loss100Maximum pips willing to lose per position.
Use partial close1
Partial percent50
Tp level120
Slippage3Maximum slippage allowed when opening a trade
Tsp0--Trailing Stop Types--
Tsp1 1 = Trail immediately
Tsp2 2 = Wait to trail
Tsp3 3 = Uses 3 levels before trail
Tsp4 4 = Breakeven + Lockin
Tsp5 5 = Step trail
Tsp6 6 = MA trail
Tsp7 7 = pSAR trail
Trailing stop type4Trailing stop distance or switch
Ts2Settings for Type 2
Trailing stop15Change to whatever number of pips you wish to trail your position with.
Ts3Settings for Type 3
First move20Type 3 first level pip gain
First stop loss50Move Stop to Breakeven
Second move30Type 3 second level pip gain
Second stop loss30Move stop to lock is profit
Third move40type 3 third level pip gain
Trailing stop320Move stop and trail from there
Ts4Settings for Type 4
Break even30Move the stop to break-even
Lock in pips1Profit Lock in pips
Ts5Settings for Type 5
E trailing stop10Trailing stop distance or switch
E trailing step2Trailing stop distance or switch
Ts6Settings for Type 6
Trail ma time frame15Trailing stop distance or switch
Trail ma period10Trailing stop distance or switch
Trail ma shift0Trailing stop distance or switch
T3--Moving Average settings--
Tm--Moving Average Types--
Tm0 0 = SMA
Tm1 1 = EMA

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: Trailing Stop & Break-even · Moving Average · Parabolic SAR · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria