Need a Hedging bots that would close all related orders when the sum of all open orders and hedge reaches the stated take profit

Specifiche

I need a bot that would buy or sell, then open a hedge if the trade is losing  

Create a hedging Expert Advisor (EA) in MQL5 for MetaTrader 5, which persistently opens counteracting trades based on the outlined logic, with features that manage the initiation and oversight of these trades, adhering to the defined multipliers for position sizes. The EA will terminate all trades once it achieves a collective take profit target.

Design of the Hedging EA:

1. Initialization: Establish initial settings, the base lot size, profit targets, trade type and the multiplier for escalating trades.

  • Two different sort of inputs for multipliers: first multiplier and subsequent multiplier
  • The hedging trades would be pending orders added one by one, created as soon as the previous one is traded,. so we only need to have one pending order at a time

2. Opening Initial Trades: Execute an opening buy or sell order according to the strategy's guidelines.

3. Hedging Logic: - If the first trade is a buy, then the initial hedge will be a sell. following hedges will switch directions (sell after buy, buy after sell), with the lot size of each new hedge doubling that of the one before.

  • If the first trade reaches tp, close and start all over again in the direction of the win
  • If the first trade reaches hedge distance, trigger a new trade in the opposite direction with the first multplier

4. Monitoring for Take Profit: - Constantly track the aggregate of all open trades. - Liquidate all positions when the total profit meets the pre-set take profit threshold.

5. Out of Margin option (Enable/Disable): Average all profitable vs losing trades and close them. - restart hedge on the remaining losing trade as per step 2

6. Need a trade panel for to show all the positions and balances.


Input

  • Lots size
  • Overall take Profit (Amount)
  • Trade type: Buy/Sell
  • Magic Number
  • Hedge Distance (Amount)
  • First Trade Multipliers
  • Subsequent Multipliers
  • <:Display Panel Settings:>

Kindest Regards



File:

PNG
hedging.png
122.0 Kb

Con risposta

1
Sviluppatore 1
Valutazioni
(62)
Progetti
90
29%
Arbitraggio
24
13% / 58%
In ritardo
7
8%
In elaborazione
2
Sviluppatore 2
Valutazioni
(213)
Progetti
286
47%
Arbitraggio
27
59% / 37%
In ritardo
36
13%
Gratuito
3
Sviluppatore 3
Valutazioni
(258)
Progetti
267
30%
Arbitraggio
0
In ritardo
3
1%
In elaborazione
Pubblicati: 2 codici
4
Sviluppatore 4
Valutazioni
(574)
Progetti
945
47%
Arbitraggio
309
58% / 27%
In ritardo
125
13%
Gratuito
5
Sviluppatore 5
Valutazioni
(318)
Progetti
565
35%
Arbitraggio
81
31% / 44%
In ritardo
204
36%
Gratuito
6
Sviluppatore 6
Valutazioni
(39)
Progetti
65
34%
Arbitraggio
4
25% / 50%
In ritardo
9
14%
In elaborazione
7
Sviluppatore 7
Valutazioni
(366)
Progetti
445
55%
Arbitraggio
22
55% / 14%
In ritardo
30
7%
Caricato
8
Sviluppatore 8
Valutazioni
(44)
Progetti
53
38%
Arbitraggio
8
13% / 38%
In ritardo
8
15%
Gratuito
9
Sviluppatore 9
Valutazioni
(12)
Progetti
9
33%
Arbitraggio
11
0% / 100%
In ritardo
2
22%
Gratuito
10
Sviluppatore 10
Valutazioni
(45)
Progetti
91
13%
Arbitraggio
34
26% / 59%
In ritardo
37
41%
Gratuito
11
Sviluppatore 11
Valutazioni
(471)
Progetti
490
75%
Arbitraggio
6
67% / 17%
In ritardo
0
In elaborazione
Ordini simili
Project Overview I am looking for an experienced MetaTrader 5 (MT5) Expert Advisor developer to build a professional, production-quality automated trading system from a detailed Software Requirements Specification (SRS). The strategy is based on a custom implementation of the MACD indicator combined with advanced trade management and a proprietary basket/grid recovery methodology. The complete strategy and
DESCRIPTION: I have a trading bot (Pips Sure EA v2.1) that operates on MT4, but I do not own the original .mq4 source code file. I need an experienced MQL4 developer to build a clean, optimized clone from scratch so that I can own the source code for long-term updates. WHAT I WILL PROVIDE: 1. The compiled .ex4 bot file. 2. The companion custom indicator file used by the bot (HiLo.ex4). 3. Detailed screenshots of all
I need a trading robot for MetaTrader 5 that works on mobile for XAUUSD. === TRADING RULES === Symbol: XAUUSD Timeframe: M15 Trading Hours: 10:00 to 18:00 server time only Buy: When 10 EMA crosses above 50 EMA Sell: When 10 EMA crosses below 50 EMA Close opposite position when new signal appears === RISK MANAGEMENT === Risk per trade: 1% of account balance Stop Loss: 300 points / $3.00 Take Profit: 600 points / $6.00
Jona copilot v12 30 - 40 USD
Hi, I'm interested in ordering an MT4 trading bot. Before we begin, could you please send me the technical specifications and requirements you'll need? Specifically, I'd like to know: - The trading strategy the bot will use. - The currency pairs or instruments it will trade. - The timeframes it supports. - Risk management features (lot sizing, stop loss, take profit, trailing stop, maximum drawdown). - Whether it
Hello, I want this project to be a complete redesign, not just an update. My goal is to build an institutional-grade TradingView indicator that is extremely accurate, stable, fast, and completely non-repainting. You are free to modify, delete, replace, or completely rewrite any part of the code if it improves the final result. I don't care about preserving the current code or appearance—I only care about building the
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y
automatic robo sell at bollinger band upwards breach and rsi should above 80 and buy when bollinger breach downwards and rsi is below 30, rsi shoould works only on Gold trade and none ofhe trades
Hello, I need a custom Expert Advisor for MetaTrader 5. I am trading from mobile only. **Account & Style:** - Capital: $5,000 - $10,000 - Risk: Moderate/Balanced - Trading Style: Scalping **Pairs & Timeframe:** - Symbols: EURUSD and XAUUSD - Timeframe: M5 **Strategy:** - BUY: RSI(14) < 30 AND Price > 20 EMA - SELL: RSI(14) > 70 AND Price < 20 EMA - Only 1 trade per symbol at a time - No Martingale / No Grid **Risk
I am looking for an experienced MetaTrader 5 expert. I already have 3 MT5 trading accounts. I need someone to: 1. Help me choose a reliable Windows VPS. 2. Connect to my VPS remotely (AnyDesk or TeamViewer). 3. Install 3 MetaTrader 5 terminals. 4. Configure: - 1 Master Account - 2 Slave Accounts 5. Install and configure a professional Trade Copier. 6. Copy all trades from the Master account to both Slave
I have an MT4 custom indicator (.ex4) that I use regularly, and I would like an identical MT5 version. Important: I do not have the source code (.mq4). I only have the compiled MT4 indicator. I am looking for an experienced MQL developer who can recreate the indicator's functionality and appearance for MT5 by analyzing its behavior. The MT5 version should match the MT4 version as closely as possible, including

Informazioni sul progetto

Budget
50+ USD
Scadenze
da 2 a 4 giorno(i)