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.
Smart Money Concepts structure and order block detection
Confirmation market entry or zone edge limit entry modes
Multi-symbol trading from a single chart
Percentage risk lot sizing with ATR stop bounds
Daily loss limit, spread filter, and position caps
Read from CastimofxSMC.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpSymbols
string
Symbols, comma separated (empty = this chart)
InpSuffix
string
Broker suffix added to each symbol (e.g. m)
InpTF
ENUM_TIMEFRAMES
PERIOD_M15
Entry timeframe
InpHTF
ENUM_TIMEFRAMES
PERIOD_H4
Trend filter timeframe (CURRENT = off)
InpSwingLen
int
3
Swing length (bars each side)
InpObLookback
int
5
Order-block search (bars)
InpHistoryBars
int
1500
Bars analysed
InpEntry
ENUM_CFX_ENTRY
CFX_CONFIRM
Entry type
InpRR
double
3.0
Risk : reward
InpChochOnly
bool
false
Only CHoCH breaks (reversals)
InpSweepOnly
bool
false
Only breaks that swept liquidity first
InpDiscountOnly
bool
false
Zone mode: buy only in discount / sell only in premium
Show all 34 inputs
Name
Type
Default
Description
InpSlBufferAtr
double
0.1
Stop buffer beyond zone (x ATR14)
InpMinStopAtr
double
0.3
Skip if stop smaller than (x ATR14)
InpMaxStopAtr
double
4.0
Skip if stop bigger than (x ATR14)
InpExpiryBars
int
96
Zone mode: cancel unfilled order after (bars)
InpStartHour
int
0
Trade from hour (server time)
InpEndHour
int
24
Trade until hour (server time)
InpRiskPct
double
0.5
Risk per trade (% of balance)
InpMinLotMaxRisk
double
2.0
If min lot risks more than the above, still trade it up to this %
InpMaxPosSymbol
int
3
Max open trades per symbol
InpMaxPosTotal
int
6
Max open trades in total
InpMaxDailyLoss
double
3.0
Stop new trades after losing this % today
InpMaxTradesDay
int
20
Max new trades per day (all symbols)
InpMaxSpreadPct
double
20.0
Skip if spread > this % of the stop distance
InpMagic
ulong
20251117
Magic number
InpDraw
bool
true
Draw on chart
InpDrawBars
int
400
Draw objects from the last N bars
InpDemandColor
color
C'0,105,75'
Demand zone
InpSupplyColor
color
C'130,35,35'
Supply zone
InpMitigColor
color
C'70,70,70'
Touched zone
InpBullColor
color
C'8,153,129'
Bullish structure
InpBearColor
color
C'242,54,69'
Bearish structure
InpLevelColor
color
clrSilver
Key levels
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone stephenwisdom2018-rgb/Castimofx from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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