ICT SSL Premium Discount 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 a break-even function. It includes a Dollar Cost Averaging (DCA) system with lot multiplication, effectively utilizing martingale scaling to manage losing positions. Risk controls include time-based exits and maximum open bar limits.
Read from ICT_SSL_PremiumDiscount.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpLotSize
double
0.01
Lot Size
InpMagicNumber
int
20250318
Magic Number
InpSlippage
int
10
Max Slippage (points)
InpComment
string
ICT_SSL
Trade Comment
InpLookbackBars
int
2000
Show Last N Bars
InpLeftBars
int
1
Fractal Bars (each side)
InpMaxSwings
int
5
Max Swings to Track
InpShowBSL
bool
true
Detect BSL (Buy-Side Liquidity)
InpShowSSL
bool
true
Detect SSL (Sell-Side Liquidity)
InpColBSL
color
clrMediumSeaGreen
BSL Color
InpColSSL
color
clrCrimson
SSL Color
InpLineWidth
int
1
Line Width
Show all 40 inputs
Name
Type
Default
Description
InpShowSweep
bool
true
Show Sweep Markers on Chart
InpShowPD
bool
true
Show Premium / Discount Zones
InpPDLookback
int
50
Dealing Range Lookback
InpColPrem
color
clrIndianRed
Premium Zone Color
InpColDisc
color
clrMediumSeaGreen
Discount Zone Color
InpShowOTE
bool
true
Show OTE (62%-79%)
InpRequireOTE
bool
false
Require OTE for Entry
InpColOTE
color
clrOrange
OTE Zone Color
InpRRRatio
double
3.0
Risk:Reward Ratio
InpCooldownBars
int
5
Cooldown (bars after trade)
InpOneAtATime
bool
true
One Trade at a Time
InpTimeExit
bool
true
Enable Time-Based Exit
InpMaxBarsOpen
int
5
Max Bars Before Force Close
InpOnlyIfLosing
bool
true
Only Close if NOT Profitable
InpTrailing
bool
true
Enable Trailing Stop
InpTrailStart
double
3.0
Trail Start (price profit)
InpTrailStep
double
1.5
Trail Step (price)
InpBreakEven
bool
true
Enable Break-Even
InpBEStart
double
2.0
Break-Even Start (price profit)
InpBEOffset
double
0.5
Break-Even Offset (lock profit)
InpSLLookback
int
14
SL Structure Lookback (bars)
InpMinSLDist
double
5.0
Min SL Distance (price)
InpMaxSLDist
double
30.0
Max SL Distance (price)
InpSLMethod
ENUM_SL_METHOD
SL_SWEEP_WICK
SL Method
InpSLBuffer
double
0.0
SL Buffer (extra distance to avoid hunt)
InpPendExpiry
int
10
Pending Order Expiry (bars)
InpDCAEnabled
bool
true
Enable DCA
InpDCAMaxOrders
int
3
Max DCA Orders (1-5)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone 26730023-PhamPhuNguyenHung/pinescript-ict 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.
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 Expert Advisor for MetaTrader 5 implements a martingale trading strategy triggered by the Relative Strength Index (RSI). It opens an initial position when RSI reaches overbought or oversold thresholds. If price continues to move against the initial trade, the EA layers additional orders at set point intervals, mul
This MetaTrader 5 expert advisor executes a mean reversion strategy based on price deviation from a Simple Moving Average. It enters short positions when prices rise above the average and long positions when prices fall below. The algorithm utilizes an aggressive grid-based recovery system where both the entry distance
This MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity
This MetaTrader 5 expert advisor utilizes a combination of Bollinger Bands, Relative Strength Index, and Average Directional Index to identify entries. It supports multi-timeframe analysis for trend confirmation and provides optional filters for Average True Range and price action patterns such as hammers. Risk managem
This high-frequency scalping robot for MetaTrader 5 is specifically designed for the gold market. It determines entry points using a combination of EMA trend filters, ADX trend strength, and dynamic RSI levels. To recover from losing positions, the EA utilizes an aggressive martingale grid system with a customizable lo