Hedge to Profit EA

MQL4 エキスパート

仕事が完了した

実行時間42 日
依頼者からのフィードバック
Developer demonstrated an excellent understanding of trading and coding which was an excellent combination for the job he carried out for me. I recommend him.
開発者からのフィードバック
Good client, clear rules and nice communication. I was glad work for...

指定

The idea behind this EA is to hedge, take profit on the trades that are making profit and manage the trades that in loss with the aim that overall, the account will end in net profit.

The description is as follows

Opening Buy and Sell at the same time.  I want the EA to trade either of the following trade events and other user inputs:  

string note = "========= EA Trade Events and Other User Inputs =========";

input string Start_time = "01:00", Stop_time = "00:15";//EA will only trade at this time

bool TradeAuto = True;// if true, EA will trade as soon as it is launched on the chart 

Input double TakeProfit = xx;

Input double StopLoss = xx;

STEP 1: TRADE ENTRIES

As soon as this EA’s trade event is triggered, eight entries are automatically generated (Two entries in Step 1a, Three entries in Step 1b and Three entries in Step 1c)  

Step 1a: Open 1 buy and 1 Sell @ market.  Lot size = User input. Take Profit = User Input; StopLoss = 0;  

Step 1b: At the same time open Buy Stop, Buy Stop, Sell Limit. Treat as follows:

     Step 1b(1)  Buy Stop:  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0;  

     Step 1b(2)  Buy Stop:   Lot = same as in 1a, Take Profit = 0,  StopLoss=User input; 

     Step 1b(3)  Sell Limit;  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0; 

Note that the price to use for pending orders is market price + TakeProfit Pips         

Step 1c:  At the same time, open 1 Buy Limit, Sell Stop, Sell Stop. Treat as follows:

          Step 1c(1)  Sell Stop:  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0; 

          Step 1c(2) Sell Stop:   Lot = same as in 1a, Take Profit = 0,Stop Loss = User Input;  

          Step 1c(3) Buy Limit:  Lot = same as in 1a, Take Profit User Input, Stop Loss = 0;  

STEP 2: TRADE MANAGEMENT AND EXITS WHERE BUY TRADE HITS PROFIT FIRST

Step 2a. If the trade moves up 100 pips (depending on the user input for TakeProfit), the buy trade will close in profit of 100 pips (depending on the user input for TakeProfit). At that same point, a sell trade will still be open at this stage. The floating loss on this trade will be 100 (depending on the user input for StopLoss. Also, at the point, the pending orders (2 Nos Buy Stops and 1 No Sell Limit) created in 1b above will trigger and four open trades will float. 

The four open trades will be as follows:

1.     Sell trade that will be now 100 pip loss. At this point, adjust Take profit to zero

2.     New buy trade triggered from the previous Buy Limit

3.     New buy trade triggered from the previous Buy Limit

4.     New Sell trade triggered from the previous Sell Stop

Step 2b. The pending trades opened in step 1c above, should now be deleted and another three pending trades to replace them at a distance equal to the StopLoss/Takeprofit. The trades are as follows:

          Step 2b(1)  Sell Stop:  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0;  

          Step 2b(2) Sell Stop:   Lot = same as in 1a, Take Profit = 0,Stop Loss = User Input;  

          Step 2b(3) Buy Limit:  Lot = same as in 1a, Take Profit User Input, Stop Loss = 0;  

STEP 2: TRADE MANAGEMENT AND EXITS WHERE SELL TRADE HITS PROFIT FIRST

Step 2a. If the trade moves down 100 pips (depending on the user input for TakeProfit), the sell trade will close in profit of 100 pips (depending on the user input for TakeProfit). At that same point, a buy trade will still be open at this stage. The floating loss on this trade will be 100 (depending on the user input for StopLoss. Also, at the point, the pending orders (2 Nos Sell Stops and 1 No Buy Limit) created in 1b above will trigger and four open trades will float. 

The four open trades will be as follows:

1.     Buy trade that will be now 100 pip loss. At this point, adjust Take profit to zero

2.     New Sell trade triggered from the previous Sell Limit

3.     New Sell trade triggered from the previous Sell Limit

4.     New Buy trade triggered from the previous Buy Stop

Step 2b. The pending trades opened in step 1c above, should now be deleted and another three pending trades to replace them at a distance equivalent to the StopLoss/Takeprofit. The trades are as follows:

          Step 2b(1)  Buy Stop:  Lot = same as in 1a, Take Profit = User Input, Stop Loss = 0;  

          Step 2b(2) Buy Stop:   Lot = same as in 1a, Take Profit = 0,Stop Loss = User Input;  

          Step 2b(3) Sell Limit:  Lot = same as in 1a, Take Profit User Input, Stop Loss = 0;  

 

Either of the two scenarios will continue forever.  Each time a Take Profit level is reached, profit is taken at that level and existing pending orders will be deleted and new ones placed.   

Note, it is the entry (Buy or sell) that has Take Profit that will have profit adjusted to zero.  This is to ensure that when the trade starts reversing, such trades will be taken out at zero

 

DEMONSTRATION

In the following example EURUSD is used to demonstrate how the EA should work

Assumptions are as follows:

TakeProfit = 100;

StopLoss = 100;

TradeAuto = True;

Current Price of EURUSD = 1.14194

Since our trade event is chosen as Auto, the EA will launch trades as soon as it is attached to the EURUSD chart.    

1a. The following entries are generated

1a(1) Buy EURUSD @ 1.14194 Stop Loss = 0, Take Profit =1.15194

1a(2) Sell EURUSD @ 1.14194   Stop Loss  = 0, Take Profit = 1.13194

1bPending orders as follows BBS above market price

1b(1). BuyStop EURUSD @ 1.15194,  Stop Loss = 0, Take Profit = 1.16194

1b(2). BuyStop EURUSD @ 1.15194,  Stop Loss = 1.14194, Take Profit = 0

1b(3). SellLimit EURUSD @ 1.15194 Stop Loss = 0, Take Profit = 1.14194

1c. Pending orders as follows SSB below market price

1c(1). SellStop EURUSD @ 1.13194, Stop Loss = 0, Take Profit =  1.12194

1c(2). SellStop EURUSD @ 1.13194, Stop Loss = 1.14194, Take Profit = 0;

1c(3). BuyLimit EURUSD @ 1.13194,Stop Loss = 0, Take Profit = 1.14194

When price moves upward and reaches EURUSD = 1.15194, the following will happen,

1.     Buy EURUSD @ 1.14194 will hit take profit at 1.15194 and be closed at 100 pips profit   

2.     Sell EURUSD @ 1.14194 will have open loss of 100 pips and TP will move to 1.14194

3.     Pending BuyStop orders (2 Nos) will trigger at market at the price 1.15194   

4.      Pending SellLimit order (1 No) will trigger at market at the price  1.15194   

5.     The 3 Nos pending orders SellStop EURUSD @ 1.13194, SellStop EURUSD @ 1.13194, BuyLimit EURUSD @ 1.13194 will be deleted.  

6.     New Pending orders (6 Nos) will be opened to replace them as follows:

a.     SellStop EURUSD @ 1.14194, SellStop EURUSD @ 1.14194, BuyLimit EURUSD @ 1.14194   

b.     BuyStop EURUSD @ 1.16194, BuyStop EURUSD @ 1.16194, SellLimit EURUSD @ 1.16194 

 

7.     This process will continue to repeat each time price reaches a new Take Profit level.

The above process will be reversed if price starts to go down.

Once the trade cycles repeats to the level where the accumulated profit per trade is up to twice the take profit level, all open trades should be closed and the cycle started all over again.

In the above case, once the open and closed profit is up to 200 pips, all trades related to the trade cycle should be closed and a new cycle started.


応答済み

1
開発者 1
評価
(620)
プロジェクト
680
57%
仲裁
25
16% / 60%
期限切れ
228
34%
2
開発者 2
評価
(349)
プロジェクト
463
51%
仲裁
41
24% / 49%
期限切れ
149
32%
3
開発者 3
評価
(94)
プロジェクト
148
59%
仲裁
16
38% / 13%
期限切れ
25
17%
4
開発者 4
評価
(647)
プロジェクト
1295
67%
仲裁
84
26% / 49%
期限切れ
338
26%
5
開発者 5
評価
プロジェクト
1
0%
仲裁
0
期限切れ
1
100%
6
開発者 6
評価
(258)
プロジェクト
395
28%
仲裁
69
19% / 49%
期限切れ
120
30%
7
開発者 7
評価
(4)
プロジェクト
6
0%
仲裁
2
0% / 50%
期限切れ
4
67%
8
開発者 8
評価
(27)
プロジェクト
43
7%
仲裁
18
6% / 78%
期限切れ
26
60%
9
開発者 9
評価
(96)
プロジェクト
143
76%
仲裁
0
期限切れ
2
1%
10
開発者 10
評価
(90)
プロジェクト
118
17%
仲裁
44
23% / 39%
期限切れ
20
17%
11
開発者 11
評価
(267)
プロジェクト
542
50%
仲裁
55
40% / 36%
期限切れ
225
42%
仕事中
12
開発者 12
評価
(65)
プロジェクト
85
26%
仲裁
23
22% / 48%
期限切れ
24
28%
仕事中
13
開発者 13
評価
(586)
プロジェクト
1049
49%
仲裁
39
28% / 41%
期限切れ
49
5%
14
開発者 14
評価
(5)
プロジェクト
7
0%
仲裁
1
100% / 0%
期限切れ
5
71%
15
開発者 15
評価
(67)
プロジェクト
144
34%
仲裁
10
10% / 60%
期限切れ
26
18%
16
開発者 16
評価
(43)
プロジェクト
72
49%
仲裁
4
0% / 50%
期限切れ
19
26%
類似した注文
Preciso de um EA que abra ordens a mercado a partir de um indicador, Ele precisa obter take e stop loss fixos, spread máximo, horários de início e final das operações, meta e stop diário, martingale, painel e a função no script para que eu possa ceder o EA apartir do id do mt4 de terceiros
Hello Investors, I'm selling a profitable and stable expert advisor trading on the Gold (XAUUSD) pair using a cutting-edge scalping strategy. The EA is able to generate a stable monthly income without using martingale strategy, and with an optional cut loss in place. Particularly the average monthly gain can go from 2-3% (at a relatively low risk, with an historical max DD of 6%) to 20-30% (with an aggressive style
Hello, I have a strategy and I need a very good programmer who will create me an exprt or make me an indicator that will open positions for buy/sell limit (see picture below). The indicator/Expert will have to open positions (buy/sell limit) regarding the strategy and indicators (I will explain it more in collaboration). Below I will give pictures of what I mean. I will send a link to the telegram group where it
Atomic Analyst Indicator to EA. I have an mt4 indicator called Atomic Analyst. The indicator gives buy/sell signals as shown in the screenshot. I want to know if you can take this indicator, and create an EA that automatically takes the signals. The indicator puts in the SL and TP1, TP2, TP3, TP4, TP5 automatically. I would like the option to put in my lot size parameter and I would also like an automatic trail stop
can you help me with Ctrader i need modification on the linkhttps://docs.google.com/document/d/1fggk49xWbnwahtfOlE-U7G6muZB1FT8eWmftGiY7R-s/edit?usp=sharing can you assist with cTrader modifications to enhance functionality and improve performance. do text me if you a professional on it i will be looking forward to your response best regards
MT4 Expert Advisor 30 - 120 USD
EA sittings The EA utilises the concept of grid and hedging by creating a zone for recovering losing trades It is a continues trading EA without any stop loss. The EA initially aims to trade continually without the need to hedge. The EA enter the first trade following the direction of the moving average (when price is above or below the moving average), and only hedge when, the trade goes against the trend and reach
Would I honestly need is someone who can make a profitable EA for me that can at least make me around $80 a day starting with $50 and the EA must be able to work with exness the EA should automat trades 24/7. Broker = Exness Pairs = USD/JPY XAU/USD and etc Chart time frames = M1 M15 History = last month till last 6 months. Lot size 0.10 take profit at $2 stop
Hello i am seeking a skilled MetaTrader 5 (MQL5) developer to modify an existing Telegram signal copier. The goal is to enhance the copier's functionality, reliability, and user experience. kindly bid this job to get started immediately
Hello, I’m looking for assistance with creating or customizing a TradingView indicator to suit my trading needs. If you have experience in this area, please reach out. Your help would be greatly appreciated. Thanks
# MT4 Expert Advisor Development Rules ## Time Period Definition 1. Allow user to define a specific time period (e.g., 10:00 to 15:00). 2. Identify and store the high and low prices within this period. ## Price Breakout Detection 3. Monitor current price for breakouts above the period high or below the period low. ## Signal Confirmation (signals will be taken on m5 timeframe) 4. After a breakout, wait for a signal

プロジェクト情報

予算
50 - 100 USD
開発者用
45 - 90 USD
締め切り
最低 2 最高 4 日