Higher timeframes set trend context while H4 triggers breakout, bounce, and flat-line magnet scenarios filtered by chikou clearance, obstacle scans, swing fractals, and session hours. Risk controls include a two-times ATR stop loss, optional near-D1 position size cuts, and equity-tiered sizing. Default parameters have not been validated by backtesting, several spec decisions remain provisional, and compilation from the repository is noted as untested or unverified in MetaEditor.
Read from IchimokuGoldH4.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMagic
long
20260711
Magic number (REQ-3.6 / REQ-4.2)
InpSymbols
string
XAUUSD,GOLD,GOLDm#
Symbol list (REQ-7.1/7.2)
InpTenkan
int
9
Tenkan-sen period
InpKijun
int
26
Kijun-sen period (also chikou offset)
InpSenkouB
int
52
Senkou Span B period
SpanBuffersPreShifted
bool
false
Span buffers already plot-shifted?
SessionBarOpenHours
string
12,16
REQ-11.1: broker-time open hours of session H4 bars
EnableSessionFilter
bool
true
REQ-11.6
SessionGateFirst
bool
false
file 11 §3: gate at stage 0 instead of stage 5
ExcludeFriday16Bar
bool
false
Q11.3: skip Friday 16:00 bar (weekend gap risk)
EnableS1
bool
true
REQ-2.4: S1 Full Breakout
EnableS2
bool
true
S2 Kijun Bounce
Show all 40 inputs
Name
Type
Default
Description
EnableS3
bool
true
S3 Tenkan Bounce
EnableS4
bool
true
S4 Cloud Bounce
EnableS5
bool
true
S5 Cloud Breakout
EnableS6Overlay
bool
true
S6 magnet overlay (Q2.4: target selection only)
VerboseScenarioLog
bool
true
REQ-2.8
RejectTouchBuffer
double
0
REQ-2.1: touch buffer, points
PinWickRatio
double
0.5
REQ-2.1: wick >= ratio * range
PinCloseZone
double
0.33
REQ-2.1: close in top fraction of range
ATRPeriod
int
14
ATR(14) on H4 — shared distance unit
FlatTolerance
double
0
REQ-10.1: points, line "unchanged" tolerance
FlatMinBars_Kijun
int
5
REQ-10.1
FlatMinBars_SSB
int
5
REQ-10.1
FlatScanDepth
int
60
REQ-10.1
MaxTenkanStretch
double
2.0
REQ-10.2: ATR multiples
ChikouClearance
double
0.5
REQ-10.5: ATR multiples
ChikouScanBars
int
10
REQ-10.5
MinRoomToMove
double
1.5
REQ-10.7: ATR multiples
ObstacleScanRange
double
6.0
REQ-10.8: ATR multiples
UseHTFSwings
bool
false
REQ-10.9.3: include W1/MN1 swings
AllowNearD1Obstacle
bool
false
REQ-10.10 / Q10.4: downgrade D1 veto to size cut
NearD1SizeFactor
double
0.5
size multiplier when AllowNearD1Obstacle applies
SwingStrength
int
3
REQ-10.14: fractal side bars (3 -> 7-bar fractal)
SwingProminence
double
1.0
REQ-10.15: ATR multiples
SwingScanDepth_H4
int
100
REQ-10.16
SwingScanDepth_D1
int
50
REQ-10.16 (also used for W1/MN1 if enabled)
SwingBreakBuffer
double
0.1
REQ-10.17: ATR multiples
MinMagnetDistance
double
1.0
S6: min magnet distance, ATR
MaxMagnetDistance
double
4.0
S6: max magnet distance, ATR
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone n30dyn4m1c/ichimoku-h4-monthly-aligned 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.
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
This MetaTrader 5 expert advisor specializes in trading Gold (XAUUSD) by targeting volatility during the New York session. It utilizes an Average True Range (ATR) indicator to identify market trends and determine entry levels for limit orders. Risk management includes fixed stop loss parameters and dynamic trailing sto
Black XAU is an automated trading robot for MetaTrader 5, specifically designed for gold. It utilizes a multi-timeframe breakout and retest strategy, identifying trading zones based on initial H4 market structure. Entries are triggered on the M5 timeframe when price retests a confirmed breakout level. The expert adviso
This MetaTrader 5 expert advisor implements a box breakout strategy designed for the foreign exchange market. The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. R
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
Binario is a breakout expert advisor for MetaTrader 4 and 5 that utilizes a price channel constructed from two moving averages of the same period. By default, it uses a 144-period exponential moving average applied to both highs and lows. It enters trades when the price moves outside this band by a predefined pip dista