Trading robot · MT5

Castimofx

by stephenwisdom2018-rgb

Castimofx is a MetaTrader 5 expert advisor that automates Smart Money Concepts trading across one or multiple symbols from a single chart.

High risk

GitHub stars1
Forks0
Last update2 days ago22 Nov 2026
LicenceNone stated

Overview

Castimofx detects swing pivots, breaks of structure, changes of character, order blocks, and liquidity sweeps, entering either on break confirmation or via limit orders at supply and demand zone edges. Stop losses are placed beyond the order block with an ATR-based buffer, and take profits use a configurable risk-to-reward ratio. Risk controls include percentage-based lot sizing, ATR stop bounds, spread filtering, maximum open position caps, and a daily loss limit. Note that the repository also includes a separate grid EA file.

Details

Author

stephenwisdom2018-rgb on GitHub

Type

Trading robot

Markets

Forex, Gold

Timeframes

M15-H1, H4 and above

Risk Profile

  • Opens a grid of orders: exposure builds up in a trend

Input Parameters

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

NameTypeDefaultDescription
InpSymbolsstringSymbols, comma separated (empty = this chart)
InpSuffixstringBroker suffix added to each symbol (e.g. m)
InpTFENUM_TIMEFRAMESPERIOD_M15Entry timeframe
InpHTFENUM_TIMEFRAMESPERIOD_H4Trend filter timeframe (CURRENT = off)
InpSwingLenint3Swing length (bars each side)
InpObLookbackint5Order-block search (bars)
InpHistoryBarsint1500Bars analysed
InpEntryENUM_CFX_ENTRYCFX_CONFIRMEntry type
InpRRdouble3.0Risk : reward
InpChochOnlyboolfalseOnly CHoCH breaks (reversals)
InpSweepOnlyboolfalseOnly breaks that swept liquidity first
InpDiscountOnlyboolfalseZone mode: buy only in discount / sell only in premium
Show all 34 inputs
NameTypeDefaultDescription
InpSlBufferAtrdouble0.1Stop buffer beyond zone (x ATR14)
InpMinStopAtrdouble0.3Skip if stop smaller than (x ATR14)
InpMaxStopAtrdouble4.0Skip if stop bigger than (x ATR14)
InpExpiryBarsint96Zone mode: cancel unfilled order after (bars)
InpStartHourint0Trade from hour (server time)
InpEndHourint24Trade until hour (server time)
InpRiskPctdouble0.5Risk per trade (% of balance)
InpMinLotMaxRiskdouble2.0If min lot risks more than the above, still trade it up to this %
InpMaxPosSymbolint3Max open trades per symbol
InpMaxPosTotalint6Max open trades in total
InpMaxDailyLossdouble3.0Stop new trades after losing this % today
InpMaxTradesDayint20Max new trades per day (all symbols)
InpMaxSpreadPctdouble20.0Skip if spread > this % of the stop distance
InpMagiculong20251117Magic number
InpDrawbooltrueDraw on chart
InpDrawBarsint400Draw objects from the last N bars
InpDemandColorcolorC'0,105,75'Demand zone
InpSupplyColorcolorC'130,35,35'Supply zone
InpMitigColorcolorC'70,70,70'Touched zone
InpBullColorcolorC'8,153,129'Bullish structure
InpBearColorcolorC'242,54,69'Bearish structure
InpLevelColorcolorclrSilverKey levels

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone stephenwisdom2018-rgb/Castimofx 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

10 stars

This MetaTrader 5 expert advisor automates trading based on Smart Money Concepts and Order Block identification. It analyzes price action across multiple timeframes, utilizing higher timeframe data for trend context and lower timeframes for entries. The system includes trade management tools such as break-even triggers

MT5 Trading robot SMC / ICT / price actionGrid High risk

Fibonacci ICT EA

by Shifrozy
2 stars

Fibonacci ICT EA for MetaTrader 5 combines institutional price action concepts with Fibonacci retracement levels. It identifies higher timeframe trends and enters on pullbacks to specific golden zones using confirmations like Break of Structure and Fair Value Gaps. The system includes robust risk management such as per

MT5 Trading robot SMC / ICT / price actionIndicator crossoverMean reversion High risk
Updated 2 months ago None stated GitHub repository of Fibonacci ICT EA

SnD SnR Scalping

by Adirach08
2 stars

This MetaTrader 5 expert advisor executes trades based on supply and demand zones combined with support and resistance levels. It performs multi-timeframe analysis across H1 and M5 charts to identify entry points. The robot utilizes price action patterns like double tops and head-and-shoulders for confirmation. Risk is

MT5 Trading robot SMC / ICT / price actionScalpingGrid High risk
Updated 1 year ago None stated GitHub repository of SnD SnR Scalping

ICT SSL Premium Discount

by 26730023-PhamPhuNguyenHung
2 stars

This MetaTrader 5 expert advisor implements Smart Money Concepts (SMC) by identifying liquidity sweeps and premium or discount zones. It detects buy-side and sell-side liquidity levels, looking for price sweeps followed by retest entries. The robot manages trades using a fixed risk-to-reward ratio, trailing stops, and

MT5 Trading robot SMC / ICT / price actionMartingaleGrid High risk
Updated 8 months ago None stated GitHub repository of ICT SSL Premium Discount

Tip Top AI

by sournk
1 stars

Tip Top AI is a price action robot for MetaTrader 4 and MetaTrader 5 that uses a proprietary candle tail length algorithm to identify market entries. The strategy calculates the average size of historical bars and monitors current candles for specific wick-to-body ratios. It enters trades when wicks exceed the body siz

MT4MT5 Trading robot SMC / ICT / price actionGridHedging High risk
Updated 3 years ago None stated GitHub repository of Tip Top AI

RapidPass EA

by jonahgrigoryan
1 stars

RapidPass EA (RPEA) is an MT5 trading robot designed specifically for passing prop firm challenges. It utilizes a hybrid ensemble architecture combining Burst-Weighted Imbalance with Session Confluence (BWISC) and mean-reversion strategies. The EA incorporates machine learning through Q-learning and contextual bandits

MT5 Trading robot SMC / ICT / price actionMean reversionAI / machine learning High risk
Updated 8 months ago None stated GitHub repository of RapidPass EA

More gold EAs

Related on ForexR

Need a Broker for MT5?

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

Compare MT5 brokers