Risk & protection · MT4

GHTech Risk Management

by godcryhe

This MetaTrader 4 expert advisor focuses on account protection and risk management.

GitHub stars1
Forks0
Last update9 years ago7 Jun 2017
LicenceNone stated

Overview

GHTech Risk Management monitors various drawdown levels, including weekly, monthly, and emergency thresholds, and enforces trading pauses if these limits are exceeded. The tool also evaluates trading performance by checking the risk-to-reward ratio of historical trades against user-defined minimums. It allows for strict control over risk per trade and total risk across all open orders based on a fixed initial balance. The README is missing, so configuration relies on the input parameters.

Details

Author

godcryhe on GitHub

Type

Risk & protection

Platform

MetaTrader 4 (MQL4)

Markets

Any symbol

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.

Input parameters

Read from RiskManagement.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InitBalancelong10000risk per trade is based on the initial balance which is set at year start
RiskPerTradedouble0.02risk per trade
MaxRiskTotalTradedouble0.03max risk of total orders
MaxWeeklyDrawDowndouble0.04Max weekly drawdown
MaxMonthlyDrawDowndouble0.06Max monthly drawdown
EmergencyStopdouble0.1Stop trading for two weeks if 10% drawdown is reached
MaxDrawDownAlloweddouble0.2Max allowed drawdown
StopTradingDaysOLint5Min stop trading days because of loss is over risk limit
MinLossdouble-10Min loss as a filter
MinRRRatioPerTradedouble1.5Min RR ratio
MinRRRatioHistorydouble1.8Min RR history ratio
MinHisTradesToCalRRRint5the min number of transactions to calculate the RR ratio
Show all 16 inputs
NameTypeDefaultDescription
LastTradesToCalRRRint3calculate the last 3-10 trades RR ratio
StopTradingDaysRRint5Min stop trading days because of history RR ratio < MinRRRatioHistory
GMToffsetint-6Mountain Daylight Time -6, Mountain time -7;
ServerTimeGMToffsetint3server time and GMT offset

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone godcryhe/Experts from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 file into Experts.
  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

Account Protector

by EarnForex
124 stars

Account Protector is a risk management expert advisor for MetaTrader 4 and 5 designed to monitor account health and prevent excessive drawdowns. It allows users to set specific triggers based on floating profit or loss, equity levels, free margin, spread, or daily performance. When these conditions are met, the EA auto

MT4MT5 Risk & protection
Updated 7 months ago Apache-2.0 GitHub repository of Account Protector

AutoTrading Scheduler

by EarnForex
55 stars

This expert advisor provides automated schedule management for the MetaTrader 4 and MetaTrader 5 platforms. It allows users to define specific time windows for each day of the week to toggle the platform's global AutoTrading status. Beyond simple scheduling, the utility can close active positions and delete pending ord

MT4MT5 Risk & protection
Updated 6 months ago Apache-2.0 GitHub repository of AutoTrading Scheduler
8 stars

JT Prop Firm Trade Manager is a risk management utility for MetaTrader 4 designed to protect accounts from violating equity and drawdown rules. It monitors daily loss limits and maximum drawdown, allowing users to configure thresholds in either currency or percentage. The tool features time-based filters to restrict ov

MT4 Risk & protection

Prop Firm Manager

by pepshirley
5 stars

Prop Firm Manager is a risk management utility for MetaTrader 4 designed to help traders comply with prop firm rules and protect account equity. The tool monitors maximum loss per trade and daily drawdown limits using either fixed dollar amounts or percentages. It manages trading sessions by restricting overnight and w

MT4 Risk & protection

FX Risk Management Collection

by vishnugovind10
4 stars

This MetaTrader 4 collection provides a set of utilities focused on risk management and order execution. It includes scripts and expert advisors designed to automate the closing of open positions and the removal of pending orders. The logic specifically targets closing trades that have reached a specific gain threshold

MT4 Risk & protection
2 stars

This MetaTrader 4 utility calculates and displays a five percent daily drawdown limit directly on the chart. It determines the daily starting balance by analyzing the account history and subtracting current-day profits from the total balance. Designed as a monitoring tool for traders following specific risk management

MT4 Risk & protection
Updated 5 years ago None stated GitHub repository of Daily Drawdown Monitor

More risk tools

Need a broker for MT4?

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

Compare brokers