Hedging EA with partial profits and loss

工作已完成

执行时间9 天
客户反馈
Great EA. Very unprofessional. Project extended 2x. Requested more cash for underestimating workload after negotiation. Did not read job card before accepting. Late and double-booked meetings

指定

This hedging system requires a simple step rule to open and close trades.

First trade is opened manually by the trader, the EA will control everything after this step. 



Each trade has a simple command system

: #1  Trade will open a new position at X amount of points in profit ( buy will open a new buy)

: #2  Trade will break even after opening a new trade and trail with X amount of points (trailing stop should only move once a new trade is activated) each trade steps its trailing stop one section at a time

: #3  This will continue along with the trend until a reversal (this is where a hedge will form)

: #4  If a trade runs X amount of points in the loss it will open a new opposite position - Hedge ( buy will open a sell) If in a trend and several trades have been running and trailing profits, the reversal will trigger opposite position and all accumulated profits will be closed. At this point, you should have banked a few profitable positions and will now have 1 buy and 1 sell position on the chart with a space of X amount of points in a locked loss.

: #5 Trade will breakeven after opening a new opposite position 



This will allow a sequence to form and should run simply 



Partial loss and profit closures

: #1 If the sequence is hedged and there are two opposite trades locked in a loss the EA will wait for either position to run into the profit and open a new trade. 

: #2 In this case there is no trailing stop because the sequence is hedged, so once either position is x amount of points in the profit and the positive trade opens a new order (buy will open buy) Then the EA will close the first positive trade, take these profits - keep a share of the profits and give the rest back to the losing trade to reduce the outstanding lot size

: #3 The losing trade will keep taking partial losses as the new trades start to take profit 

: #4 This sequence usually completes itself after 4 wining trades and would have assisted the losing trade in reducing its loss

: #5 In the mean time for every positive position closed, a portion will be banked so the account balance will increase and the losing trade will be reduced slowly and systematically without taking a major loss on the account balance 



Example 



Buy at price 1000 for 1 lot

Buy at price 1100 for 1 lot  (first buy breaks even)

Buy at price 1200 for 1 lot (Second buy breaks even - first buy places SL at price 1100)

Buy at price 1300 for 1 lot (Third buy breaks even - First and second buy places SL at price 1200)  - Trend reverses back to 1200, now EA places a hedge at previous mark price 1200

Sell at price 1200 for 1 lot (Third buy breaks even, Second buy takes 100 points profit, first buy takes 200 points profit - Forth buy at price 1300 in now 100 points in the loss



So now the account is up 300 points in total and we are running a 100 point losing hedge 



Price continues to fall to price 1100. 

Sell position at 1200 is now in the profit of 100 points. - Buy position at 1300 is now in the loss of 200 points. 

EA will now remove sell position at 1200 and take $100 profit - keep only $20 and give $80 back the buy position running a $200 loss. Now the loss is reduced to $120 

This partial close will be closed as a LOT portion = We bought 1 lot at price 1300 we reduce the loss by 0.20 = Remaining loss is now 0.80

Another positive trade will reduce this loss even further and this will continue on until the trade is totally reduced and closed.

If price reverses again and continues higher, the remaining loss on the buy position will breakeven and be replaced by a new buy of 1 lot

反馈

1
开发者 1
等级
(22)
项目
21
10%
仲裁
4
25% / 75%
逾期
0
空闲
2
开发者 2
等级
(295)
项目
367
30%
仲裁
37
27% / 65%
逾期
10
3%
工作中
发布者: 10 代码
3
开发者 3
等级
(443)
项目
570
37%
仲裁
106
39% / 33%
逾期
17
3%
空闲
4
开发者 4
等级
(111)
项目
184
25%
仲裁
25
16% / 76%
逾期
16
9%
空闲
相似订单
SMC Bot Creation 350 - 550 USD
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
PROJECT: BYBIT PUMP & DUMP EARLY DETECTION ENGINE Fixed Budget: USD $1,000 – Complete Project I am looking for an experienced quantitative trading developer to design, develop, validate and deliver a professional standalone Python 3.12 module for detecting early pump and dump movements on Bybit USDT perpetual futures. IMPORTANT: This is NOT an MT4/MT5 indicator, Expert Advisor or a request to build a complete trading
​I am looking for an experienced MQL5 developer to build a fully automated MetaTrader 5 Expert Advisor (EA) optimized primarily for XAUUSD (Gold), featuring a clean Tkinter-style telemetry dashboard control concept or customizable input parameters. ​1. Core Strategy Rules (Full-Body Engulfing) ​Signal Identification: The EA must scan completed candles across multiple selectable timeframes (e.g., 1M, 5M, 15M, 30M, 1H)
Exir AI 30 - 200 USD
I need an experienced MQL5 developer to build a custom AI-assisted Expert Advisor (EA) for MetaTrader 5. The EA will run on a live MT5 account with Tickmill and must support Forex and Crypto CFDs. Required instruments: - EURUSD - GBPUSD - USDJPY - XAUUSD - BTCUSD - ETHUSD Required timeframes: - M5, M15, and M30 Trading logic: - M30 determines the overall trend. - M15 identifies entry zones, support/resistance, and
Hello lovies, I’m reaching out because I’m working on a specialized macroeconomic intelligence service focused on major economic releases and their potential impact on gold (XAUUSD), the US dollar, and the wider financial markets. My approach goes beyond simply following the economic calendar. I focus on understanding the information behind upcoming events, market expectations, and the potential implications for
MT5 Expert Advisor Development Brief — Forex Project objective I am looking for an experienced MQL5 developer to build a bespoke, fully automated Expert Advisor for MetaTrader 5. The EA will be used on both proprietary trading firm (prop-firm) accounts and my own live trading account. My priorities, in order, are: 1. Low drawdown and robust risk management. 2. Consistent, repeatable profitability. 3. Reliable
Platform: MT5 only (no MT4 needed). Deliverable: an MT5 Expert Advisor with full source code (.mq5) that replicates the attached TradingView strategy (Pine Script v6, based on LuxAlgo's "ICT Killzones Toolkit" order blocks) as exactly as possible. Pasting the code into TradingView shows how it operates. I normally trade GBPUSD on the 5-minute chart Expected behavior: - Order block detection must match the Pine code
Requirements Specification: Debug & Error Fixing: Review the entire source code of the MQL expert advisor. Identify and fix all logical errors, bugs, and performance issues that cause trades to close prematurely or yield extremely low profits. Strategy Restructuring & Optimization: Fully analyze and optimize the current entry and exit strategy for USDJPY and GBPUSD. Modify, upgrade, or completely rewrite the entry
I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical

项目信息

预算
30 - 50 USD
截止日期
从 1 到 10 天