Fix error in EA an add a Modification

MQL4 Indicateurs Experts

Spécifications

In my EA I want to fix an error and add global vriables so EA nows if orders are open when restarting.

 
Description of EA: I have already an EA which is opening after first installation (under Strategie 1) a buy and sell order and after one of these orders has been closed, ea is placing a pending order with an entry trigger. Note EA does only place at the beginning an buy and sell order. If buy is closed EA open an buy in Pending with an trigger. If sell is closed EA open an sell in trigger. This goes so on.

If this pending order with trigger is executed in the market, EA is opening again and pending after the order in market is closed and so on.

This is Strategy of EA - Do not change anything of Strategie of Strategie 1.


Error is - That EA does open after several Time to the beginning open buy and sell again an buy and sell. This should be fixed. EA should only open an buy and sell and if one of this is closed the pending for the order and so on.



Second change. EA should know his orders under global variables to ovoid also double opening.

1. After restarting Terminal or new installation EA forgot all ticket and try work with new. EA should check to have only 2 open orders in pending and 2 Orders open in Market – each from them can only be a buy and an sell.

So in Market kann never 3 orders from EA - always only two - the buy and sell.



EA should remember his oders and tickets. So after restarting plattform, problem with Internet EA should knows status of before.

If EA does not have 2 Orders in Market and not 2 Orders in Pending – EA should open 2 Orders Market.

If EA does not have 2 Orders in Market but 2 Orders in Pending – EA should do nothing.

EA does never have 3 or 4 Orders in Market…. Never only 2 and this can only be a buy and a sell order.

 

Can be a text file which save all ticket numbers there and update it repeatedly. so when restart the system or any other disconnection of system can check it's text first to remember them.

Répondu

1
Développeur 1
Évaluation
(2)
Projets
2
0%
Arbitrage
2
0% / 100%
En retard
1
50%
Gratuit
2
Développeur 2
Évaluation
(225)
Projets
285
41%
Arbitrage
15
13% / 47%
En retard
67
24%
Gratuit
3
Développeur 3
Évaluation
(277)
Projets
334
55%
Arbitrage
14
36% / 29%
En retard
1
0%
Gratuit
4
Développeur 4
Évaluation
(232)
Projets
274
80%
Arbitrage
3
67% / 33%
En retard
19
7%
Gratuit
Commandes similaires
Hedge Grid EA 50+ USD
I dont know anything about trading. I am looking for a mql5 code, which can place buy and sell at same time (Hedged grid EA). If any one have any such code developed already, please share me more details on it. I'm willing to purchase. Thank you
I need a MetaTrader 5 Expert Advisor that will: 1. Detect when any position from a group of trades (same symbol, same entry price) closes in profit (TP1 hit). 2. When the first profitable close of a group occurs, automatically move the SL of all remaining open positions in that group to their entry price (breakeven). 3. The groups will be opened by a separate EA (such as a signal copier), so no trade opening logic
hello great developer Hi! I have a fairly simple tradingview script I need ported over to cTrader for a trading bot I am looking for a developer to build a simple ORB (Opening Range Breakout) trading strategy . Requirements: ORB calculation and breakout entries (long & short) Static stop loss based on the signal candle Fixed risk–reward take profit Risk calculator to automatically size positions correctly Follow-up
I need a custom MT5 Expert Advisor. Timeframe: M15 Strategy Logic: 1. Detect Change of Character (CHoCH) / Break of Structure (rule-based approximation). 2. Identify inducement (liquidity grab) before BOS. 3. Mark POI zone based on last impulsive move. 4. Apply Fibonacci on the impulse leg. 5. Only trade if price enters Fibonacci Golden Zone (0.618 – 0.786) inside POI. 6. Wait for Pin Bar inside the zone. - Long
Должность: Пользовательский советник MT5 для стратегии пробоя максимумов/минимумов на свечных графиках. Описание/требования к должности: Здравствуйте! Мне нужен пользовательский советник (Expert Advisor, EA) для MetaTrader 5 , основанный на простой стратегии пробоя свечей. Советник должен строго соответствовать следующим правилам: 1. Условия покупки: Откройте ордер на покупку , когда текущая цена закроется выше
Hello! I'm looking for an EA to help me pass a prop firm challenge. I know very little about this, so I have practically no demands. Any EA that sort of works is fine. Let me know what you've got. Thanks in advance
//+------------------------------------------------------------------+ //| XAUUSD Ultimate Institutional EA | //| Features: | //| - True swing-based market structure | //| - BOS sniper entries on M5 | //| - Liquidity sweep filter | //| - Partial TP + breakeven | //| - Visual BOS, swings, liquidity
MetalFlow EA 70+ USD
I need a MetaTrader 5 Expert Advisor built to trade metals only: XAUUSD, XAGUSD, XPDUSD, and XPTUSD. The EA should be trend-based using moving averages and RSI, enter on pullbacks, allow only one trade per symbol, and use strict risk management with volatility-based stop loss and 2:1 reward-to-risk. It should trade only during active market hours, include spread filtering, auto lot sizing, and be lightweight and
Overview I need an MT5 Expert Advisor (MQL5) for a mechanical trading system . It is a hedging account and must run as a true 3-position (3-leg) system (3 separate positions), not partial closes. The EA must match my rules exactly and behave consistently in Strategy Tester and live charts (bar-close signal logic, no forward-looking). Timeframe / Execution Signal timeframe: input All signals are evaluated on
strategy is as follows market gold, timeframe 1 hour. for buys once a candlestick closes 10 pips or lower away from candlestick high. for sells once a candlestick closes 10 pips or lower away from candlestick low, the stop loss is 100 pips and he take profit is two things one 500 pips or for buys once candlestick closes 10 pips or lower away from low of candle stick, and sells once candlestick closes 10 pips or lower

Informations sur le projet

Budget
30+ USD