10pipsOnceADayOppositeLastNHourTrend - MetaTrader 5 Expert




The author of the idea - slack trader , the author of the mq5 code - Balabashka Kong .
10 o'clock every day, contrary to "yesterday's trend".
The author of the idea describes Expert Advisor as follows.
Can you earn 10 points a day? This problem is not new, but very interesting for me as a beginner. As I see it is quite difficult to make a profit of 10 pips in live trading.
I try to do some research so I can earn 10 points a day. This all leads to a "once a day" trading system. I only open one position each day at the beginning of the day. First, trend following positions, then reverse positions, then stop-loss orders, special stop-loss orders, and take-profit orders, and so on...
Finally, I chose an Expert Advisor that opened a position against the "trend" at a specific time every day. What does the trend in this Expert Advisor mean? It's just a price difference within the N root range. As usually happens, after a simple optimization I received an interesting curve.
Her winning trade rate is 6/1, and her winning/losing trade streak is up to 26/2. I added the martingale to have a sound money management system and get a prettier curve :-)
This Expert Advisor has shown profitable results over the past 7 years. The older results would be worse if we used minimum risk bankroll management and instead of fixed lot size optimized over the past two years.
Currency Pair: EURUSD Timeframe: Automatic selection (you can set any)
Position opening: 07:00 CET (Central European Time, + 1 GMT)
Maximum position life: 75600 seconds. = 21 hours Number of hours to check price differences to define "trends": 30 hours
You can change/optimize these variables to get different results:
FIXLOT: If 0, the maximum risk variable will be used to calculate the lot size, otherwise the specified lot size will be used for trading;
MINLOTS: minimum lot size;
MAXLOTS: maximum lot size;
MAXIMUMRISK: Maximum risk if FIXLOT = 0. In this case it is better to use FIXLOT = 0 and MAXIMUMRISK = 0.05 (0.02);
SLIPPAGE: maximum allowed slip.
TRADINGHOUR: position opening time;
HOURSTOCHECKTREND: Number of hours to check price differences to determine "trend";
ORDERMAXAGE: Maximum position lifetime - older positions will be closed.
The EA contains a martingale element: if a position loses money, the lot size of the next position will be multiplied.
FIRSTMULTIPLICATOR: If there is a losing position, multiply by the number of lots;
SECONDMULTIPLICATOR: If there are two losing positions, multiply by the number of lots;
THIRDMULTIPLICATOR: If there are three losing positions, multiply by the number of lots;
Fourth multiplier: if there are four losing positions, multiply by the number of lots;
FIFTHMULTIPLICATOR: If there are five losing positions, multiply by the number of lots.
Stop Loss Trailing Stop Loss Take Profit
What is a legitimate reason to trade like this? Is this just a history of over-optimization without any chance of future success, or is there some logical basis for this trading strategy?
Attachment download
📎 10pipsonceadayoppositelastnhourtrend.mq5 (32.18 KB)
Source: MQL5 #17474
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •