Skip to content

ZrakD/MT5-Risk-Management-EA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

305 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Topics: mt5, mt5-money-sentinel, mt5-profit-lock, metatrader5, mt5-breakeven-logic, mt5-position-manager, mt5-order-flow-manager, expert-advisor, mt5-management-engine, mt5-trade-copilot, mt5-adaptive-execution, mt5-equity-protector, forex-trading, indicators, trading-script

Information

Advanced MT5 / MT4 forex trading tool and indicator suite designed for modern trading platforms, featuring automation, risk management, trade execution, market analysis, and algorithmic trading capabilities. This project supports traders with expert advisors (EAs), indicators, scalping systems, position sizing tools, and real-time trading assistance.

▦ Risk Management EA

Professional position sizing & risk management tool for MetaTrader 5 / MetaTrader 4 calculate lot size, control risk, and execute trades with precision.


Stars Forks Issues Platform License


Screenshot

photo


Demo

Demo

Why Risk Management?

Most traders fail not because of strategy, but because of poor risk control.

This EA focuses on the core of professional trading:

  • Fixed percentage risk
  • Consistent position sizing
  • Controlled drawdown
  • Emotion-free execution

Whether you trade manually or with automation, proper risk management is what keeps you in the game long term.


What It Does

Risk Management EA provides a full desktop interface to calculate and manage trades before execution:

Feature Description
Lot Size Calculation Automatically calculates correct lot size based on risk % and stop loss
Risk Amount Shows exact dollar amount at risk per trade
Reward Projection Calculates potential profit based on take profit
Risk/Reward Ratio Displays real-time R:R (e.g. 1:2.0)
Pip Calculation Converts price distance into pips based on instrument
Live Price Simulated or real-time price feed
Trade Execution Open trades directly from the interface
Trade History Logs previous trades with PnL and win/loss status

Features

Feature Description
Clean UI Modern dark interface with real-time updates
Multi Pair Support EURUSD, GBPUSD, XAUUSD, USDJPY, and more
Direction Control BUY / SELL toggle with instant recalculation
Risk Slider Adjust risk visually (0.1% – 10%)
Real-Time Metrics Lot size, risk $, reward $, R:R
MT4 / MT5 Support Switch platform directly in UI
Connection Manager Simulated broker connection system
Trade Button Execute trades with one click
Risk Gauge Visual risk meter (low / moderate / high)
History Panel Track performance and previous trades

Designed for Real Trading

  • No over-risking — strict % based calculation
  • Instant feedback — everything updates in real time
  • Platform ready — MT4 / MT5 compatible structure
  • Discipline focused — removes emotional decision making

Quick Start

Requirements:

  • Windows 10 / 11
  • .NET 6+
  • Visual Studio 2022
# Clone repository
git clone https://github.com/your-username/risk-management-ea.git

# Open solution
# File → Open → Solution (.sln)

# Run
F5

How to Use

  1. Select trading pair (EURUSD, XAUUSD, etc.)
  2. Choose BUY or SELL
  3. Enter:
    • Account balance
    • Risk %
    • Entry price
    • Stop loss
    • Take profit
  4. Click CALCULATE
  5. Review:
    • Lot size
    • Risk amount
    • Reward
    • R:R ratio
  6. Connect to platform (MT4 / MT5)
  7. Click OPEN TRADE

Calculation Logic

Risk Amount = Balance × Risk %

Lot Size = Risk Amount / (Stop Loss Pips × Pip Value)

Reward = Lot Size × Take Profit Pips × Pip Value

R:R = Reward / Risk

Trade Flow

Input → Calculate → Validate Risk → Connect → Execute Trade

Roadmap

  • Position sizing engine
  • Risk / Reward calculation
  • Trade history tracking
  • Risk gauge visualization
  • Real MT5 API integration
  • Auto SL/TP placement
  • Max daily loss limiter
  • Multi-account support
  • Telegram alerts

Contributing

1. Fork the repo
2. Create branch: git checkout -b feature/improvement
3. Commit: git commit -m "Add feature"
4. Push: git push origin feature/improvement
5. Open Pull Request

License

MIT — free to use and modify.


Risk Management EA · Built for disciplined trading

About

MQL5 risk management EA for MT5 — automates breakeven, trailing stop, partial close, and equity protection across all open positions. Designed to run alongside any strategy or EA without interfering with entry logic.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors