Repair the compilation error

Auftrag beendet

Ausführungszeit 1 Tag

Spezifikation

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.


Dateien:

MQ4
1111.55.mq4
15.5 Kb

Bewerbungen

1
Entwickler 1
Bewertung
(97)
Projekte
135
52%
Schlichtung
4
50% / 50%
Frist nicht eingehalten
0
Arbeitet
2
Entwickler 2
Bewertung
(185)
Projekte
327
32%
Schlichtung
33
42% / 27%
Frist nicht eingehalten
98
30%
Frei
3
Entwickler 3
Bewertung
(10)
Projekte
25
28%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
1
4%
Beschäftigt
4
Entwickler 4
Bewertung
(7)
Projekte
14
21%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
3
21%
Frei
5
Entwickler 5
Bewertung
(1)
Projekte
2
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
6
Entwickler 6
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(45)
Projekte
51
51%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
2%
Frei
8
Entwickler 8
Bewertung
(56)
Projekte
175
71%
Schlichtung
4
100% / 0%
Frist nicht eingehalten
1
1%
Frei
Ähnliche Aufträge
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

Projektdetails

Budget
30+ USD
Für die Entwickler
27 USD
Ausführungsfristen
von 1 bis 10 Tag(e)