Develop MT5 Indicator and EA Based on Swing Depth Logic (Full Specifications Included)

Spezifikation

Dear Developer,

I am looking to develop both a MetaTrader 5 Indicator and a MetaTrader 5 Expert Advisor (EA) based on the swing depth logic shown in the Pine Script code attached below. The indicator and EA must be built as separate files but must follow the exact same signal logic so both display and execute identically.

Please carefully review the requirements below and confirm your understanding before starting.


Project Deliverables

You will develop two separate components:

  1. MT5 Custom Indicator

  2. MT5 Expert Advisor (EA)

Both must use identical swing point detection logic and produce the same buy and sell signals.


Core Logic (Source Code Reference)

The following Pine Script contains the exact signal logic that must be used as the foundation of both the Indicator and EA. This logic must be accurately converted into MQL5.

// This Pine Script code is subject to the terms of the Mozilla Public License 2.0
// © yashgode9

//@version=6
//@author = yashgode9 [YASH NANDKUMAR GODE]

import yashgode9/signalLib_yashgode9/2 as signalLib

indicator("Abdulla Buy Sell Only + buysellsignal-yashgode9", overlay=true, format=format.price, max_labels_count=500, max_lines_count=50)

// Inputs
groupSig = "signalLib Config"
DEPTH_ENGINE     = input.int(30, "DEPTH_ENGINE", minval=1)
DEVIATION_ENGINE = input.int(5,  "DEVIATION_ENGINE", minval=1)
BACKSTEP_ENGINE  = input.int(5,  "BACKSTEP_ENGINE", minval=2)

// Signal Logic
[direction, zee1, zee2] = signalLib.signalLib(low, high, DEPTH_ENGINE, DEVIATION_ENGINE, BACKSTEP_ENGINE)

// Entry / Exit Logic
if bool(ta.change(direction))
    float newEntryPrice = direction < 0 ? low : high

    // close existing trade at new signal price
    if not na(bt_entryPrice) and bt_entryDir != 0
        f_addTrade(bt_entryPrice, newEntryPrice, bt_entryDir)

    // open new trade
    bt_entryPrice := newEntryPrice
    bt_entryDir   := direction < 0 ? 1 : -1


This logic defines the swing point detection and trade direction changes. This must be replicated exactly in MT5.


EA Trading Rules

The EA must operate under the following strict conditions:

One Position Only

  • Only one open trade at any time

  • When a new opposite signal appears:

    • Close current trade immediately

    • Open new trade in opposite direction

Entry Conditions

  • Buy when confirmed Buy-point appears

  • Sell when confirmed Sell-point appears

Stop Loss

  • Fixed stop loss of exactly $15 USD per trade

  • Stop loss must be calculated based on USD value, not points

  • Must work correctly on XAUUSD and forex pairs

Trailing Stop (Run More Mode)

  • Trailing activates only after trade reaches +$25 profit

  • Trail stop distance = $20 USD

  • Stop loss must only move forward, never backward

  • Update trailing only if improvement is at least $2 USD

No Fixed Take Profit

Trades must close only when:

  • Opposite signal appears, or

  • Stop loss is hit


Always In Market Requirement

The EA must always maintain an active trade.

If stop loss is hit:

  • Immediately open a new trade in the direction of the most recent confirmed signal

  • Continue operating normally until opposite signal appears


Indicator Requirements

The indicator must display:

  • Buy points at swing lows

  • Sell points at swing highs

And include a live dashboard table showing:

  • Account Balance

  • Profit Today

  • Total Profit/Loss

  • Current Stop Loss Value ($15)

  • Current Direction (BUY or SELL)

  • Open Trade Profit (if applicable)


EA Dashboard Requirements

The EA must display the same table plus:

  • Equity

  • Current Position Status (Buy / Sell / None)

  • Last Signal Direction

Table must update in real time.


Inputs Required in EA

  • Lot Size

  • DEPTH_ENGINE

  • DEVIATION_ENGINE

  • BACKSTEP_ENGINE

  • Stop Loss USD (default 15)

  • Trailing Activation USD (default 25)

  • Trailing Distance USD (default 20)

  • Trailing Step USD (default 2)

  • Magic Number


Symbols and Compatibility

The EA and Indicator must work correctly on:

  • XAUUSD (Primary)

  • Forex pairs

Must correctly calculate profit and stop loss based on contract size and tick value.


Final Requirements

Please confirm the following when replying:

  1. You understand the swing logic and can convert it accurately

  2. You will deliver both Indicator and EA separately

  3. Dashboard table will be included

  4. Stop loss and trailing will be based on USD value

  5. EA will always re enter the market after stop loss

Please also include your timeline and cost.

Kind regards,



Bewerbungen

1
Entwickler 1
Bewertung
(103)
Projekte
165
24%
Schlichtung
23
9% / 78%
Frist nicht eingehalten
16
10%
Arbeitet
2
Entwickler 2
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
3
Entwickler 3
Bewertung
(16)
Projekte
35
23%
Schlichtung
4
0% / 50%
Frist nicht eingehalten
2
6%
Arbeitet
4
Entwickler 4
Bewertung
(43)
Projekte
53
49%
Schlichtung
6
83% / 0%
Frist nicht eingehalten
0
Arbeitet
5
Entwickler 5
Bewertung
(7)
Projekte
16
44%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
3
19%
Arbeitet
6
Entwickler 6
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(5)
Projekte
6
17%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
17%
Arbeitet
Ähnliche Aufträge
All other Necessary filters already coded , Mostly it is referring to another expert copy pasting . Live Chart Optimization . Optimization from Signal Trigger Point . Apply to stay ahead . While applying please explain the correct trailing stop loss for value gap entries
Patrick 30 - 200 USD
//+------------------------------------------------------------------+ //| EURUSD Daily Strategy EA | //+------------------------------------------------------------------+ extern int MA_Fast = 50; extern int MA_Slow = 200; extern int RSI_Period = 14; extern double RiskReward = 2.0; extern double StopLossMultiplier = 1.5; void OnTick() { if (TimeCurrent() != iTime(NULL, PERIOD_D1, 0)) return;
I can Program or do any Developing for you for MQL5 or 4 I can work 1 - 5 days deposit is required before im doing anything for both our safety as these work takes a lot of time and energy inbox me and we can discuss the job im reliable and trustworthy looking forward to working with you
Ai robot 30 - 50 USD
1️⃣ System Architecture An AI robot typically consists of the following subsystems: 🔹 1. Perception Layer Collects environmental data using: RGB / Depth cameras LiDAR Ultrasonic sensors IMUs (Inertial Measurement Units) Microphones Data is processed using: Computer Vision (e.g., object detection, SLAM) Signal processing Sensor fusion algorithms 🔹 2. Cognition / Intelligence Layer Implements AI models such as
Trailing Stop Based on Thresholds . Other Necessary Filters already Coded . Live Chart Only . The strategy already coded - needs a fresh new draft . To Start from Signal Trigger
MT5 backtestest helper 30 - 200 USD
Sure 😊 — here’s a simple file-style write-up about your robot that you ordered on MetaTrader 4. You can copy it into Word or save it as a document. Title: My Trading Robot on MetaTrader 4 Introduction I recently ordered a trading robot on MetaTrader 4 to help me trade in the financial markets. A trading robot, also known as an Expert Advisor (EA), is a program that automatically analyzes the market and places trades
Data Integrity 500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
I need help in modifying an amibroker AFL indicator the indicator already works but I need per symbol static variable isolation, parameters persistence per symbol after restart, non declining trailing stop logic, parameter auto restore when switching symbols and a global reset function for static variables. For better understanding As discussed, this is the official offer for restructuring my RAD Chandelier stop loss
Gold robot Ga1 30 - 200 USD
mport pandas as pd import numpy as np def detecter_tendance(data): # Code pour détecter la tendance pass def identifier_niveaux(data): # Code pour identifier les niveaux de support et de résistance pass def calculer_stop_loss(tendance, support, resistance): # Code pour calculer les stop loss pass def calculer_profils(tendance, support, resistance): # Code pour calculer les profils mport pandas as pd
Hello there Hpe you are doing good I am in search of a pine script expert developer who can build strategy in apudFlow in pinescript. Kinldy bid on this project if you can do this

Projektdetails

Budget
30+ USD
Ausführungsfristen
bis 10 Tag(e)

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0