
Quantitative Scalping Trader (QST) – User Guide and Detailed Configuration

Main Features
Multi-symbol
The EA can trade EURUSD, GBPUSD, and USDJPY simultaneously (configurable). Each symbol has a unique Magic Number and specific Stop Loss / Trailing Stop settings.
Indicators Used
RSI – Relative Strength Index
-
RSIPeriod: defines the RSI calculation period (default 15).
-
Use5050RSI: switches between two threshold styles:
-
30/70 (classic): BUY if RSI > 70, SELL if RSI < 30.
-
50/50: open a trade when RSI crosses the 50 midline.
-
⚠️ These thresholds determine exactly when the EA validates an entry condition. Changing these values directly affects the number and timing of trades.
EMA and MACD
-
Fast EMA / Slow EMA: detect the overall trend. Positions are only taken if the trend is confirmed (e.g., Fast EMA > Slow EMA for BUY).
-
MACD: acts as a filter to avoid false signals.
Wait for New Candle
-
WaitForNewBar:
-
true : trade only at the close of a candle.
-
false : trade on every tick, more reactive but more sensitive to market noise.
-
⚠️ This parameter fundamentally changes the EA’s behavior.
Trading Hours
-
EnableTradingHours, TradingStartHour, TradingEndHour: define the hours when the EA is allowed to open positions.
-
SkipLiquidMondayFriday: avoids opening trades during high volatility or low liquidity periods (Monday morning, Friday afternoon).
⚠️ Crucial to limit risk during extreme market movements.
Using % of Capital for Lot Size
-
UsePercentOfCapital: opens positions proportional to the available capital.
-
% of capital: percentage of capital to risk per trade.
-
Account leverage: enter the correct account leverage for accurate lot calculation.
⚠️ Lot size will be automatically calculated according to these parameters.
Note: in this code, the lot size is forced to 0.2, but this calculation is useful if you modify the code to enable % of capital.
Stop Loss and Trailing
-
SL configurable per symbol.
-
Trailing Start / Step: define when the SL starts following the market and by how many steps it moves.
-
Breakeven: can secure the position once a minimum profit is reached.
Risk Management
-
Limits the number of positions per symbol according to RiskLevel (Low / Medium / High).
-
Automatically checks available margin before opening a trade.
-
Respects broker volume limits.
For any questions or support, you can contact the author on MQL5.