Terminator
Info
The Terminator is a Expert Advisor for MetaTrader 5 that how it worksthe expert advisor opens positions according to signals taken from various indicators. Required indicators:Indicator 1Indicator 2Indicator 3There are six variants of trade signals:On Indicator 1: When the indicator grows, it allows buying; when it falls, it allows selling.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Terminator
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
How it worksThe expert advisor opens positions according to signals taken from various indicators.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: ao n stochastic - another powerful expert for MetaTrader 5 traders.
How it worksThe expert advisor opens positions according to signals taken from various indicators.
Required indicators:
Also recommended: exp weight oscillator direct - similar expert with strong performance on MetaTrader 5.
Indicator 1
Indicator 2
Indicator 3
There are six variants of trade signals:
On Indicator 1: When the indicator grows, it allows buying; when it falls, it allows selling.
On the Pivot Lines Timezone Indicator: If the price is higher than the pivot level, a buy is allowed; if it is lower, a sell is allowed.
On the Support_and_Resistance Indicator: When the resistance level is crossed upwards, a buy position is opened. If the support level is crossed downwards, a sell position is opened.
On the i_trend and Indicators: When the green line of the i_trend is higher than the red line and raises, and the RSI raises, a buy position is opened. When the green line of the i_trend is lower than the red line and falls, and the RSI falls, a sell position is opened.
On the i_trend, RSI, and Indicators: When the green line of the i_trend indicator is higher than the red line and raises, the main stochastic oscillator is higher than the signal and raises, staying between high and low levels, and the RSI raises, then a buy position is opened. When the green line of the i_trend indicator is lower than the red line and falls, the main stochastic oscillator is lower than the signal and falls, staying between high and low levels, and the RSI falls, then a sell position is opened.
On the i_trend, RSI, Stochastic Indicators: When the green line of the i_trend indicator is higher than the red line and raises, the main stochastic oscillator is higher than the signal and raises, staying between high and low levels, the RSI raises, and the MFI raises, then a buy position is opened. When the green line of the i_trend indicator is lower than the red line and falls, the main stochastic oscillator is lower than the signal and falls, staying between high and low levels, the RSI falls, and the MFI falls, then a sell position is opened.
Initial position volume is equal to the 'lots' variable or calculated proportionally to ready assets (maximumrisk variable when lots=0).
If a position becomes unprofitable, its volume is increased. Volume is increased through one pip step of points from the last deal price in case of a trade signal corresponding to the position direction.
At first, volume increase is performed by multiplying the lot by 2. Then, the number of deals with a lot multiplier factor of 2 is defined by the doublecount variable, after which the multiplier becomes 1.5.
The total number of single sequence deals is defined by the maxcount variable.
Firstly, the position opens with takeprofit. The takeprofit2 variable is used when volume is increased, and the take profit level is calculated from the total position price.
If takeprofit=0 or takeprofit2=0, the initial position or a position with increased volume will be without take profit. In this case, the trailing function (trailingstop variable) must be used.
The last increase in volume is performed by setting the stop loss (stoploss variable). If the stoploss variable value is 0, the stop loss won't be set.
The results of the expert advisor's work are shown in the tester.
Parameters
- trade_on: Allows opening positions.
- lots: Lot size; when set to 0, the maxrr parameter is used.
- maximumrisk: Risk (default value when lots=0).
- stoploss: Stop loss in points; 0 means no stop loss.
- takeprofit: Take profit in points for the initial position.
- takeprofit2: Take profit in points for adding positions.
- maxcount: Maximum number of open positions in one direction; -1 means unlimited.
- doublecount: Number of deals with a lot multiplier of 2; others open with a lot multiplier of 1.5.
- pips: Adding level in points.
- trailing: Trailing stop level; 0 disables the trailing stop.
- shift: Bar on which indicators are checked (0 for forming bar, 1 for the first formed bar).
- reversecondition: Option to reverse buy and sell signals.
- open_pos_based_on: Type of trade signals.
- macd_fastperiod: Period of fast MA MACD.
- macd_slowperiod: Period of slow MA MACD.
- macd_price: MACD price.
- pivot_daystarthour: Hour of day start.
- pivot_daystartminute: Minutes of day start.
- pivot_attachsundtomond: Attach Sunday bars to Monday.
- supres_iperiod: Period of the support_and_resistance indicator.
- it_price: Price type for calculating the difference between price and Bollinger bands.
- it_bbperiod: Period of Bollinger bands (BB).
- it_bbshift: Shift of Bollinger bands (BB).
- it_bbdeviation: Deviation of Bollinger bands (BB).
- it_bbprice: Price of Bollinger bands (BB).
- it_bbline: Used line of Bollinger bands.
- it_bullsbearsperiod: Period of Bulls Bears Power.
- rsi_period: Period of RSI.
- rsi_price: Price of RSI.
- st_kperiod: Period of К stochastic.
- st_dperiod: Period of d stochastic.
- st_speriod: Period of s stochastic.
- st_method: Method of stochastic.
- st_price: Price of stochastic.
- st_upperlevel: Upper level of stochastic.
- st_lowerlevel: Lower level of stochastic.
- mfi_period: Period of MFI.
- mfi_volume: Volume of MFI.
You may also like: Trade Adjustment Panel for MT5 - excellent alternative for expert users on MetaTrader 5.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property version "1.00"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#include <trade/trade.mqh>
#include <trade/symbolinfo.mqh>
#include <trade/dealinfo.mqh>
#include <trade/positioninfo.mqh>
ctrade trade;
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.