MQL5 EA based on Automated Trade closures and re-entries at specific levels

İş Gereklilikleri

Codex Shield Expert Advisor V1

Objective:
Create a MetaTrader 5 (MT5) Expert Advisor (EA) that acts as a protective shield for manually placed trades. The EA will manage open trades based on strict price movement rules, ensuring minimal losses and precise re-entries.


Core Logic Overview

1. Manual Trade Anchoring

  • Bot only activates after a manual trade is opened.

  • Uses the original manual entry price as the anchor.

  • Anchor price never changes unless a new manual trade is opened.

  • One active trade per symbol (per currency pair) at a time.


2. Trade Closing Logic

  • If price moves against the trade by 3 pips from the anchor, bot must close the trade immediately.

  • Precise closure rules:

    • BUY trade: Close if price drops 3 pips below entry.

    • SELL trade: Close if price rises 3 pips above entry.

  • Closure must happen exactly at 3 pips.


3. Re-Entry Logic

  • After closing a trade, bot waits for price to cross back favourably through the original entry price.

  • Re-entry conditions:

    • BUY trade: Reopen if price crosses 2 pips above the original entry price.

    • SELL trade: Reopen if price crosses 2 pips below the original entry price.

  • Reopened trades must use the same lot size as the original manual trade.


4. One Trade Per Currency Pair

  • Bot must only manage one active trade per currency pair.

  • Multiple pairs can be managed independently.


5. Passive Mode if Price Moves Away

  • If price moves further away from the entry after closure, bot does nothing.

  • Bot will only react again if price returns to entry level.

  • Bot remains passive until:

    • Price crosses the re-entry level.

    • Or a new manual trade is opened (resets anchor).


6. 24/7 Auto Operation

  • Bot operates continuously without manual interaction.

  • Must react instantly even during high volatility or fast price movements.


7. Take Profit Respect

  • After re-opening a trade, bot must assign the same Take Profit (TP) as the original manual trade.

  • TP must always be preserved for all re-entries.


8. Graphical User Interface (GUI) Panel

  • Display real-time status per currency pair:

    • If trade is active and in profit: "Trade in Profit"

    • If trade was closed and waiting for re-entry: "Trade Closed, Waiting for Re-Entry"

    • If no manual trade yet: "Waiting for Manual Entry"

  • Display status for multiple pairs independently:

    • Example:

      • EURUSD: Trade in Profit

      • XAUUSD: Waiting for Re-Entry


9. Chart Visuals

  • White dotted line at the anchor (entry) price when manual trade is opened.

  • Red line at stop-loss level (closure trigger):

    • BUY trade: 3 pips below entry.

    • SELL trade: 3 pips above entry.

  • Blue line at re-entry level:

    • BUY trade: 2 pips below original entry.

    • SELL trade: 2 pips above original entry.


10. Sound Alerts

  • Play a sound (" operationinicialized.wav ") every time a manual trade is opened.


11. Post Take Profit Behavior

  • After hitting Take Profit, bot must:

    • Shut off management for that symbol.

    • Wait for the next new manual trade to reset and restart.



















Yanıtlandı

1
Geliştirici 1
Derecelendirme
(35)
Projeler
48
19%
Arabuluculuk
3
67% / 0%
Süresi dolmuş
8
17%
Meşgul
2
Geliştirici 2
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(220)
Projeler
226
29%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
4
Geliştirici 4
Derecelendirme
(4)
Projeler
5
0%
Arabuluculuk
0
Süresi dolmuş
2
40%
Serbest
5
Geliştirici 5
Derecelendirme
(18)
Projeler
24
13%
Arabuluculuk
3
67% / 0%
Süresi dolmuş
2
8%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
2
100%
Çalışıyor
Yayınlandı: 1 kod
Benzer siparişler
i need an expert to converting trading view script called Renko chart into meta trader5 EA automated robot, i need an expert that can get it done in 5 days here is the link to the code /
Вот краткое описание задания. Полный документ с техническим заданием (TZ) прилагается во вложении: Советник (EA) уже реализован на платформе MetaTrader 4 и работает на основе дивергенций RSI / MACD с 8 вариантами открытия позиций (1-4 и 1A-4A). Необходимо: Интегрировать внешнюю bridge-версию индикатора “All-in-One Candlestick Pattern Scanner” (Bridge версия) через функцию iCustom() для получения информации о свечных
Hello, I need an expert coder who can help me convert my tradingview pine script to mt5 EA expert advisor, This is the pine script https://ctxt.io/2/AAB4SyWXFQ Also I need for EA to enter trades exactly like this strategy on TradingView, i attach, please i need someone wo can do the work not time waster, Live market order should be placed on green and red indicator chart
I’m looking for a custom indicator that can scan for ICT Smart Money "Breaker Structures" and alert me when they form. What I Need: The indicator should analyze markets (Oil/Gold/ but mostly Crypto (BTC)) for Breaker Structures—where price breaks a swing high/low but gets rejected, signaling a potential reversal. I primarily use TradingView, so I'd appreciate it if the script is compatible with TradingView and can
Fast 1 30 - 150 USD
Job Title: MT5 Expert Advisor for ICT Strategy with Fair Value Gap and Risk Management Job Description: I’m looking for a skilled MQL5 developer to create an MT5 Expert Advisor (EA) based on an ICT-style strategy that trades XAUUSD using multi-timeframe market structure and Fair Value Gap detection. Key features: 4H market direction using BOS/CHOCH 2H/1H detection of FVGs (gap between candle 1’s high and candle 3’s
1. Define the Reversal Pattern Tell them exactly which candlestick pattern you want to detect. For example: "I want to detect a Bullish Engulfing pattern: a bearish candle followed by a larger bullish candle that fully engulfs the body of the previous candle." Or: "I want to detect a Hammer pattern: a small body near the top of the candle with a long lower wick (at least twice the size of the body), and little to no
Session Block Volatility D=TickVolumesInBlock/t(hrs(3)) ; in session block we will add tick volumes for the entire block r=D/2 ; this is radius of our absolute diameter VB=π.r^2.h/t(mins(180)) ; this is our equation for VB in each block, here we will divide by mins(180, constant) h=height(high-low %change in session block as is) then we will find Avg VB in time series of entire blocks in sessions(H1,H2,H3,H4) then
I would like to have a proof of concept application that allows me to take prices from MT5 into my own application, to enter orders from my application to my broker via the MT5 connection and to see my filled orders, working orders and P/L in my own application
I am looking for an experienced MQL4 developer to create a rebate farming Expert Advisor (EA) designed to consistently generate a minimum of 2 lots per day on a $500 account with low drawdown and safe logic . The primary goal is volume generation , not profitability — the EA should be optimized to maximize trade count or lot turnover for rebate/cashback purposes, while maintaining account safety. 🧠 Requirements
Hi, I was trying was try to make a ninjatrade statregy and I ran to issues if you take a look at the files, the newstrategy file is connect with the 22062 image - for that strategy I got the ninjascript to desplay delta in the output. My issues is that I bough a 3r party software for orderflow, and I wanted to use stopping volume in the ninjatrade strategy buy I don't know how to access it, I don't know how to write

Proje bilgisi

Bütçe
50 - 70 USD
Son teslim tarihi
from 2 to 7 gün

Müşteri

Verilmiş siparişler2
Arabuluculuk sayısı0