Persistent Anti is a technical expert advisor for MetaTrader 4 and 5 that attempts to exploit the statistical persistence or anti-persistence of price trends.
Persistent Anti analyzes a user-defined number of historical candles to determine if the market is currently repeating or reversing its previous directional movements. The robot then enters trades based on these findings, often taking a contrarian stance to anticipate reversals. It features fixed lot sizing or optional money management and allows users to reverse the logic entirely. Note that the EA lacks traditional stop loss and take profit parameters in its primary configuration.
Read from PersistentAnti.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
N
int
10
N: How many bars to lookup to detect (anti-)persistence?
Ratio
double
0.66
Ratio: How big should be the share of (anti-)persistent bars?
Reverse
bool
true
Reverse: If true, will trade inversely to calculated persistence data.
Lots
double
0.1
Lots: Basic lot size
MM
bool
false
MM: Use money management?
Slippage
int
100
Slippage: Tolerated slippage in points
MaxPositionSize
double
5.0
MaxPositionSize: Maximum size to use
OrderCommentary
string
PersisteneceAnti
Magic
int
2013041812
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/PersistentAnti from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
3Copy the filesCopy the .mq4 / .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
An automated MetaTrader 5 expert advisor that executes a bi-directional grid trading strategy. It uses the Average True Range (ATR) indicator to dynamically calculate grid spacing, allowing the system to adapt to current market volatility. The robot supports neutral, bullish, and bearish modes. It includes risk managem
This MetaTrader 5 expert advisor serves as an educational example from a book on MQL5 programming. It implements a versatile trading system that can be configured to use moving average crossovers, Relative Strength Index levels, or both indicators combined for trade entries. The EA manages risk with user-defined stop l
This MetaTrader 4 expert advisor is a scalper designed for the five-minute timeframe across several Forex pairs. It utilizes three strategies based on overbought and oversold market conditions to execute trades. Risk management features include a fixed hard stop loss, a virtual take profit and stop loss derived from an
This expert advisor for MetaTrader 4 focuses on gold trading using daily price extremes and moving averages. It calculates the 7-day Simple Moving Average and identifies the highest price points from the previous five trading days to determine market direction. The EA executes its logic on a five-second timer interval
Spike Trader is a price action robot for MetaTrader 4 and 5 that identifies price spikes to trade market reversals. It monitors candle highs or lows relative to preceding bars and requires a specific percentage price jump and candle close position to trigger an entry. The EA enters trades in the opposite direction of t