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
等级
(20)
项目
19
11%
仲裁
2
50% / 50%
逾期
0
工作中
2
开发者 2
等级
(137)
项目
162
22%
仲裁
7
29% / 43%
逾期
4
2%
工作中
3
开发者 3
等级
(376)
项目
474
40%
仲裁
82
37% / 33%
逾期
13
3%
已载入
4
开发者 4
等级
(49)
项目
70
16%
仲裁
2
50% / 0%
逾期
7
10%
工作中
相似订单
Hello programmers, I'm looking for an experienced MQL4 programmer that is skilled and capable in understanding decompiled code. He will be required to completely rewrite the source code of my decompiled expert advisor, since the original source code got lost a few years ago. The entire logic of the program must be kept intact, in a way that it is as close as possible to the original. If possible add comments and code
hello, instructions already attached here. I just need a fast MT5 EA that can open trades at a precise minute and second, before a news event happens, then close by target profits given, or time passed. that's it
There is a indicator in Trading View called MavilimW Ortalamalari by Kivanc fr3762. I need same indicator for MT4 as a Expert Adviser. It should work certain hours of the day and any timeframe. When the green candle closed above the 3 red lines I want to be in a long position with one target and stop loss automatically. It shouldn't take many trade until the first trade finish
I am looking to develop an Expert Advisor (EA) that offers advanced trading capabilities based on manually marked zones on MT4. The EA should be able to: Recognize manually marked zones using rectangular boxes (different colors for bullish and bearish zones). Execute trades based on specific entry types when price reaches these zones. Manage trades dynamically with features such as stop loss, take profit, breakeven
C onversion from Ninjatrader to Tradingview. This includes thorough testing and debugging to guarantee that the script functions as intended on Tradingview...If you are in for this job kindly bid
I need an urgent requirement by the developer who are able expert in designing the EA-Anil and can give best trailing result of profit in EA-Anil I am sending.Developer should design the best graphic user trader panel info, plus a buy sell input panel and should display trade result within 4-5 days of this development program
Wedging MT4 and MT5 hedging locker expert advisors that hedge existing trades either with pending or market order hedging trades. With pending hedge trades the entry price may optionally be made to trail the existing open orders. There should be option for a breakeven and trailing of the hedge trade’s stop
I need an indicator FOR MT4 that combines envelopes, and a chart overlay/correlation indicator. So, every time the price of the second asset (overlay chart), crosses the envelopes (of the main asset), the alert with an alarm warns, with the name of the main asset and time frame. The alert just need to warn when the price touch the superior band from downside, and the inferior band from upside. Resume 1. Normal
I’m looking for a developer that has understanding of scalping and HFT strategies that can make an algo that works for all brokers and prop firm LIVE accounts (like STP, ECN, DMA, Money Makers, NDD, Fast Server etc.,). I want someone that has understanding and insight in different scalping and HFT strategies, preferably something like momentum based strategies. The EA has to work on all Brokers and Prop firms like
I'm looking for professional developer for my project.I'm having indicators source code , i want to convert it into MT4 EA .it is having some basic inputs such as lot size,TP,SL,B.E,trailing,News filter features along with some special inputs.detailed strategy will be discussed in chat room.i prefer Indian developers who speaks hindi

项目信息

预算
30 - 50 USD
开发人员
27 - 45 USD
截止日期
 1  10 天