Trading robot · MT4

Buy Low Sell High EA

by yeainshukla

This MetaTrader 4 expert advisor implements a cumulative profit strategy based on support and resistance levels.

GitHub stars2
Forks0
Last update1 year ago30 Jan 2025
LicenceNone stated

Overview

The system identifies potential trade entries by analyzing historical price extremes over a defined lookback period while excluding recent price action. It manages trade exits collectively, closing the entire basket of orders once a predefined aggregate profit target or maximum loss threshold is met. Risk management features include a limit on total open orders and fixed lot sizing. The repository provides minimal documentation and lacks a README file.

Details

Author

yeainshukla on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Mean reversion, Hedging

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Holds opposite positions at once
  • Trades without a fixed stop loss

Input parameters

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

NameTypeDefaultDescription
minLossTargetdouble-100.0Minimum total open trade loss target to close all orders
profitTargetdouble25.0Maximum total open trade profit target to close all orders
lotSizedouble0.01Lot size
maxOpenOrdersint10Maximum number of open orders
overlayboolfalseDisable overlay chart
SR_LookBackint1440Lookback period for support and resistance calculation
ExcludeRecentint96Number of recent candles to exclude from S&R calculation

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone yeainshukla/Automated-Forex-Trading-EA 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

Icarus

by fraggli
7 stars

Icarus is an automated trading system for MetaTrader 4 that employs a grid strategy with Martingale lot scaling. It utilizes Bollinger Bands and the Stochastic Oscillator to identify entry points, offering a conjunctive mode for filtered execution. The EA manages risk through maximum position limits, equity warning thr

MT4 Trading robot GridMartingaleMean reversion High risk
Updated 4 years ago GPL-3.0 GitHub repository of Icarus

Oil Hedge

by vvvf
3 stars

This MetaTrader 4 expert advisor implements a correlation-based hedging strategy between two instruments, typically UKOIL and USOIL. It monitors the price spread between the two assets, opening buy and sell positions simultaneously when the spread expands or narrows beyond defined thresholds. The EA manages exits based

MT4 Trading robot HedgingMean reversionMartingale High risk
Updated 5 years ago None stated GitHub repository of Oil Hedge

North East Way

by Yogurt-Peng
3 stars

This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive

MT4 Trading robot Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way
3 stars

This expert advisor facilitates arbitrage trading between futures and spot instruments, primarily targeting gold and stock indices. Available for MetaTrader 4 and 5, it monitors the price difference between two related symbols against a moving average to identify trade opportunities. The logic includes a noise-filterin

MT4MT5 Trading robot ArbitrageMean reversionGrid High risk
Updated 3 years ago None stated GitHub repository of Gold Futures Spot Arbitrage

Take Profit Oil Arbitrage

by iceandfire1981
1 stars

This MetaTrader 4 expert advisor implements a pairs trading or statistical arbitrage strategy primarily designed for energy commodities like USOIL and UKOIL. It monitors the price differential between two correlated assets over a specific lookback period to identify mean-reversion opportunities. The robot executes simu

MT4 Trading robot ArbitrageMean reversionHedging
Updated 7 years ago None stated GitHub repository of Take Profit Oil Arbitrage

Arbitrage Expert

by wawaw237zz
1 stars

Arbitrage Expert is a MetaTrader 4 expert advisor that focuses on a zone recovery hedging strategy rather than traditional arbitrage. Based on the OGT Zone Recovery system, it manages trades by opening counter-positions within a defined price zone when an initial trade goes into drawdown. The system employs a lot multi

MT4 Trading robot HedgingMartingaleMean reversion High risk
Updated 4 years ago None stated GitHub repository of Arbitrage Expert

More trading robots

Need a broker for MT4?

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

Compare brokers