Updates Needed in my Trade Management EA

MQL5 Indicadores Asesores Expertos

Tarea técnica

Hi,

I have an EA, which places limit orders only by reading the text files in common folder (in a specific format)

I need to make some updates in the EA:

1.       Limit to Market Entry Adjustment: True/False

·       By default, when placing a buy limit order, if the current price, is below the limit price mentioned in the file, the order gets triggered as market entry.

·       By enabling the above option as True, it will restrict the entry of that pair (not just the trade) on that pair for that candle.

 

Note: This EA can read 5 folders and place limit orders at 5 different levels.

So, if anyone of the trade is rejected on that candle, kindly not place any trades on that pair for that candle.

 

2.       Reset Start Balance & Day Balance by Time: True/False

There’s an option in the EA on the chart to reset start balance and day balance, manually by clicking the button.

Instead of clicking the button:

I wanted a reset to happen at the start time of the session input:

 (Asian, London, US), its already there in the input itself.

 

3.       Closing the Trade Loop after commission deducted: True/False

a.        ==== safeguard retracement setting ====

b.        ==== time-based retracement exit ====

c.         ==== currency level exposure control ====

 

These 3 workings, will close the pair trades based on its logic. While doing this, the commissions are not getting covered when traded on raw spread account.

I want 2X of the commissions to be covered while trades are getting closed in these methods.

 

((These closes the trades, when the cumulative value of that pair becomes 0, you need to add the cumulative value of the 2X commissions as well. And adding them both, it should become more than 0. Then only, it will be a clear exit without loss. Or else I am paying more in commissions.))

 

 

 

4.       Trialing the trades via Zigzag Indicator: True/False

If my trades already reached breakeven.

For buy trade: SL > Entry Price; For Sell Trade: SL < Entry Price.

If this happened, we know, we are in the right side. Now, we just need to trail it as much as possible, once it hits the breakeven.

 

(ATR input is already there in the EA)

For Buy Trade: Trail the SL below the HL + ATR

For Sell Trade: Trial the SL above the LH + ATR

 

In the above buy, we would have entered the trade at the red up arrow. And the breakeven level, the trade would have entered breakeven. SL> entry Price.

Now, Zigzag Working will start, it will look for HL formations. And if HL formed, place the stoploss below to it, by adding the ATR at that time. Now, wait for the next HL formed. Repeat the process, and over the period of time, that trade will be closed, if the SL is broken.

 

 

 

 

 

 

 

 

5.        Close the Trade when Structure Shifted: True/False

StructureShiftTrailStartLevel                0.06

StructureTrailNextLevel                          0.125

 

When a buy order is placed (even if it is pending), it tracks for the zigzag formation of LH and LL or LL and LH. If any of such zigzag formed. It’s a sign that, we are in a bad trade. If the cumulative equity of that pair along with 2x of the commission, exceeds 0, better close the trade, rather than waiting for magic to happen or waiting till it hits the SL.

Check for the formations of the following:

Buy trade: LH and LL or LL and LH. (can be of any order)

Sell Trade: HL and HH or HH and HL. (can be of any order)

 

If the EA finds such a kind of zigzag formation, trail the equity of that pair and close the trade, print the log named:

Formation of Zigzag LH and LL found on EURUSD Buy. Waiting for the loop to be > 0.

Once the equity of that pair + 2x commission >0,

Print a log for equity trailing and close the trades.

The trailing of the equity of that pair concept remains the same as ==== safeguard retracement setting ====

I entered a sell trade on the Down Arrow. But Market forms a HH and HL, which indicates a clear buy trend, instead of waiting for the sell trade to hit, if the equity of that pair, reaches 0 along with 2x commission, better trail the equity of that pair and close the trades.

This working will be included for pending orders as well. Both running and pending orders will be deleted with this method. If the Zigzag shift happened, for a pending order, close the trade even before it is executed.

Zigzag Indicator (Repaint Solution):

The zigzag can repaint in the following manner:

1.        HH – HH

2.        LH – HH

3.        LL – LL

4.        HL – LL

In such cases, these are either the high points or low points only. The above working I said, needs a high swing and low swing indicating buy/sell

Buy: HH/HL

Sell: LH/LL

High Swings: HH/LH

Low Swings: LL/HL

We need a clear signal of structure. Not a repainted one. So, if you need to make any changes in Zigzag indicator, kindly do that, before integrating this in EA.


Han respondido

1
Desarrollador 1
Evaluación
(28)
Proyectos
36
31%
Arbitraje
1
100% / 0%
Caducado
7
19%
Trabajando
2
Desarrollador 2
Evaluación
(392)
Proyectos
544
40%
Arbitraje
30
57% / 3%
Caducado
57
10%
Trabaja
Ha publicado: 11 ejemplos
3
Desarrollador 3
Evaluación
(5)
Proyectos
4
0%
Arbitraje
2
50% / 50%
Caducado
2
50%
Trabaja
4
Desarrollador 4
Evaluación
(1)
Proyectos
0
0%
Arbitraje
2
0% / 100%
Caducado
0
Libre
5
Desarrollador 5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(27)
Proyectos
38
24%
Arbitraje
14
0% / 93%
Caducado
4
11%
Libre
7
Desarrollador 7
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Trabaja
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(6)
Proyectos
14
43%
Arbitraje
2
0% / 100%
Caducado
1
7%
Trabaja
10
Desarrollador 10
Evaluación
(3)
Proyectos
1
100%
Arbitraje
3
0% / 100%
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(64)
Proyectos
83
28%
Arbitraje
9
33% / 56%
Caducado
9
11%
Libre
Ha publicado: 1 ejemplo
12
Desarrollador 12
Evaluación
(274)
Proyectos
369
72%
Arbitraje
18
33% / 44%
Caducado
14
4%
Libre
Ha publicado: 14 ejemplos
13
Desarrollador 13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(24)
Proyectos
25
68%
Arbitraje
0
Caducado
1
4%
Trabaja
Ha publicado: 5 ejemplos
15
Desarrollador 15
Evaluación
(2)
Proyectos
3
33%
Arbitraje
0
Caducado
0
Libre
16
Desarrollador 16
Evaluación
(294)
Proyectos
470
39%
Arbitraje
102
40% / 24%
Caducado
78
17%
Ocupado
Ha publicado: 2 ejemplos
17
Desarrollador 17
Evaluación
(12)
Proyectos
19
37%
Arbitraje
1
0% / 100%
Caducado
1
5%
Libre
18
Desarrollador 18
Evaluación
(10)
Proyectos
13
23%
Arbitraje
3
33% / 67%
Caducado
1
8%
Trabaja
19
Desarrollador 19
Evaluación
(8)
Proyectos
11
9%
Arbitraje
3
33% / 33%
Caducado
4
36%
Trabajando
20
Desarrollador 20
Evaluación
(15)
Proyectos
34
24%
Arbitraje
4
0% / 50%
Caducado
2
6%
Trabaja
21
Desarrollador 21
Evaluación
(9)
Proyectos
18
39%
Arbitraje
5
0% / 40%
Caducado
3
17%
Trabajando
22
Desarrollador 22
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
23
Desarrollador 23
Evaluación
(9)
Proyectos
13
38%
Arbitraje
0
Caducado
3
23%
Trabaja
Solicitudes similares
A Grid EA with a hedge that open trades on a percentage based on whats is opened on the other side, closes losing trades with current profits made and utilizes a grid trading strategy combined with hedging technique to mitigate risk and potentially lock in profits. It involves placing buy and sell orders at predetermined price intervals, forming a grid. When a trade within the grid moves against the initial
I need a custom MT5 Expert Advisor for Gold (XAUUSD) only. Requirements: - Platform: MT5 only - Symbol: XAUUSD only - Strategy: Trend / pullback - No martingale - No grid - No recovery Risk management: - Lot size based on balance - Equity stop - Daily loss limit - Maximum drawdown protection - News filter License system (mandatory): - Account-number based license - Expiry-based control - Ability to enable / disable
I need an MT5 remote trade copier EA (manual trading mirror). Scope: Master EA + Client EA (MT5) Copies manual trades: open, close, SL/TP changes, partial close, pending orders Remote / internet-based copying via server/hosting (not LAN-only) Works across different brokers and VPS/PC locations Basic reconnect / retry logic Full MQ5 source code Assist with testing until stable
MQL5 Expert Advisor Development (MT5) I need a professional MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 with high accuracy, low drawdown, and fast execution . 🔹 Strategy Requirements: Timeframe: Scalping-friendly (M1 / M5) Indicators Used: EMA 9 EMA 12 EMA 21 VWAP (as a trend filter) RSI (for trade confirmation) 🔹 Trade Logic: Buy and Sell entries based on EMA crossover + VWAP direction
Project Summary We are looking for a highly experienced MetaTrader 5 (MT5) developer to build a pattern-based Expert Advisor (EA) focused on low-time-interval automation (15-second & 30-second logic). This is a pure MT5 project — no external platforms, no shortcuts. It should be very clean ,Efficient ,Precised ,Accurate ,No copy paste ,Low latency. If you have real experience with MT5 tick-based logic and
Project Description I am looking for an experienced MQL5 developer to build a custom MT5 Expert Advisor (EA) based on a clear, rule-based breakout and momentum strategy using multiple timeframes . This EA must be cleanly coded, well structured, fully adjustable via inputs , and delivered with source code (.mq5) . Strategy Logic Timeframe 1 – Daily Chart (Trend / Breakout Filter) The EA must monitor the Daily
Please specify your requirements here one by one. Try to describe your requirements briefly and clearly so that your potential developer can accurately assess the complexity and cost, as well as the implementation time required. A poor or too general description will cause your order to be ignored, or you will spend a lot of time negotiating details with each applicant. Remember: it is better to spend thirty minutes
I am looking for an experienced MQL4 developer to build a custom MT4 indicator (EX4 only). I currently have two existing EX4 indicators for the binary forex market. Both indicators generate 1-minute signals, predicting the next candle direction (UP or DOWN). When both indicators generate the same signal on the same candle, the accuracy is around 95%. I want a new custom indicator with the following requirements: 1)
i need bot for deletes my limits from specific position like if gold price comes to 4950 and then move to 4953.50 so from 4949 to 4946 all limits should deletes so please if any one can let me know thanks
BitsoFx 40 - 10000 USD
//+------------------------------------------------------------------+ //| Simple Robo Trader MT5 | //| Works on any pair & timeframe | //+------------------------------------------------------------------+ #property strict // Input settings input double LotSize = 0.01; input int FastMA = 10; input int SlowMA = 30; input int RSIPeriod = 14; input int StopLoss = 200; // in points input int TakeProfit = 400;// in

Información sobre el proyecto

Presupuesto
30 - 100 USD
Plazo límite de ejecución
a 1 día(s)

Cliente

Encargos realizados1
Número de arbitrajes0