Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


Get_Rich_or_Die_Trying_GBP - expert for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Published by:
Vladimir Karputov
votes: 36
2017.08.10 12:56
2018.02.27 13:38

Author of the idea — John Smithauthor of the MQL5 code — barabashkakvn.

Positions are only opened at the specified time (+ shift set in "Additional hour"). Bullish and bearish bars are counted on PERIOD_M1 (M1). The money management classes CMoneyFixedMargin and CMoneyFixedRisk are used.


  • Stop Loss
  • Take Profit
  • Take Profit 2 — used for a program-based closing
  • Trailing Stop
  • Trailing Step
  • Money Management — risk calculation type (percent of free margin or fixed risk value)
  • Risk for a deal (in percent) allowable risk percent value
  • Count bars — the number of bars among which bullish and bearish bars will be counted
  • Additional hour — shift
  • Max positions  — the maximum number of positions

Comparison of lot calculation based on the free margin on GBPUSD,M1:

Get_Rich_or_Die_Trying_GBP fixed_margin

and the fixed risk value:

Get_Rich_or_Die_Trying_GBP fixed risk

The difference here is only the position load.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Trailing_Profit Trailing_Profit

Closing all open positions with the specified profit percent.

EURUSD breakout EURUSD breakout

The EA trades during two trading sessions, starting at the specified session beginning time. Stop Loss. Take Profit.

HistoryPositionInfo version 2 HistoryPositionInfo version 2

Returns the profit of a position in points, as well as commission, swaps and profit in money based on the trading history.

VWAP Custom Position VWAP Custom Position

Standard VWAP (Volume Weighted Average Price) calculation, but with configurable start position.