Case Studies: Expert Advisors & Indicators
Real code snippets and brief testing results from completed projects.
Breakout EA
MT5 / MQL5A morning-range breakout EA with an ATR filter and dynamic lot sizing based on account balance.
Profit factor of 1.82 on EURUSD H1 over two years
RSI Divergence
TradingView / Pine ScriptAn RSI divergence indicator that marks up price and oscillator lines, with alerts and webhook support.
64% signal accuracy on the daily timeframe in backtests
Grid Scalper
Binance / PythonA grid bot for the Binance spot market with order repositioning, averaging, and an emergency stop.
Consistent results in ranging markets, with drawdown below 8%
breakout_ea.mq5
//--- Breakout of Asian range input int AsianStart = 0; input int AsianEnd = 8; input double RiskPct = 1.0; void OnTick() { double high = GetAsianHigh(AsianStart, AsianEnd); double low = GetAsianLow(AsianStart, AsianEnd); double atr = iATR(_Symbol, PERIOD_CURRENT, 14); if(Close[0] > high + atr * 0.2) OpenPosition(ORDER_TYPE_BUY, RiskPct); else if(Close[0] < low - atr * 0.2) OpenPosition(ORDER_TYPE_SELL, RiskPct); }
rsi_divergence.pine
//@version=5 indicator("RSI Divergence", overlay=true) rsi = ta.rsi(close, 14) pivotHigh = ta.pivothigh(5, 5) pivotLow = ta.pivotlow(5, 5) plotshape(pivotHigh && rsi < ta.valuewhen(pivotHigh, rsi, 1), style=shape.triangledown, location=location.abovebar, color=color.red, title="Bearish Div")