Inputs Reference
Scalper ships pre-tuned: the strategy's internal parameters are fixed and optimised at the factory, so the only settings you see are the ones that let you tailor risk and behaviour to your own account. This keeps configuration simple and safe — there's nothing to over-optimise.
Inputs are organised into the same three groups you see in the MT5 properties panel.
Quick reference
- The defaults are sensible for most accounts — you can run the EA as-is.
- The two settings that matter most for your account are
RiskPercentandDailyLossLimitPct.
Risk & Position Sizing
Controls how big each trade is.
UsePercentRisk
| Type | bool |
| Default | true |
Master toggle for sizing mode:
true— Lot size is calculated automatically fromRiskPercentand the account balance.false— Lot size is fixed atFixedLot.
RiskPercent
| Type | double |
| Default | 5.0 |
Risk per trade as a percentage of account balance, used when UsePercentRisk = true. The EA sizes each position so that a full stop-out would cost approximately this percentage of the balance. Position size is then automatically capped by MaxLotSize and scaled to fit available margin.
The default is intentionally aggressive
5.0% is a compounding-oriented default. Combined with more than one open position, you can have a meaningful share of your balance at risk at once. This is not a conservative setting — size it down for live capital you can't afford to draw down hard.
Recommended values
- Aggressive / compounding (default): 5.0%
- Balanced live trading: 1.0 – 2.0%
- Prop firm challenges: 0.25 – 1.0% (extra conservative)
FixedLot
| Type | double |
| Default | 0.01 |
Static lot size used when UsePercentRisk = false. The minimum lot on most brokers is 0.01. Use this when you want a constant, predictable trade size instead of balance-based sizing.
MaxLotSize
| Type | double |
| Default | 5.0 |
Hard ceiling on lot size, regardless of what the risk calculation suggests. Acts as a safety cap — for example, if your account grows large enough that the risk percentage would call for 20 lots, this keeps it at 5. Applies in both sizing modes.
Risk Limits
Account-level guardrails that protect you across the trading day.
DailyLossLimitPct
| Type | double |
| Default | 3.0 |
If account equity falls by this percentage from the day's starting balance, the EA stops opening new trades for the rest of the day and clears any resting orders, so nothing can fill you past the cap. Positions already open continue to be managed normally. The counter resets at the start of each new trading day.
Prop firm guidance
Most prop firms enforce a 5% daily loss limit. Setting this to 3% leaves a 2% buffer for floating losses and slippage. Tighten further (e.g. 2%) for extra-conservative challenges.
MaxOpenTrades
| Type | int |
| Default | 2 |
Maximum number of positions this EA instance can hold open at the same time. Lowering this reduces exposure and tail risk.
Lower this to reduce drawdown
Setting MaxOpenTrades = 1 is the cheapest way to cut tail drawdown, with minimal effect on overall returns.
General
Identity and display settings.
MagicOverride
| Type | long |
| Default | 0 |
The magic number identifies which trades belong to this EA instance, so it only manages its own positions.
0(default) — The EA derives a stable magic number automatically from the symbol.- Any non-zero value — Used as the magic number verbatim.
Set distinct non-zero values when you want to run multiple instances on the same symbol (for example, two gold charts with different risk settings) without them managing each other's trades.
ShowDashboard
| Type | bool |
| Default | true |
Renders the on-chart status panel (see How It Works → The On-Chart Dashboard). It shows account, market, and strategy state plus live counters, and refreshes on a one-second timer so it stays current even when the market is closed. Disable to keep the chart clean.
Automatically off in backtests
During a non-visual Strategy Tester run, the dashboard is disabled automatically — there's no chart to draw on, and skipping it keeps backtests fast. It still renders in visual-mode backtests and on live charts.
EnableLogs
| Type | bool |
| Default | true |
Prints event logs to the Experts tab in MT5 (order placements, fills, stop adjustments, and any notices). Safe to leave on in live trading; useful for understanding what the EA is doing and for support requests.
Automatically off in headless backtests
Like the dashboard, logging is suppressed during non-visual tester runs so it doesn't slow backtests down.
Quick Reference Profiles
Default — as shipped
Run the defaults (5% risk, up to 2 open trades). Good for compounding a balance you're comfortable drawing down.
Balanced live trading
RiskPercent = 1.5
MaxOpenTrades = 2
DailyLossLimitPct = 3.0Lower drawdown
RiskPercent = 1.0
MaxOpenTrades = 1
DailyLossLimitPct = 2.0Conservative — Prop firm challenge
UsePercentRisk = true
RiskPercent = 0.5
MaxOpenTrades = 1
DailyLossLimitPct = 2.0Next Steps
- 📘 How It Works — Understand the approach
- 🚀 Getting Started — Installation guide
- 🗒️ Changelog — Version history
- 💬 Get Support — Setup help and questions