Trading robot · MT4

Bot Trend Line

by thanhntt89

Bot Trend Line is an automated trading tool for MetaTrader 4 that executes orders based on price interactions with trendlines.

GitHub stars2
Forks0
Last update4 years ago5 Jun 2022
LicenceNone stated

Overview

The expert advisor monitors lines to trigger market or pending orders when specific price conditions are met. It manages risk through a fixed risk-per-deal setting and includes account-level safeguards like maximum daily loss and minimum daily profit limits. For trade management, the system offers automatic breakeven functionality and a moving stop loss that can be adjusted based on candlestick patterns. The repository contains multiple versions but provides minimal documentation.

Details

Author

thanhntt89 on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Breakout, SMC / ICT / price action

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 BotTrendLine.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
SettingGeneralstring>>Setting General<<
RiskPerDealdouble20Risk_Per_Deal
WinRiskFactordouble3Win/Risk factor F=TP/SL
MaxLotAllDEALdouble2Max_Lot_ALL_DEAL
MaxRiskPerDaydouble-100Max_Risk_per_Day
MinProfitPerDaydouble100Min_Profit_per_Day
SettingTradingTypestring>>Setting Trading Time Frame<<
TradingTimeFrameENUM_TIMEFRAMESPERIOD_H4Trading time frame
SettingTradingModestring>>Setting Trading Mode<<
TradingTypeENUM_TRADING_TYPESetTrendTrading Type
SettingTradingTypeAutostring>>Setting Trading Position<<
MarketTrendENUM_POSITION_TYPELongAndShortSet market trend
Show all 22 inputs
NameTypeDefaultDescription
SettingOpenOrderTypestring>>Setting Open Order Type<<
OpenOrderTypeENUM_ORDER_TYPESOrderTypeMarketOpen order type
SettingFiboLevelstring>>Setting OpenOrderType: OrderTypeLimit / OrderTypeMarket<<Set fibo(1-100) using for OpenOrderType: OrderTypeStop / OrderTypeMarket (waiting for fibo)
FiboLeveldouble23.8
SettingBreakEventstring>>Setting Break Event<<
IsSetBreakEventbooltrueSet break event
SettingMovingSotpLossstring>>Setting moving stop loss<<
IsMovingStopLossbooltrueSet moving stopLoss
StopLossMinProfitsdouble20Min profit to move stoploss
IsUsedCandlePattenMovingStopLossbooltrueUsing candle patten to moving stoploss

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone thanhntt89/Forex-MQL4-BotTrendLine 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

Mad Pound Profits

by Syakyr
16 stars

Mad Pound Profits is a MetaTrader 4 expert advisor that automates trading based on structural breakouts and price action. The system utilizes time-specific analysis windows throughout the day to identify entry opportunities. It incorporates technical elements such as Fibonacci levels, momentum indicators, and mean reve

MT4 Trading robot BreakoutSMC / ICT / price actionMartingale High risk Archived
Updated 7 years ago None stated GitHub repository of Mad Pound Profits

GenX Silver

by HERO-FIIFI
1 stars

GenX Silver is an automated trading robot for MetaTrader 4 that executes trades based on specific time-based liquidity windows. It targets the London open and two separate New York sessions, aligning with Silver Bullet strategy concepts. The expert advisor allows users to define trading volumes and utilizes a fixed ris

MT4 Trading robot SMC / ICT / price actionBreakout
Updated 1 year ago None stated GitHub repository of GenX Silver

Trading Dong

by wesrambi
1 stars

Trading Dong is an automated MetaTrader 4 expert advisor developed as an academic capstone project. It analyzes market prices and executes trades based on a combination of three methodologies: Dominant Break, Supply and Demand zones, and Support and Resistance levels. The system includes visual indicators for drawing a

MT4 Trading robot SMC / ICT / price actionBreakout
Updated 2 years ago None stated GitHub repository of Trading Dong

Trading Dong HKI

by wesrambi
1 stars

This MetaTrader 4 expert advisor automates trading using a combination of support and resistance levels, Fibonacci retracements, and Marubozu candlestick patterns. It calculates and visualizes pivot points, support zones, and resistance zones across daily, weekly, and monthly timeframes. The robot identifies entries ba

MT4 Trading robot SMC / ICT / price actionBreakout
Updated 3 years ago None stated GitHub repository of Trading Dong HKI

Liquidity Scalper

by torOxO
1 stars

Liquidity Scalper is an automated expert advisor for XAUUSD (Gold) on MetaTrader 4 and 5. It executes trades based on institutional order flow and Smart Money Concepts, specifically targeting liquidity sweeps followed by market displacement. The system identifies order blocks and enters on either retests or momentum-ba

MT4MT5 Trading robot SMC / ICT / price actionScalpingBreakout
Updated 7 months ago None stated GitHub repository of Liquidity Scalper

Prop Firm EA Fleet

by cgemise971
20 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet

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