MSX Plug And Play Scalper EA
- Experts
- Som Prakash Gehlot
- 버전: 1.20
Pure Triple EMA Alignment Engine + Optional Higher Timeframe Trend Filter
Educational Core Engine of MSX PRO Series
🔹 What Is This EA?
MSX Plug And Play Scalper EA is a FREE educational Expert Advisor that demonstrates the professional Triple EMA alignment engine used inside MSX PRO trading systems.
This version allows traders to:
• Understand structured EMA trend trading
• Learn multi-timeframe filtering logic
• Switch between Aggressive and Conservative modes
• Study how alignment-based engines behave in live markets
It is designed as a simplified structural core of our professional products.
🔷 CORE TRADING ENGINE (How It Works)The EA uses a Triple EMA Alignment Model on the chart timeframe (Lower Timeframe – LTF).
It monitors:
Fast EMA
Medium EMA
Slow EMA
🔵 BUY Condition
Fast EMA > Medium EMA > Slow EMA
(Alignment confirmed on CLOSED candle only)
🔴 SELL Condition
Fast EMA < Medium EMA < Slow EMA
(Alignment confirmed on CLOSED candle only)
🔁 Exit Logic
If Inp_Exit_On_Opposite = true
→ Position closes automatically when opposite alignment forms.
No grid.
No martingale.
No hidden logic.
Pure structure-based trading.
🟢 MODE A – HTF Filter = TRUE (Conservative Mode)
Higher Timeframe acts as a direction filter.
HTF Trend Must Confirm:
• Fast EMA > Slow EMA (for BUY)
• Fast EMA slope confirmed
• Current forming candle aligned with direction
If HTF = BUY → Only BUY trades allowed
If HTF = SELL → Only SELL trades allowed
If HTF not aligned → No trade allowed
This mode:
• Reduces counter-trend trades
• Provides smoother behavior
• Is recommended for conservative traders
🔵 MODE B – HTF Filter = FALSE (Aggressive Mode)
Higher timeframe is ignored completely.
Lower timeframe controls:
• Direction
• Entry
• Exit
Trades open immediately when triple alignment forms.
This mode:
• Produces more trades
• Works well for scalpers
• Suitable for fast-moving markets
Below is a user-friendly explanation of every variable:
🔹 General Settings
Inp_EA_Name
EA identification name shown in Experts tab.
Inp_Magic
Unique magic number to isolate this EA’s trades from other EAs.
Inp_Debug
If TRUE:
• Prints detailed events in Experts tab
• Shows trend changes, entries, exits, margin errors
Recommended:
• TRUE for testing
• FALSE for live stable operation
🔹 Trading Direction Controls
Inp_Allow_Buy
Enable/Disable BUY trades.
Inp_Allow_Sell
Enable/Disable SELL trades.
Allows directional restriction.
Inp_Exit_On_Opposite
If TRUE:
Position closes automatically when opposite triple alignment appears.
If FALSE:
Position remains open until SL or TP.
Inp_One_Trade_Per_Trend
If TRUE:
Prevents re-entry in the same trend direction after SL/TP hit.
Important for scalpers who want:
• Clean structure
• No repeated entries at weak levels
Inp_Use_HTF_Filter
TRUE → Conservative Mode
FALSE → Aggressive Mode
Inp_HTF_TF
Select timeframe for HTF trend detection.
Examples:
• H1
• H4
• M30
User friendly – fully selectable.
Inp_Trend_FastEMA
Fast EMA period for HTF trend detection.
Inp_Trend_SlowEMA
Slow EMA period for HTF trend detection.
Example:
20 & 50 for intraday
50 & 200 for swing style
Inp_Trend_Slope_Lookback
Number of candles used to confirm Fast EMA slope direction.
Higher value:
• Stronger trend confirmation
• Fewer signals
Lower value:
• Faster reaction
• More signals
These EMAs operate on chart timeframe.
Inp_LTF_FastEMA
Fast EMA (entry sensitivity).
Inp_LTF_MidEMA
Medium EMA (structure filter).
Inp_LTF_SlowEMA
Slow EMA (trend anchor).
Example scalping setup:
5 / 8 / 13
Cleaner trend setup:
8 / 21 / 50
Fully user adjustable.
🔷 Risk & Trade ParametersInp_Lot
Fixed lot size.
EA includes:
• Lot normalization
• Broker volume step adjustment
Inp_SL_Points
Stop Loss distance in points.
Inp_TP_Points
Take Profit distance in points.
These are fixed distances in FREE version.
MARKET SAFETY UPGRADETo make MSX Plug And Play Scalper EA safer and more suitable for live market usage, three important capital protection systems have been added:
🛡 1️⃣ Risk-Based Position Sizing
Instead of trading fixed lot size blindly, the EA can now calculate lot size automatically based on account balance and stop loss distance.
✔ Risk is calculated as a percentage of account balance
✔ Automatically adjusts lot size to match stop loss distance
✔ Keeps position sizing proportional to account size
Example:
If Risk = 1% and SL is defined, the EA calculates lot so that only 1% of balance is exposed.
This makes the system:
• Safer for beginners
• More stable for small accounts
• Scalable for larger accounts
🛑 2️⃣ Maximum Drawdown Protection
input double Inp_Max_Drawdown_Percent = 30.0;
This is a global equity protection mechanism.
The EA tracks peak equity and monitors floating drawdown.
If total drawdown reaches the defined percentage:
➡ Trading is automatically locked
➡ No new positions will be opened
➡ Protects account from catastrophic loss
This feature is especially important during:
• High volatility events
• News spikes
• Unstable market phases
📊 3️⃣ Spread Protection Filter
The EA now blocks entries when spread exceeds the defined threshold.
Why this matters:
• Protects against broker spread widening
• Avoids trading during low liquidity
• Reduces entry slippage risk
• Important for scalping strategies
If spread > allowed value → trade is blocked.
🎯 Why These Features Matter✔ Safer for live trading
✔ Suitable for low-capital accounts
✔ Protected against spread spikes
✔ Protected against runaway drawdown
✔ Risk-adaptive instead of fixed lot gambling
This FREE version now includes:
• Core triple EMA alignment engine
• Optional HTF directional filter
• Risk-based lot sizing
• Equity protection
• Spread filtering
• Margin check validation
However:
Advanced portfolio management, dynamic capital control, volatility adaptation and institutional-level risk frameworks are available only inside the MSX PRO commercial systems.
This FREE EA is designed to:
✔ Help traders understand MSX core engine logic
✔ Allow safe experimentation
✔ Serve as entry-level model of our PRO architecture
🔷 What FREE Version Does NOT Include
To maintain product positioning:
This FREE version does NOT include:
✘ ATR dynamic stop system
✘ Advanced trailing engine
✘ Break-even system
✘ Spread intelligent filters
✘ News filters
✘ Volatility filters
✘ Equity protection system
✘ Advanced capital management
All advanced protections are available in:
🔶 MSX PRO Series (Paid / Rental Versions)
🔷 Who Is This EA For?• Beginner traders learning EMA logic
• Intermediate traders testing structure models
• Scalpers wanting simple clean alignment logic
• Traders studying HTF/LTF interaction
XAUUSD – M1 / M5
EURUSD – M1 / M5
Use:
HTF = TRUE for smoother equity
HTF = FALSE for aggressive scalping
Always test on demo before live trading.
🔷 Educational DisclaimerThis software is provided for educational and general trading purposes.
Trading involves risk.
Past performance does not guarantee future results.
🧠 Purpose of This Free EA
This EA is intentionally released as a lite demonstration product.
It allows traders to:
-
Observe how the Triple EMA Alignment Model indicator core engine reacts to market reversals
-
Verify entry/exit timing in live market conditions
-
Confirm alignment with MSX indicator-based strategies
-
Understand the foundation used in MSX PRO / paid / rental Expert Advisors
All advanced logic, including:
-
Capital protection systems
-
Smart pre and post trade filters
-
Volatility controls
-
Session management
-
Advanced money management
are available only in paid /rental MSX PRO versions.
✅ What This EA Is NOT
-
❌ Not a signal service
-
❌ Not a guaranteed profit system
-
❌ Not an automated money-making tool
It is a transparent core-engine showcase, designed to help users make an informed decision before purchasing a professional MSX product.
📌 Final Notes
MSX Plug And Play Scalper EA represents only the basic engine layer of MSX professional trading systems.
Users are encouraged to study its behavior carefully and compare it with MSX indicators before upgrading to a paid version.
🔹 Seller Products & Updates
You can view all products, editions, and updates here:
👉 https://www.mql5.com/en/users/aaspg0090l/seller
❓ Frequently Asked Question:
Do you provide for this EA optimized .set files for specific symbols and timeframes and user RR leval?
Answer:
MetaTrader platforms support hundreds of symbols, multiple timeframes, different brokers, account types, leverage levels, and capital sizes. Because of this wide variability, it is not practically possible to provide optimized .set files for every possible trading configuration.
🔹 FREE / Lite Versions
FREE or Lite versions are intentionally provided as:
-
A functional demonstration of the EA’s core logic
-
A way to test broker compatibility and execution
-
A chance to evaluate the strategy behavior before upgrading with paid/rent
For this reason:
-
FREE versions use default parameters
-
Optimized .set files are not included
-
Personalized configuration support is not provided
This approach follows MQL5 Marketplace norms and ensures transparency for users.
🔹 PRO Versions
PRO versions are designed for serious traders, including:
-
Retail professionals
-
Copy-trading masters
-
Signal providers
-
Funded-account users
-
Scalping, Intraday Trader
PRO versions typically include:
-
Advanced pre-entry and post-entry protection systems
-
Institutional-grade risk, equity, and drawdown controls
-
Per trade max loss tic based kill switch
-
A ready-to-use reference .set file, commonly optimized for:
XAUUSD – M5 timeframe – minimum $500 equity (as a baseline example)
In addition, PRO users may request:
-
One tailored .set file
-
Customized according to their preferred symbol, timeframe, capital size, RR and broker conditions etc.
-
Designed to match their individual trading objectives with one chart limit
🔹 Important Note
Market conditions, broker execution, and volatility change over time.
Therefore, no EA can guarantee that a single .set file will be “best” for all type of trader and forever.
The goal is to provide:
-
A robust and safe trading framework
-
A reliable starting configuration
-
And optional customization support for PRO users
