The Lossless Moving Average Metatrader 4 Forex Robot is an expert advisor that initiates buy and sell positions at the crossing of the fast and slow moving averages indicator.
Positions can only be exited/close if a reversal signal takes effect.
Our example is the EURUSD 1 Hour chart, every tick, from 1.09.2015 to 8.01.2016.
However, if the function of “outstaying losses” is enabled, the robot will not exit the positions that are in the red using a reverse signal, instead it’ll open new trades.
In the face of this, the expert advisor moves the stop loss orders of those unprofitable positions to their opening prices.
The “Maximum deals” inputs variable limits the maximum amount of opened trades that can take place during the outstaying mode.
Strategy Tester Report
Find below the Lossless MA forex robot strategy tester report for the EUR/USD forex pair on the 1-Hour chart.
The EA made a total profit of $141.98 from a total of 54 trades. The largest winning trade generated $33.02 in profits, while the largest losing trade generated a loss of-$17.95.
Bars in test: 7860462 ticks modelled
Initial deposit: $10000.00
Total net profit: $141.98
Total trades: 54
Largest profit trade: $33.02
Largest loss trade: -$17.95
Consecutive wins: 26
Consecutive losses: 3
MT4 Forex Robot Characteristics
Currency pairs: Any
Platform: Metatrader 4
Type: Expert advisor
Input Parameters: Slippage (in pips), Fast MA, Slow MA, MA Shift, Maximum deals, Magic number, Close losses, Lot size
Time frames: 1-Minute, 5-Minutes, 15-Minutes, 30-Minutes, 1-Hour, 4-Hours, 1-Day, 1-Week, 1-Month
Copy and paste the lossless_ma.mq4 into the MQL4 Experts folder of the Metatrader 4 trading platform.
You can access this folder from the top menu as follows:
File > Open Data Folder > MQL4 > Experts (paste here)