Trading robot · MT5

STO Martin

by crq644

STO Martin is a grid-based trading robot for MetaTrader 5 that uses technical indicators to manage entries and recoveries.

High risk

GitHub stars2
Forks2
Last update3 years ago25 Aug 2023
LicenceNone stated

Overview

STO Martin employs a Stochastic Oscillator for execution signals and a Moving Average to filter trades according to the prevailing trend. The EA features a martingale lot-scaling system that adds positions at defined intervals with a configurable multiplier. For risk control, it includes a trailing stop mechanism, a maximum number of martingale stages, an equity-based loss closure, and a position locking feature for drawdown protection.

Details

Author

crq644 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Martingale, Grid, Trend following, Indicator crossover, Hedging

Markets

Any symbol

Timeframes

M1-M5, M15-H1

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once
  • Trades without a fixed stop loss

Input parameters

Read from STO Martin V02.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpLotsdouble0.01首单手数
InpStopLossdouble0.0止损点数
InpTakeProfitdouble1000.0止盈点数
OverBuydouble0.0?
OverSelldouble0.0?
BuyPositionTargetdouble0.0买单目标盈利
SellPositionTargetdouble0.0卖单目标盈利
LossClosedouble1000亏到这个金额后?
NAprotectbooltrue美盘保护,1000点才加仓
ExpandTrendProfitint3顺势单扩大止盈倍数
LockLossdouble0.5最大亏损的百分比锁仓
Trackingdouble100大于这个点数的两倍,就设置跟踪止损
Show all 28 inputs
NameTypeDefaultDescription
InpMartinbooltrue是否使用马丁算法
LotMartinMultipleModebooltrue马丁模式是否倍数加手数
Add_Intervaldouble400加仓间隔
InpMartinCoeffdouble1.5马丁算法系数
MaxNumberMartinint6最大加仓次数
m_magiculong930873054magic number
periodENUM_TIMEFRAMESPERIOD_M1Sto周期
Kperiodint5K 线周期 (用于计算的柱数)
Dperiodint3D 线周期(主要平滑周期)
slowingint3最后平滑周期
ma_methodENUM_MA_METHODMODE_SMA平滑类型
price_fieldENUM_STO_PRICESTO_LOWHIGH随机计算方法
OpenTrendJudgebooltrue开启趋势判断
MovingPeriodint12Moving Average period
MovingShiftint0Moving Average shift
MaperiodENUM_TIMEFRAMESPERIOD_M15Ma周期

How to install it

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

Xauusd Auto Trader

by ibadnarpatih-create
2 stars

This MetaTrader 5 expert advisor is designed for trading XAUUSD using a trend-following approach. It identifies entries through a triple Exponential Moving Average crossover system, requiring ADX momentum confirmation before opening positions. To manage losing trades, the EA employs a martingale strategy that layers or

MT5 Trading robot Trend followingIndicator crossoverMartingale High risk
Updated 3 weeks ago GPL-3.0 GitHub repository of Xauusd Auto Trader

AutoTrade EA

by liucheng-12-08
3 stars

AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa

MT4MT5 Trading robot ScalpingIndicator crossoverMartingale High risk
Updated 7 months ago None stated GitHub repository of AutoTrade EA

IchiDCA CCBSN PropFirm EA

by magicniuniu
3 stars

IchiDCA CCBSN PropFirm EA is an automated trend-following robot for MetaTrader 5, optimized for gold and forex markets. It triggers trades based on Ichimoku Cloud breaks, filtered by dual Exponential Moving Averages and MACD indicators. The strategy manages positions through a Dollar Cost Averaging system that layers u

MT5 Trading robot Trend followingGridMean reversion High risk

Mr X Grid Hedge

by ibrahimzameel9232-lgtm
2 stars

Mr X Grid Hedge is a MetaTrader 5 expert advisor specifically designed for XAUUSD trading. It utilizes a grid strategy with entry signals confirmed by a combination of EMA crossovers, RSI bounds, and ATR volatility filters. The system manages risk through automated hedging triggered by drawdown or specific grid depth.

MT5 Trading robot GridMartingaleHedging High risk
Updated 10 months ago None stated GitHub repository of Mr X Grid Hedge
1 stars

This Expert Advisor for MetaTrader 5 focuses on gold trading through a combination of mean-reversion signals and a grid management system. It uses multi-timeframe filters, including exponential moving averages and ADX on the H1 timeframe, to identify trend direction while executing entries on M15 based on RSI and Bolli

MT5 Trading robot Mean reversionGridMartingale High risk

Prem Gold Advisor

by Premkumar238
1 stars

Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe

MT5 Trading robot BreakoutTrend followingMartingale High risk
Updated 4 weeks ago None stated GitHub repository of Prem Gold Advisor

More trading robots

Need a broker for MT5?

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

Compare brokers