An EA advisor based on time lapse strategy with counter trading

Job finished

Execution time 20 hours
Feedback from customer
The best developer I have ever worked with, coded and implemented my strategy the first time correctly and within hours. Highly recommended.
Feedback from employee
Excellent client. Clear specification, responsive communication, and thorough testing. Would gladly work with again.

Specification

Please read the strategy very carefully and make sure to understand it before offering coding services. I also would insist on a manually coded EA, not an AI coded EA. 

Jumping EA

 

MT5 EA (with Deriv as broker) with the following strategy:

 

Inputs:

-          Lot size: minimum lot size that can be entered is => 0,001

-          Time (“T”) to wait to consider next trades from initial trade entry and potential subsequent trades: minimum => 1 (i.e. 1 minute)

-          Stop Loss (“SL”) percentage for total loss of all open trades combined: 10 (i.e. 10%) of equity available, meaning that if the total loss amount of all trades is equal to this percentage of equity available, all trades will close.

-          Take Profit (“TP”) percentage for total profit of all open trades open in a trade cycle combined: 1 (i.e. 1%) of equity available, meaning that if the total profit amount of all trades is equal to this percentage of equity available, all trades will close.

 

Strategy:

 

1.       EA will evaluate the first 1M candle to determine the trade strength direction. If the trade strength is bullish, open a Buy trade with the Lot Size input. If the trade strength is bearish, open a Sell trade with the Lot Size input.

2.       Wait for the amount of minute/s (“T”) that was provided as input to determine if the initial trade is in profit.

2.1. If, after (“T”) time, the initial trade is in profit (any profit), close the trade.

2.2. If at any time DURING (“T”) TIME the initial trade is in a loss and the loss is => than SL, close the trade.

2.3. If, after (“T”) time, the initial trade is in a loss and the loss is < than “SL” percentage at the end of the “T” period, open a counter trade in the opposite direction and reset “T” time period for combined trades. The lot size of the counter trade must be calculated as detailed per the Counter trade Lot Size criteria.

 

3.       If a counter trade is opened by Point 2.3.:

3.1. When initial and counter trade is open, if after (“T”) time combined trades total are in profit, close all trades.

3.2. When initial and counter trade is open, if at any time DURING (“T”) TIME the combined trades are in a loss and the loss is => than SL, close all trades.

3.3. When initial and counter trade is open, if after (“T”) time, the combined trades are in a loss and the loss is < than “SL” percentage at the end of the “T” period, open another counter trade in the opposite direction and reset “T” time period for combined trades. The lot size of the counter trade must be calculated as detailed per the Counter trade Lot Size criteria.

 

4.       If after “T” time “TP” is not achieved, repeat Point 3 conditions, whichever is applicable, to continue opening counter trades until one of the sub-conditions (3.1. – 3.3.) are met.

5.       When all trades in a cycle, either with an initial trade or with counter trades, are closed, initiate new trade starting from Point 1.

Counter trade Lot Size calculation criteria – Initial Lot Size for the first trade will be as per input. Every counter trade lot size will be calculated utilizing half of the amount of pips between the previous entry and the new counter entry position, as the amount of pips to be utilized to the profit side of the new counter entry as TP position with profit as per “TP” input. Thus, utilize the new “TP” position, and taking in consideration any open trades within the trade cycle, to determine the Lot Size of the new counter trade to achieve overall “TP” profit.

For example:

If the first counter trade is activated at 120 pips from initial trade entry position, the new “TP” will be set at 60 pips to the profit direction of the counter trade position and the lot size for the counter trade will be determined to achieve that profit, taking in consideration the negative effect of the entry trade.

Then, if no stops were activated and a 2nd counter trade needs to be opened, EA will consider the amount of pips again between the first counter trade and the new 2nd counter trade position. If that is i.e. 90 pips, the new “TP” will be set at 45 pips to the profit direction of the new counter trade position and the lot size for the new counter trade will be determined to achieve that profit, taking in consideration the effects of all open trades.

Then again, if no stops were activated and a 3rd counter trade needs to be opened, EA will consider the amount of pips again between the second counter trade and the new 3rd counter trade position. If that is i.e. 150 pips, the new “TP” will be set at 75 pips to the profit direction of the new counter trade position and the lot size for the new counter trade will be determined to achieve that profit, taking in consideration the effects of all open trades.

Repeating so forth….., until trade cycle terminates with either SL or TP


Files:

JPG
Jumping_EA.jpg
376.4 Kb

Responded

1
Developer 1
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
2
Developer 2
Rating
(329)
Projects
515
19%
Arbitration
35
46% / 31%
Overdue
34
7%
Working
3
Developer 3
Rating
(390)
Projects
416
30%
Arbitration
74
19% / 72%
Overdue
52
13%
Working
4
Developer 4
Rating
(510)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Working
Published: 1 article, 6 codes
5
Developer 5
Rating
(258)
Projects
269
29%
Arbitration
1
100% / 0%
Overdue
3
1%
Working
Published: 2 codes
6
Developer 6
Rating
(23)
Projects
34
53%
Arbitration
1
100% / 0%
Overdue
1
3%
Free
7
Developer 7
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
8
Developer 8
Rating
(52)
Projects
63
40%
Arbitration
15
27% / 60%
Overdue
1
2%
Working
9
Developer 9
Rating
(43)
Projects
63
24%
Arbitration
10
30% / 50%
Overdue
10
16%
Free
10
Developer 10
Rating
(18)
Projects
22
18%
Arbitration
8
38% / 38%
Overdue
3
14%
Loaded
Published: 1 code
11
Developer 11
Rating
(2)
Projects
3
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
1
50%
Free
Published: 4 codes
Similar orders
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Mashiri 50 - 10000 USD
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
Cerco uno sviluppatore MQL5 esperto per sviluppare da zero un Expert Advisor completamente nuovo per XAUUSD su MT5. Non desidero un semplice Expert Advisor basato su indicatori fissi. Desidero un sistema di trading dinamico e adattivo, in grado di adattare il proprio comportamento alle mutevoli condizioni di mercato di XAUUSD. Lo sviluppatore dovrebbe essere libero di combinare qualsiasi tecnica ritenuta opportuna
I am looking for a Senior MQL5 Developer to create a new MetaTrader 5 Expert Advisor from scratch. I will provide a complete Requirements Specification containing objective entry, exit and risk-management rules. This is not a request to copy or decompile an existing product. Project requirements: Clean and modular MQL5 source code. Exact implementation of the supplied strategy. One signal evaluation per configured

Project information

Budget
100+ USD
Deadline
to 3 day(s)