Write a code to execute trades when SL is hit

MQL5 エキスパート

指定

p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131}


p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131} li.li1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131} ol.ol1 {list-style-type: decimal}

I have an EA that open trades when my entry conditions are met. It usually executes one trade per day. I'd like to add an option to be able to execute more trades in the same direction of the initial trade when the SL is hit. 

It needs to add positions every time the SL is reached until whether 

  1. TP is hit, or
  2. 2. Maximum number of trades is reached.

Lot size: add the losing position to the next position (for example, if the first position lose 200$, you add the 200$, to the profit of the 2nd posn and etc.) See the profits and losses written in yellow in the image.

SL and TP: every added position will need to have the same SL and TP distance.

Input needed: Maximum number of trades

It is important that the code take into consideration that it can have two or more trades open at the same time for the same symbol.

I can provide the EA I have written if you need it.


応答済み

1
開発者 1
評価
(20)
プロジェクト
19
11%
仲裁
2
50% / 50%
期限切れ
0
仕事中
2
開発者 2
評価
(198)
プロジェクト
319
16%
仲裁
21
38% / 33%
期限切れ
16
5%
多忙
3
開発者 3
評価
(24)
プロジェクト
31
16%
仲裁
7
29% / 43%
期限切れ
4
13%
仕事中
4
開発者 4
評価
(4)
プロジェクト
5
40%
仲裁
0
期限切れ
0
仕事中
5
開発者 5
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
6
開発者 6
評価
(174)
プロジェクト
176
76%
仲裁
2
100% / 0%
期限切れ
0
7
開発者 7
評価
(1)
プロジェクト
1
100%
仲裁
0
期限切れ
0
8
開発者 8
評価
プロジェクト
1
0%
仲裁
0
期限切れ
0
9
開発者 9
評価
(75)
プロジェクト
84
33%
仲裁
2
0% / 0%
期限切れ
1
1%
取り込み中
10
開発者 10
評価
(376)
プロジェクト
475
40%
仲裁
83
36% / 33%
期限切れ
13
3%
取り込み中
11
開発者 11
評価
(376)
プロジェクト
398
31%
仲裁
62
19% / 69%
期限切れ
50
13%
取り込み中
12
開発者 12
評価
(39)
プロジェクト
44
30%
仲裁
4
25% / 25%
期限切れ
0
類似した注文
Description: I am seeking an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 based on a specific trend-following strategy. The strategy includes precise risk management, advanced trade management features, and additional risk management tools. The EA should be adaptable to any timeframe on which it is attached. Below are the detailed requirements and parameters for the EA: Strategy
I need an EA trading frequently (HFT or something like), and it sould have some features below: 1、Have a clear trading logic 2、Have a good backtest result 3、Have a demonstrated benefitable result in a live account trading 4、Can avoid the news time period or not sensitive to news
Tenho um EA mql4 que está com funcionalidades funcionando e outras com funcionalidades sem funcionar. Tenho um vídeo do EA funcionando como deve funcionar perfeitamente. O meu não consegue seguir o mesmo programa pois quando coloca os pontos de parada e retirada são bem diferentes. Não tenho pressa para tempo, só queria que conseguisse renovar o EA. O arquivo do grafico anexo é como ele se encontra agora. O certo é
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Hello, I am looking for a skilled developer to create an Expert Advisor (EA) for MT4. The EA should close an open trade automatically when a Golden or Death Cross occurs in the Alligator Indicator. Please let me know if you have experience with similar projects and how we can discuss the details further
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
I need someone to build an EA for me based on Trend and Pivot levels from custom Pivot and Trend indicators. I will provide more information to the selected programmer
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details
Utilizing the MQL5 MetaEditor Wizard, I created an Expert Advisor, having the following Signal indicators: I was able to optimize the EA and reached a backtest with the following specifications: I was able to reach a profit level of 30K, as indicated below. However, the Bot is not without faults and following the backtest, I started a forward test with real live data and the results were not so great. The EA took a

プロジェクト情報

予算
50 - 100 USD

依頼者

出された注文1
裁定取引数0