Repair the compilation error

工作已完成

执行时间1 一天

指定

i need to repair the existing EA that has been wrongly written.

Here is a summary of the requirements for the EA and how they must been implemented in the code:

On every new bar, the EA needs to analyze the chart to see if there are any open positions. If there are no positions, the EA will enter a trade based on the candle: bullish candles will result in a buy trade, bearish candles will result in a sell trade. This must be implemented in the OnTick() function.

If the chart already has positions entered by the EA, the EA will only enter a new trade if the last position is at a loss. The lot size for the new position must be calculated using the martingale method. This must be implemented in the MartingalePosition() function.

The EA name and the number of positions of the same direction should be added to the comment section for each trade. This must be implemented in the FirstPosition() and MartingalePosition() functions.

If Hedging is set to false, the EA will only enter trades in one direction at a time. If the first position is a buy trade, all subsequent martingale positions must also be buy trades. If the first position is a sell trade, all subsequent martingale positions must also be sell trades. If Hedging is set to true, the EA will enter trades in both directions. This must be implemented in the MartingalePosition() function.

After every trade, the EA will modify the take profit of all positions in the same direction to a single break even point plus a take profit level. This must be implemented in the ModifyTakeProfit() function.

The global variables should include the lot size, take profit level, martingale multiplier, EA name, expiry date, magicnumber, and Hedging flag. These global variables must be defined at the beginning of the code.

The code should be sorted into blocks for each part of the EA's functionality, such as entering the first position, entering martingale positions, and modifying the take profit level. The code must be organized into separate functions for each of these parts.


附加的文件:

MQ4
1111.55.mq4
15.5 Kb

反馈

1
开发者 1
等级
(97)
项目
135
52%
仲裁
4
50% / 50%
逾期
0
工作中
2
开发者 2
等级
(185)
项目
327
32%
仲裁
33
42% / 27%
逾期
98
30%
工作中
3
开发者 3
等级
(10)
项目
25
28%
仲裁
2
0% / 0%
逾期
1
4%
已载入
4
开发者 4
等级
(7)
项目
14
21%
仲裁
1
0% / 100%
逾期
3
21%
空闲
5
开发者 5
等级
(1)
项目
2
0%
仲裁
1
0% / 100%
逾期
0
空闲
6
开发者 6
等级
项目
0
0%
仲裁
0
逾期
0
空闲
7
开发者 7
等级
(45)
项目
52
52%
仲裁
1
0% / 100%
逾期
1
2%
工作中
8
开发者 8
等级
(61)
项目
186
73%
仲裁
4
100% / 0%
逾期
1
1%
空闲
相似订单
I want to decompile an ea file and get the source code, i need it really quick as fast as possible. the file must be delivered alongside the source code
I have an algo that is running on ProRealTime, they have their own language. It is a simple strategy with 5 conditions + SL/TP settings, very basic. I need someone that can convert or just create a functional MT5 algo (EA) from these conditions for me, if you do a good job I have around 10+ more algos that need to be transferred to MT5
Dear Developers, I would have a very simple request. I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. The input would be a csv file that contains two columns: - dates (going back for a few years on a daily basis) - trading signal (it can have only 2 values, either 1: Buy, or -1
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader 1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and
1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and Trailing Draw Down options need to be implemented 5. Risk needs to be in % of
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hi Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy
Hello I need a very simple indicator This indicator should show the highest floating or history drawdown of the account It means that it can display the highest number that the account drawdown to be displayed on the chart in this format max drawdown account(xxxx$$) ...date(00/00/00)time:(00:00) max drawdown currency ..( currency name with max drwadown) . (xxxx$$) date(00/00/00)time:(00:00) thanks

项目信息

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