EA on base of candle chart

MQL4 Experts

Specification

I'm looking for an EA which is opening after definated candle numbers in a row and trend, on a definated Mode (there are 3 possible modes) a Pending or Pendings orders, which will be then good for xhours (example 23 hours- after that Pending orders will be deleted - if not executed).
EA should then restart and wait for the next possible candle numbers in the row. EA is trading just the mode which is in setup.
EA should have a magic number to trade other modes on other chart.

We have three different order modes on which EA is placing the orders under defenated criteria:

EA should not open Trades on Thursday

Order mode should be selected in sets
Normal Mode 
Hedge mode

Third mode is place orders against trend

Note, on all order modes, orders will be placed as pending orders and there will be good for xhours.


Normal Mode

EA is opening after defined candles "x numbers of candles in a row in trend" in direction (+xpips over high or low) a pending order.
Order must be placed in trend direction.  on Higho or Low (depends Trend) +xpips
And a second order, in direction of candle trend but xpips better (but only in the trend direction). If this order xpips better is in market, the first order stays. Only if the normal order (first order) is executed, the order xpips better will be deleted.
A third order can be set activ or inactiv will be placed just on High or Low +xpips on basis of candle before,  in other direction
So if we have a buy trend, EA is placing on High +xpips a buy order - and a second order buy + xpips better order. So if third order is executed - orders stay under pending till Order will be canceled of hours expire.

If the normal order is executed, the order xpips better should be deleted.

Pharamters for Normal Mode:
Candels in trend - Number
+xpips on first order
Xpips better second order - entry should be (price high and low of candle befor /2 = xpips better)

set activ or inactiv third order

Expire hours can be defined for each mode.
After Expire or orders are done, EA starts again with strategy and does wait for new placing of the three pending orders.

Example for Normal Mode - set 3 candels in trend (for example buy trend) - so EA is using the last candel (third high) High was 1.2020 
We have plus Xpips example 5 pips EA is placing a pending buy at 1.2025 and a buy order Xpips better if we have normal mode with fix lots.
So a buy order example 40 pips better . So 1.1985- this is second order.

The first buy order is executed, the second buy order (in this example) will be deleted.

If second order Xpips better is executed - first order stay


Second Mode - EA should also have a Hedge mode - so order will be only open in Hedge direction, with the same second order as in Normal mode and same handling  (xpips better) and always only in Hedge direction. After definated candls in a row. Order is not only in Trend direction and good for xhours.
EA is placing if there is xcandles in a row if there are already orders in Market (only the Hedge volume). EA is placing the hedge volume in open Hedge direction +xpips better or worse on basis of candle before.

If we have Hedge mode, EA is placing the right amount as Pending order on definated limits in Hedge directionon high or low +xpios of candle before.

Order is good for x hours.

Plus second order first as pending xPips better as in Normal mode. Also if second order is executed the first order stay in Market - but if the first order is executed the Second order will be deleted.

Again Hedge Mode:Note EA does placing a Pending order in Hedge direction (if there is a Hedge - plus the order xpips better) if there are already a volume in Terminal. If nothing in Marke - so no order.
Note - EA is also placing a Order Xpips better. If the order Xpips better is executed - the first order stay in Markegt till god as. If first order is in the Market, the second order must be deleted.

Parameter: same candles in a row - example 2 Candles - EA placing after the definated candles a pending order in direction with fewer Lotsorder in direction of lower order sice (hedge) Order will be placed on High or Low on candle before +xpips . On side depends on where is fewer lot amount. Placing on high xpips better, or on low xpips worser - on low always a sell and on high always a buy.

Example: We have 6 lots long and 4 Lots short - the order volume is 2 lots If now 2 candles long in a row came - EA does open an low of candle befor 2 lots short. And second Order on bais of this order xpips better.

If second order will be executed - first order stay in market - Pending orders ar good for xhours.


Third mode is place against trend
This mode has no SL - does work as normal mode, but places order after definated Rows against trend.
Same as normal mode - EA is placing the order just against trend.
If we have an trend of xcandels- can be definated under sets.

EA is placing on High or low (depends on existing candl trend) xlots against trend of trend candels.
Pending orders are good till - xhours


Example - we have 3 candles logng in a row - on high of 3 candel high EA is placing a sell order




Lot definition:
Fix lot - EA is always using the fix lots only for normal mode
Or Hedge amount - EA checks all open trades and does placing the right size for hedge - updating every x hoursUpdating ever x hours
EA does only place the pending order in direction of fewer lots - so if the order is in Market, the orders in Terminal are hedged.

Depends on Pips candle before - If candel before opening order High low is in range of Xpips. EA should juse second lots. 

The definated Lots at fix or Hedge - I want a partial closing or if not Possible EA should place the volume /4
For each closing I want to definated the TP

Closing of the Order:
We have partial close of the order. If we can not make partial closing - EA has to open for fix lots just 4 orders - were I can definated in sets the Percent of Fix lots for each order.

  1. Closing 20 Percent of the order at xpips TP
  2. Closing 20 Percent of the order at xpips TP
  3. Closing 20 Percent of the order at xpips TP
  4. Closing 20 Percent of the order at xpips TP
SL - will be updated after actual candle is closed

Is other side High or Low of candle - +xpips - but minimum xpips - so for example 60pip
Only third mode does have no SL
After first candl trade is done: SL will updating to next candel (high or low +xpips.

EA does also close orders on closing of candle before. - Set activ or inactiv


Expiere of pending order - xhours


Pharameter:

Mode selection 1, 2 or 3
Hours which will be pending good till -xhours

Mode activafter xcandles - number of candles
Xpips better normal mode - xpips

Minimum SL - xpip

Xpips which will be calculated on the order high and low - so if low ist - 1.2020 - sell liit will be placed 1.2020 - xpips 



Responded

1
Developer 1
Rating
(10)
Projects
4
0%
Arbitration
11
0% / 82%
Overdue
0
Free
2
Developer 2
Rating
(75)
Projects
111
50%
Arbitration
26
31% / 50%
Overdue
9
8%
Free
Published: 1 article
3
Developer 3
Rating
(9)
Projects
19
16%
Arbitration
3
67% / 0%
Overdue
0
Free
Similar orders
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
EA for Gold 50+ USD
need a Gold robot? check out this EA for Gold. It specialises in bringing in big amounts of profit and is very consistent. It's very trustworthy and it trades the SMC strategy.Enjoy
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
I develop and customize automated trading systems for MetaTrader 5 using MQL5. My experience includes developing EAs based on price action, market structure, Moving Averages, ADX, Smart Money Concepts, supply and demand zones, Break of Structure, Fair Value Gaps, trailing stops, risk management, and multi-timeframe analysis . I can also modify existing MQL5 source code, fix errors, add new trading features, and help
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
Торговый робот XAUUSD AI/ML — MT5 + Python + MQL5 Ищу опытного разработчика с глубокими знаниями в следующих областях: MQL5 / MetaTrader 5 Python Машинное обучение / Искусственный интеллект Алгоритмическая торговля Проект Я хочу разработать торговую систему на основе ИИ/машинного обучения, предназначенную исключительно для XAUUSD (золото) . Архитектура: Данные рынка XAUUSD → Модель Python/ML → ПОКУПКА / ПРОДАЖА /
The EA needs to be upgraded according to the strategie built in and first the programer must specify the problems and how can correct and provide the video on how the bot works on different assets after correction
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {

Project information

Budget
50+ USD