Simple Moving Average with Hedging

Job finished

Execution time 3 days
Feedback from employee
Good and patient client.
Feedback from customer
Totally happy with the service.

Specification


  • Buy trade based on close price candle over 50 period SMA, with TP 80 pips and SL 40 pips, and lot size 0.1.
  • Sell trade based on close price candle below 50 period SMA, with TP 80 pips and SL 40 pips, and lot size 0.1. 
  • Hedge begin, if the current Buy trade fall below or equal to 30 pips (the market is change in direction to downtrend), then enter a Sell trade with TP 80 pips and SL 40 pips, with double the lot size to 0.2. The same thing would happen if the current trade is the Sell trade (the market going up to 30 pips, enter a buy trade with same TP and SL).
  • The hedge would flip back and forth continuously between buy and sell trade and with each iteration increase the lot size by multiple of 2. For example, first trade was a buy trade with lot size of 0.1, second trade would be sell trade with lot size of 0.2, third trade would be buy trade with lot size of 0.4, and there so on until the last trade for this hedge, for example the fifth trade (lot size of 0.16).  The hedge stop only when the take profit hit or the last trade on the hedge, for this example would be the fifth trade hit. Once the hedge trade stop, the program would once again look for another potential trade with lot size start over again.
  • Please include the date and time filter too. For example, I would only like to open trade for EUR/USD from Monday to Friday and from 8AM - 1PM. The tweak to this time filter is that if once the hedge trade begin, and by around 1PM reached, the hedge would still continue until the hedge stop (so this kind of ignore the time filter for this case), which is only stop if the Take Profit trade is hit or last trade on the hedge is reach. 
  • I need a stable run code because I would run test on multiple pairs and timeframes.


Responded

1
Developer 1
Rating
(3)
Projects
4
0%
Arbitration
2
0% / 100%
Overdue
1
25%
Free
2
Developer 2
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
3
Developer 3
Rating
(75)
Projects
80
6%
Arbitration
46
11% / 54%
Overdue
7
9%
Working
4
Developer 4
Rating
(636)
Projects
1007
47%
Arbitration
33
36% / 36%
Overdue
99
10%
Working
Published: 6 codes
5
Developer 5
Rating
(3)
Projects
3
0%
Arbitration
1
0% / 100%
Overdue
1
33%
Free
6
Developer 6
Rating
(51)
Projects
71
37%
Arbitration
4
25% / 75%
Overdue
1
1%
Free
Published: 1 code
7
Developer 7
Rating
(5)
Projects
6
33%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(8)
Projects
11
18%
Arbitration
8
38% / 38%
Overdue
1
9%
Free
9
Developer 9
Rating
(37)
Projects
59
27%
Arbitration
26
19% / 54%
Overdue
10
17%
Working
Published: 1 code
10
Developer 10
Rating
(2346)
Projects
2951
63%
Arbitration
125
44% / 26%
Overdue
429
15%
Free
11
Developer 11
Rating
(47)
Projects
67
37%
Arbitration
5
40% / 40%
Overdue
1
1%
Free
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 - 150 USD
Deadline
from 1 to 10 day(s)