Obba EA

MQL5 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 8 días

Tarea técnica

I have this indicator that I use for my strategy and I want make it into an EA

/@version=5
indicator("Swing High/Low with Horizontal Lines", overlay=true)

// Inputs
barsback = input(2, title='Bars back to check for a swing')
futureBars = input(10, title='Number of future bars for horizontal line')
showSwings = input.string("Both", title="Show Swings", options=["Both", "Highs", "Lows"])
maxSwings = input.int(5, title="Maximum number of swings to show", minval=1)

// Function to detect swing highs and lows
swing_detection(index) =>
    swing_high = true
    swing_low = true
    for i = 1 to barsback
        if high[index - i] >= high[index] or high[index + i] > high[index]
            swing_high := false
        if low[index - i] <= low[index] or low[index + i] < low[index]
            swing_low := false
    [swing_high, swing_low]

// Detect swings for the current bar
[swing_high, swing_low] = swing_detection(barsback)

// Initialize arrays for swing lines and their end bars
var line[] swingHighLines = array.new_line()
var int[] swingHighEndBars = array.new_int()
var line[] swingLowLines = array.new_line()
var int[] swingLowEndBars = array.new_int()

// Function to draw lines
draw_line(lineArray, endBarArray, index, price, color) =>
    if array.size(lineArray) >= maxSwings
        line.delete(array.shift(lineArray))
        array.shift(endBarArray)
    newLine = line.new(x1=bar_index - index, y1=price, x2=bar_index - index + futureBars, y2=price, color=color, width=2)
    array.push(lineArray, newLine)
    array.push(endBarArray, bar_index + futureBars)

// Check if the line should be extended or stopped
update_lines(lineArray, endBarArray) =>
    for i = 0 to array.size(lineArray) - 1
        lineId = array.get(lineArray, i)
        endBar = array.get(endBarArray, i)
        price = line.get_y1(lineId)
        if bar_index <= endBar
            if high >= price and low <= price
                array.set(endBarArray, i, bar_index)
                line.set_x2(lineId, bar_index)
                line.set_extend(lineId, extend.none)

// Conditionally draw swing highs and lows based on user selection and maximum number of swings
if (showSwings == "Both" or showSwings == "Highs") and swing_high
    draw_line(swingHighLines, swingHighEndBars, barsback, high[barsback], color.red)

if (showSwings == "Both" or showSwings == "Lows") and swing_low
    draw_line(swingLowLines, swingLowEndBars, barsback, low[barsback], color.green)

// Update lines to stop extending when crossed
if showSwings == "Both" or showSwings == "Highs"
    update_lines(swingHighLines, swingHighEndBars)

if showSwings == "Both" or showSwings == "Lows"
    update_lines(swingLowLines, swingLowEndBars)


Identify swings using the above indicator way of identifying them 

Compare two charts (Allow me to choose which charts + allow me to use the time frame) (time frame should be in the same for both of them)

Mark the common swings (Common swing is a swing that has formed on both choose charts within the same candle on the selected time frame 

Once one of the common swings broken on only 1 chart and not on the other (That is called Obba) set a stop order on the pair that hasn’t broken the common swing
For example 

Pair 1 broke the common swing high but pair 2 didn’t, then Set stop order on pair 2 on the low of the last formed candle, set SL on the common swing 
Set Tp 2.5RR

If the common swing is broken before order activation then cancel the order 

If the order is not activated and new candle formed and the common swing still not broken then cancel the order and set it again on the low of the last formed candle 

When price reaches 1.5RR move stop loss to breakeven and close 0.25% of the open lot size

Only 1 trade per pair a time (you can enter for the other pair) unless the open trade is on breakeven 


Maximum loses per day ( variable) 

Maximum Tp ( variable)

Chosen Risk in percentage from the equity capital ( variable) 

Han respondido

1
Desarrollador 1
Evaluación
(21)
Proyectos
30
57%
Arbitraje
0
Caducado
1
3%
Libre
2
Desarrollador 2
Evaluación
(91)
Proyectos
131
18%
Arbitraje
4
25% / 25%
Caducado
12
9%
Trabajando
3
Desarrollador 3
Evaluación
(3)
Proyectos
5
40%
Arbitraje
1
0% / 0%
Caducado
1
20%
Libre
4
Desarrollador 4
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(134)
Proyectos
163
52%
Arbitraje
10
80% / 0%
Caducado
0
Trabaja
Ha publicado: 1 ejemplo
6
Desarrollador 6
Evaluación
(75)
Proyectos
227
72%
Arbitraje
6
100% / 0%
Caducado
1
0%
Trabaja
7
Desarrollador 7
Evaluación
(9)
Proyectos
10
20%
Arbitraje
3
0% / 100%
Caducado
2
20%
Libre
Solicitudes similares
I am looking for a MetaTrader 4 (MT4) developer to create a scalping-based Expert Advisor (EA) for the US30 index. The EA will be based on pending orders with trend filtering and equity-based risk management. It should include virtual SL/TP, support multiple pending orders, and be optimized for high-volatility sessions. Only experienced developers with proven MT4 EA development should apply
I have a working Python script that: – captures messages from several Telegram groups (using Telethon), – parses the content (BUY/SELL signals, TP/SL/BE), – logs the data into specific tabs in a Google Sheets file (via gspread). Problem: The script is unstable — it sometimes ignores messages from certain groups, misses replies, or silently stops processing after a few hours. It needs urgent verification and repair
want an aggressive scalping Expert Advisor (EA) for XAUUSD (Gold) on M1 timeframe with the following features: ✅ Uses a combination of EMA, RSI, and ATR for entry signals. ✅ Recovery Mode to increase lot size on confirmed setups to recover losses safely. ✅ Trailing Stop functionality with adjustable start and step parameters. ✅ Stop trading after daily target or daily loss limit is reached. ✅ Money Management (fixed
Plataforma Meta Trader 5 Apertura sesión de Londres. 2 horas de operativa diaria. Índices, especialmente DAX40. Marco temporal de 5 minutos. Apertura automática de operaciones con cierre automático en TP o SL. Operaciones tanto en compra como en venta. Se pueden tomar todas las operaciones posibles, pero no 2 operaciones a la vez, es decir se tiene que cerrar una operación para abrir otra. Si hay una operación
I want a simple expert Advisor based on macd and ema with patial profit taking based on risk to reward, breakeven also based on risk to reward and trailing also based on risk to reward. stoploss will mostly be placed on candlestick low but instances where there has been a series of candlestick lows, it will be placed on the furthest candlestick low. new trade will be opened when current trade is at breakeven
Contact me only if you can handle my project. I'm looking for a custom MT4 or MT5 server setup that looks and feels exactly like a live trading account but gives me full control over the environment. CONTACT ME IF YOU CAN HANDLE THIS TYPE OF PROJECT ONLY
Hi, I’m looking for an experienced MQL5 developer to replicate an Expert Advisor I currently use for Forex. I don’t have the source code, but I do have all the input settings, behavior structure, and detailed backtesting of how the system should operate. ✅ Basic features the EA should include: Entry logic based on simple technical indicators (e.g., moving average). Take Profit and Stop Loss system using ratios (e.g
i need a developer to code my smc concept only experienced traders contact us we need to finish the job in a short period of time its a simple smc concept all you need is to apply the entry model which i explain to you thank you
I want you to build an Expert Advisor (EA) that mirrors trades between two accounts in opposite directions , maintaining identical TP and SL distances in pips with adjustable lot sizes. The EA logic is as follows: ✅ Core Requirements • EA monitors trades opened on Account A . • When a trade is opened on Account A: • An opposite direction trade is opened on Account B . • The TP and SL distances (in pips) are
Hi, I need an EA for both MT4 and MT5 that pushes JSON data to an API. It needs to push all trade history data, plus the opened trades. It needs to push all account data (including leverage, account type etc), and for trades, it needs to push all the relevant information (open/close time and price, direction, tp/sl levels if set, swap, commission, magic, comment, ticket, etc.) It will send data on the follwing

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD