Repair the compilation error

Job finished

Execution time 1 day

Specification

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.


Files:

MQ4
1111.55.mq4
15.5 Kb

Responded

1
Developer 1
Rating
(98)
Projects
137
52%
Arbitration
5
40% / 60%
Overdue
0
Free
2
Developer 2
Rating
(213)
Projects
364
32%
Arbitration
34
41% / 29%
Overdue
108
30%
Free
Published: 1 code
3
Developer 3
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
4
Developer 4
Rating
(7)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
3
21%
Free
5
Developer 5
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 4 codes
7
Developer 7
Rating
(64)
Projects
77
55%
Arbitration
4
0% / 50%
Overdue
1
1%
Working
Published: 6 codes
8
Developer 8
Rating
(77)
Projects
243
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
Similar orders
Hello, Please read the full specification before applying. This project is NOT about building an EA from scratch. I already have a fully working MT5 Expert Advisor. The EA already includes a dashboard, risk management, and some protection systems, but it needs a few more features . So I need an experienced MQL5 developer to modify my existing MT5 EA by replacing the current entry logic with a new breakout strategy
Copying third party from telegram. I have quite a number of them There is many different of them, I will consolidate all of them and send you Usually is a price range, so when hit the range will trigger Option for both fix or scale with equity I would like to have both, option to choose to follow the SL/TP signal provided or not This copier will trigger my DCA bot function. So don’t need set max position limit and
can you help me with editing the existing ATR Trailing Stop Indicator to include a logic to include additional script, where my ninZaRenko bars when it closes above OR below the dynamic stop line, I will be out of trade. Please remember, in this Indicator, now when the price touches the stop line, I am stopped out .. . I want to edit the script, in lieu of the price touch, I like to update this logic to when the bar
TORUNZ 😎 30+ USD
The robot should use different indicators for a example smart money indicator and market structure structure and break indicators in order for it to enter the market, it should also be able to tell false breakouts is the Bollinger indicator, and if the market is confirmed to be profitable,the robot should rebuy or resell the market according to the predictions made, it should execute the trades if the market reverses
I need an advisor created that opens a position with 0.10 lot size when a bull cross arrow appears on the m5 time frame and closes the trade after exactly one candle stick, the ea does the same thing over and over, a bull cross appear on m5 timeframe, and it opens 1 position with 0.10 lot size, and closes it after one candlestick on m5... If possible, provide a demo version
Description I am looking for an experienced MQL5 developer to investigate and fix a suspected memory or resource usage issue in my MT5 Expert Advisor. The EA itself works correctly from a strategy and trading logic perspective . The trading model must remain exactly as it currently operates. I am not looking for any changes or optimisation to the strategy . The goal of this job is purely to identify and fix a
Cash Flow EA 30+ USD
I want a trading robot with proper risk management and good trading strategies it must make money ,place stop loss below the entry and place a take profit no loss only wins mostly trade major
Busco un robot para trading de scalping en oro o forex, el robot debe ser rentable en esos mercados, podemos automatizar mi estrategia basada en medias móviles con estrategia de scalping o bien si él desarollador tiene uno que funcione así y sea rentable podemos ver la opción de un demo o cuenta de lectura para estar seguros de la rentabilidad en el robot
MT4 EA TO TAKE TRADES FROM (A) HYDRA TREND RIDER AND (B) IQ GOLD GANN LEVELS ON MQL5.COM The MT4 version of these two indicators can be found on the mql5.com website with the following links: Hydra Trend Rider: https://www.mql5.com/en/market/product/111010?source=Site +Profile+Seller IQ Gold Gann Levels: https://www.mql5.com/en/market/product/134335?source=Site +Profile+Seller (1) ENTRY (a) Hydra Trend Rider
I have a strategy for US100 where I want a bot to trade according to my strategy, contact me who have proven experience in making bots for MT4 or MT5

Project information

Budget
30+ USD
Deadline
from 1 to 10 day(s)