Trade manager · MT4 · MT5

PSAR Trailing Stop

by EarnForex

PSAR Trailing Stop is a management utility for MetaTrader 4 and 5 that automates the adjustment of stop-loss levels for open positions.

GitHub stars16
Forks4
Last update2 years ago9 Aug 2024
LicenceApache-2.0
Latest release1.062 years ago

Overview

Instead of manual movement, it follows the Parabolic SAR indicator values to lock in profits or minimize losses as a trend progresses. The software includes filtering options to target specific trades by symbol, magic number, comment, or trade type. Users can define a profit threshold before trailing begins and receive notifications via alerts, emails, or mobile push messages. It features a graphical chart panel for toggle control.

Details

Author

EarnForex on GitHub

Type

Trade manager

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Markets

Forex

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Topics

expert-advisorforexmetatradermetatrader-4metatrader-5mql4mql5mt4mt5parabolic-sar

Input parameters

Read from MQLTA MT5 PSAR Trailing Stop.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Comment_1string====================Expert Advisor Settings
PSARStepdouble0.02PSAR Step
PSARMaxdouble0.2PSAR Max
Shiftint0Shift In The PSAR Value (0=Current Candle)
Comment_2string====================Orders Filtering Options
OnlyCurrentSymbolbooltrueApply To Current Symbol Only
OnlyTypeENUM_CONSIDERAllApply To
UseMagicboolfalseFilter By Magic Number
MagicNumberint0Magic Number (if above is true)
UseCommentboolfalseFilter By Comment
CommentFilterstringComment (if above is true)
ProfitPointsint0Profit Points to Start Trailing (0 = ignore profit)
Show all 25 inputs
NameTypeDefaultDescription
EnableTrailingParamboolfalseEnable Trailing Stop
Comment_3string====================Notification Options
EnableNotifyboolfalseEnable Notifications feature
SendAlertbooltrueSend Alert Notification
SendAppbooltrueSend Notification to Mobile
SendEmailbooltrueSend Notification via Email
Comment_3astring====================Graphical Window
ShowPanelbooltrueShow Graphical Panel
ExpertNamestringMQLTA-PSARTSExpert Name (to name the objects)
Xoffint20Horizontal spacing for the control panel
Yoffint20Vertical spacing for the control panel
ChartCornerENUM_BASE_CORNERCORNER_LEFT_UPPERChart Corner
FontSizeint10Font Size

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/PSAR-Trailing-Stop from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
  3. 3Copy the filesCopy the .mq4 / .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

67 stars

This MetaTrader expert advisor functions as a trade manager that automates stop loss adjustments for existing positions. It specifically waits until a trade reaches a user-defined profit threshold in points before initiating a trailing stop. The tool includes flexible filtering options to manage specific symbols, magic

MT4MT5 Trade manager
Updated 3 months ago Apache-2.0 GitHub repository of Trailing Stop On Profit

Trader Pad

by erlonfs
20 stars

Trader Pad is a trade management utility for MetaTrader 5 designed to automate position exits and risk control after an entry is initiated. The software handles stop-loss and take-profit placement in ticks, providing advanced trailing stop logic and break-even functionality. It allows users to scale out of positions th

MT5 Trade manager
Updated 4 years ago MIT GitHub repository of Trader Pad

ATR Trailing Stop

by EarnForex
19 stars

This trade manager for MetaTrader 4 and 5 automatically adjusts the stop-loss levels of open positions using the Average True Range indicator. It allows users to define the trailing distance through a configurable ATR period and multiplier. The expert advisor includes filtering logic to apply the trailing stop only to

MT4MT5 Trade manager
Updated 6 months ago Apache-2.0 GitHub repository of ATR Trailing Stop

Fractals Trailing Stop

by EarnForex
15 stars

This expert advisor is a utility for MetaTrader 4 and MetaTrader 5 designed to manage stop-loss levels for existing trades. It utilizes Bill Williams' Fractals indicator to dynamically adjust the stop loss as new fractal points form on the chart. Users can configure the number of bars to scan and specify which fractal

MT4MT5 Trade manager
Updated 1 year ago Apache-2.0 GitHub repository of Fractals Trailing Stop
15 stars

This visual trade management utility for MetaTrader 5 assists manual traders with order execution and risk management. It features interactive chart lines for entry, stop loss, and take profit levels, allowing for drag-and-drop price adjustments. The system automatically calculates position sizes based on a defined per

MT5 Trade manager
13 stars

PATI Trading Assistant is a MetaTrader 4 utility designed to facilitate trade management and bookkeeping based on the PATI trading methodology. It automates the placement of stop losses and take profits, specifically managing range breakout and pullback setups. The EA includes risk controls such as the Two Minute Rule

MT4 Trade manager BreakoutTrend following

More trade managers

Need a broker for MT4/MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers