Modify This Hedging Expert advisor

Specification

This is how EA is supposed to work:

HEDGING STRETEGY OVERVIEW/CONCEPT

Randomly enter a BUY trade with a Lot size of 0.01 when there is no open trade in the market and a SELL pending order with TRIPLE the Lot size, 30 pips below the BUY trade.

Both trades should have a stoploss of 60 pips and a Take Profit of 30 pips.

For all pending orders triggered, an opposite pending order should be entered 30 pips away from the last position, with DOUBLE the lot size of the recent opened trade.


THE ISSUES TO FIX:

  • Correct EA to Close all open and pending orders when TP or SL triggered.
  • Ea sometimes fail to open new pending order.
  • Check the logic

SETTINGS (NOTE: ALL PARAMETERS SHOULD BE ADJUSTABLE)

Parameter

Options

Description

First trade direction

BUY/SELL

Add option to choose the first trade direction

Initial Lot size

Number

Lot size for first trade

Lot multiplier (1)

Number

Multiplier for the first pending order

Lot multiplier (2)

Number

Multiplier for other pending orders

Hedge Range/Distance

Points

The distance between the last trade and the opposite pending order

Stop loss

Points

Stop loss in points

Take profit

Points

Take profit in points

Magic TP/SL

YES (Automatic default)

EA to close all open trades including pending orders when a SL or TP is  triggered.

Repeat first trade

ON/OFF

If ON, EA will pause trading after SL or TP is triggered and all orders are closed.

 

If OFF, EA will open new market order with initial lot size and repeat the hedging circle again.

Pause Trading

ON/OFF

EA opens trades only when this is OFF.


VIDEO EXPLANATION:
https://drive.google.com/file/d/1hjufvXYk4ZwIwRBBkiWry_BiyBx-XZKj/view?usp=drive_link


Responded

1
Developer 1
Rating
(11)
Projects
10
0%
Arbitration
5
20% / 60%
Overdue
2
20%
Free
2
Developer 2
Rating
(239)
Projects
300
28%
Arbitration
33
24% / 61%
Overdue
9
3%
Working
3
Developer 3
Rating
(268)
Projects
396
27%
Arbitration
38
39% / 50%
Overdue
1
0%
Working
4
Developer 4
Rating
(152)
Projects
228
80%
Arbitration
22
27% / 50%
Overdue
11
5%
Free
Published: 24 articles, 1882 codes
5
Developer 5
Rating
(37)
Projects
59
27%
Arbitration
26
19% / 54%
Overdue
10
17%
Working
Published: 1 code
6
Developer 6
Rating
(72)
Projects
80
10%
Arbitration
38
8% / 58%
Overdue
6
8%
Free
Similar orders
Hello, I have the code for an indicator file that works with binary options. I want to make a simple modification to it that won't take much effort for professionals. In short, the modification I want is that if the strategy's conditions are met, a buy or sell signal should appear at 17:55. The strategy works exclusively on the 5-minute timeframe, and I want to delay the signal by 7 minutes so that it appears and
描述(项目概述): 我需要为 MetaTrader 5 平台开发一个功能完整的智能交易系统( 专家顾问 ),用于交易 XAUUSD (伦敦金)。该 艺电 的核心是基于一份详细的技术规格书,实现一个多指标共振、多层条件过滤的短线反转策略。 1. 核心策略逻辑简述: 交易品种与周期:主交易周期为 M30 ,需在代码内部动态读取 H4 周期进行趋势过滤,并监控 M5 周期以执行复杂的出场逻辑。 入场机制:采用 “ 价格触发 -> 成交量确认 -> 多指标渐进式达标 ” 的严格流程。入场信号需在特定时间窗口内,同时满足布林带突破及 5 个动量指标( CCI、RSI、MFI, 威廉指标, 随机指标)的超买 / 超卖条件,并受 H4 级别趋势过滤器约束。 出场机制:采用三层递进逻辑,包括动态保本移动、 M5 周期指标集体反转信号以及基于 K 线形态的趋势反转终极止损。
SMC, etc.) - Backtest results and the set files you used - Whether you’re willing to make minor tweaks so I can use it as my own If the performance looks good, we can discuss adjustments and next steps. My requirements are screenshot, backtes results, demo fileS Let me know if you have anything that fits the bill
iF you already have an successful MT4 EA for scalping in M5 XAUUSD [and eventually EURUSD and USDJPY] working essentially ON the trend when there is an Break Of Structure but also on reversal eventually with strategy Martingale with param ON/OFF eventually with strategy Grid with param ON/OFF eventually with HEDGING with param ON/OFF and on each trade : Stop loss, Trailing sl without High Frequency Trades [means
I have an existing Ea and want to ad a stop loss in pips with adesired distance in inputs. Also i want to ad a pending hedge order with inputs Distance frome price, lot size , take profit and stop loss
Double trade 30+ USD
1-tow trades with take profit stop loss pips trade with take profit stop loss pips trade with stop loss pips take profit candle close 2-buy or sell look for last candle buy or sell 3-trade stop loss stop loss martingale trade lot zise in intry candle running candle or new candle
Hi all, I would like to get a bot that trades based on a Tradingview indicator. The indicator is called sniper entries. It is very simple. If the indicator says "BUY" then the EA buys, if the indicator says "SELL" then the EA sells. I want the bot to possibly trade forex market pairs like XAUUSD, EURUSD, GBPUSD. Would you please inform me what i need to do to make it possible. I also want the bot to trade on a small
can you help me with the strategy for my mt4 or mt5 bot? I am learning trading, while working and I was thinking this could be a good way to still earn from the market while learning. If I have someone like you to guide me on strategy and maintaining the trading bot going forward. I do not have anything setup, I am going to pay a ten to build the EA, I just need the mentorship and we can agree on a unique price to
Good day, I am searching the very high level expert, which could create the auto-trade robot and I would like to order the trading robot for GOLD XAU/USD auto-trade on MetaTrader. I could pay a lot for the institutional grade auto-trade robot, just contact me and let me know what level of the robot you could offer and we will negotiate the price
Hello. I am finding an experienced python developer who can implement my trading strategies into robots. I like trend-following swing trading strategies and am going to automate my idea. More details can be discussed by chatting. If you have similar working experience it can be a plus. Thanks

Project information

Budget
30+ USD
Deadline
from 1 to 2 day(s)