Obba EA

MQL5 Göstergeler Uzmanlar

İş tamamlandı

Tamamlanma süresi: 8 gün

İş Gereklilikleri

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) 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(23)
Projeler
34
53%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
1
3%
Serbest
2
Geliştirici 2
Derecelendirme
(104)
Projeler
168
24%
Arabuluculuk
23
9% / 78%
Süresi dolmuş
16
10%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(3)
Projeler
5
40%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
1
20%
Serbest
4
Geliştirici 4
Derecelendirme
(1)
Projeler
2
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(155)
Projeler
193
58%
Arabuluculuk
10
80% / 0%
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 1 kod
6
Geliştirici 6
Derecelendirme
(77)
Projeler
243
74%
Arabuluculuk
7
100% / 0%
Süresi dolmuş
1
0%
Serbest
Yayınlandı: 1 makale
7
Geliştirici 7
Derecelendirme
(11)
Projeler
15
20%
Arabuluculuk
6
0% / 100%
Süresi dolmuş
3
20%
Serbest
Benzer siparişler
My requirement i have mention in the video. I explain it from a screen record will be more clear https://www.youtube.com/watch?v=oTCWx7tfckM Mainly RSI martingale TP/SL lot size will auto base on the profit/loss i wish to risk
We have an existing Expert Advisor (EA) for MetaTrader 4. We need to restrict the EA so it only works on specific MetaTrader account ID(s). Key Requirements: Add account ID locking functionality to the EA. EA should run only on authorized account number(s). If used on any unauthorized account, the EA should: Stop trading, and/or Display an error message (e.g., “Unauthorized Account”). Ability to easily update or add
I hope to acquire a profitable and existing expert advisor (EA) from the gold market, with complete source code, to add to our client portfolio. you can WECHAT: Faca7898 Please note EA when adding friends. It should be clarified that this does not require you to formulate or design new strategies. If you already have a verified, consistent, and production-ready EA, I am willing to purchase it immediately and engage
Hello I want a very profitable scalping EA , tight stoploss and low drawdown , for Xauusd or any pair, time frame any, daily profit 20$ minimum and minimum deposite 200$ maximum sir
I’m looking for an experienced developer to help build a trading bot for Polymarket , focused on short-term crypto prediction markets (e.g. 5–15 minute intervals). The strategy is fully rule-based and operates on binary outcome markets (YES/NO shares). The bot should be able to: monitor live market prices and probabilities, execute trades based on predefined conditions, manage positions dynamically before market
This project is to create or provide a back testable renko chart builder/EA for MT5 which must be: Back testable using strategy tester Optimisable using strategy tester Accurate in terms of price, including wicks Accurate in terms of time, with no future date issue. Able to produce both normal and median renko. The renko must have been developed by the developer OR have been used previously by the developer for off
Hi developers, I want to create a Trading Assistant. The minimum developer experience is someone who has created a Trading Assistant before. The developer has worked on more than 100 job orders The Trading Assistant uses a Risk-Reward Ratio, a movable panel, an expandable panel with a hidden menu, and a modern UI. Thank you
Core Requirements: Platform: MetaTrader 5 (MT5). Symbol: XAUUSD (Gold). Timeframes: M1 and M5 (user selectable). Trading Style: Scalping with controlled risk (not aggressive or high-risk strategies) -> adjustable, even better. Execution: Fast execution, optimized for gold market conditions. Frequence = adjustable, but there should be 10-20 trades per day. Strategy Logic: Use a reliable and conservative strategy
Eu preciso disso. A linha central do TMA (17,5,1.5) será a principal referência. Outra linha de média móvel (AVG) de 3 períodos decrescentes 2. As ordens serão as seguintes: abaixo, somente compra de TMA; acima, somente venda de TMA. O sinal de entrada será o seguinte: se o preço estiver acima da Média Móvel Tarifária (TMA), será apenas para venda; quando o preço se mantiver abaixo da Média Móvel Tarifária (AVG)
Hola, estoy buscando un desarrollador MQL5 con experiencia real en trading algorítmico. Necesito un EA para XAUUSD con: Control de Drawdown filtro de mercado (tendencia vs rango) gestión de riesgo dinámica optimización para sesiones específicas Antes de avanzar quisiera saber: ¿Qué experiencia tienes con EAs en MT5? ¿Has trabajado con estrategias de oro (XAUUSD)? ¿Cómo gestionas el drawdown en un bot? ¿Puedes mostrar

Proje bilgisi

Bütçe
30+ USD