Signaltest
Download scriptThis script is an automated trading scanner designed for the MetaTrader 4 platform. Its primary purpose is to monitor market conditions and execute trades based on specific technical indicators. Below is a non-technical breakdown of how the logic functions:
Core Trading Logic
The system operates by checking the market every time a new price candle forms. It focuses on identifying high-probability entry points using a "Moving Average Crossover" strategy.
When the software identifies a crossover between a "Fast" moving average (which reacts quickly to price changes) and a "Slow" moving average (which reflects long-term trends), it triggers a trade signal. This is a classic method used to determine when momentum is shifting in either an upward or downward direction.
Execution Process
Once the software detects a valid signal from the moving averages, it follows these steps:
- Direction Identification: The script automatically determines whether to "Buy" or "Sell" by comparing the calculated Take Profit (TP) and Stop Loss (SL) levels. If the target profit is higher than the stop loss, it initiates a Buy order; otherwise, it initiates a Sell order.
- Order Placement: It automatically calculates the correct market price (Ask for buys, Bid for sells) and sends the order to the broker with a predefined lot size.
- Risk Management: Every trade is launched with specific safety boundaries—a Stop Loss to limit potential losses and a Take Profit to secure gains.
Advanced Indicator Integration
While the primary execution is driven by moving averages, the script includes a sophisticated framework for several other major technical indicators. These are available as modular "signals" within the system:
- Momentum & RSI: Used to measure the speed of price movements and identify "overbought" or "oversold" conditions.
- MACD: Helps in identifying changes in the strength, direction, and momentum of a trend.
- Bollinger Bands: Provides a visual representation of market volatility, helping the system understand if price movement is reaching an extreme.
Performance Monitoring
The script features a built-in diagnostic tool. Upon starting, it calculates and prints out a performance summary based on historical data, showing the success rate of the signals, the total points gained, and any consecutive losses encountered. This allows users to see how the logic has performed before relying on it for live trading.
Key User Controls
The logic is highly customizable through several input parameters:
- Sensitivity: You can adjust the speeds of the Moving Averages (Fast vs. Slow).
- Thresholds: You can set specific levels for RSI and Momentum to filter out "noisy" signals.
- Trade Parameters: Users can manually define the lot sizes, profit targets, and risk limits to suit different account sizes.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | S c a n n e r . m q 4 |
/ / | C o p y r i g h t 2 0 2 1 , M e t a Q u o t e s S o f t w a r e C o r p . |
/ / | h t t p s : / / w w w . m q l 5 . c o m |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "