Obba EA

仕事が完了した

実行時間8 日

指定

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) 

応答済み

1
開発者 1
評価
(21)
プロジェクト
30
57%
仲裁
0
期限切れ
1
3%
仕事中
2
開発者 2
評価
(102)
プロジェクト
159
21%
仲裁
23
9% / 78%
期限切れ
16
10%
取り込み中
3
開発者 3
評価
(3)
プロジェクト
5
40%
仲裁
2
0% / 50%
期限切れ
1
20%
4
開発者 4
評価
(1)
プロジェクト
2
0%
仲裁
0
期限切れ
0
5
開発者 5
評価
(151)
プロジェクト
189
57%
仲裁
10
80% / 0%
期限切れ
0
仕事中
パブリッシュした人: 1 code
6
開発者 6
評価
(77)
プロジェクト
241
73%
仲裁
7
100% / 0%
期限切れ
1
0%
7
開発者 7
評価
(11)
プロジェクト
15
20%
仲裁
6
0% / 100%
期限切れ
3
20%
類似した注文
hi i am looking a EA which will have following 1. daily drawdown limit and profit target, after hit stop trading. 2. Max overall drawdown limit 3. Major News filter 4. Risk per trade % 5. No Martingale, grid, reverse hedging strategy trend following, session breakout, liquidity sweep, risk base fixed. thanks
-I am looking for an experienced MQL5 developer to build a custom MT5 Expert Advisor based on a clear, rule-based trading logic. This project is focused on structure, discipline, and long-term robustness rather than aggressive or experimental approaches. The EA will be based on a single coherent logic and must follow strict execution rules, with clean and professional MQL5 code suitable for controlled testing and
hello great developer Looking for an experienced C#/.NET developer to build a single-file Windows .exe that reads trading signals via Telegram Bot API and semi-automates trade execution on UnderVantage’s custom MT5 platform (UI automation, broker-specific). Requirements (non-negotiable): • C#/.NET only (no Python) • Single standalone .exe • Real Telegram Bot API (no clipboard) • Must work with UnderVantage MT5
Hello, I am a serious buyer looking to acquire an existing, stable, and profitable Expert Advisor (EA) designed specifically for: 👉 Gold (XAUUSD) This is a full buyout request, including complete source code and full ownership. ⚠️ I am NOT looking to build a new EA from scratch. Only ready-made, proven systems with real performance history. ✅ EA Requirements (Strict) 📌 Symbol & Strategy ✔ Trades Gold only (XAUUSD)
Create an automated trading robot that can execute trades on my behalf without requiring manual intervention.The robot should be able to monitor market conditions, execute trades, manage risk, optimize performance
I’m looking to hire an experienced MQL5 developer to help me build a custom Expert Advisor (EA) that combines 4 trading strategies into one smart, modular EA: ✅ Price Action-Based Entries ✅ Trendline Continuation or Breakout Recognition ✅ Structure Breakout & Retest Entries ✅ Price hit the support and show sign of reversal 📈 EA Concept Overview: The EA will: Analyze market structure (HH, HL, LH, LL)
We are looking to acquire an existing, stable, and profitable EA , specifically one that trades using price action–based logic . The EA must operate as a day-trading system with proper Stop Loss and Take Profit , and must NOT use grid, martingale, averaging, or high-frequency scalping. This is a full buyout request — we want to purchase the entire strategy together with the complete source code . We are serious
1.RSI strategy for gold , use RSI to identify overbought (above 70)and oversold (below 30) conditions. .Implement entry signals when RSI crosses these thresholds. 2.Risk management , set a maximum percentage of account equity per trade 1-2 % . Implement stop loss and take profit levels to limit loses and lock in gains. .Apply a maximum draw down limit to prevent significant losses. 3. Trade execution , ensure proper
Hedge Grid EA 50+ USD
I dont know anything about trading. I am looking for a mql5 code, which can place buy and sell at same time (Hedged grid EA). If any one have any such code developed already, please share me more details on it. I'm willing to purchase. Thank you
I need a MetaTrader 5 Expert Advisor that will: 1. Detect when any position from a group of trades (same symbol, same entry price) closes in profit (TP1 hit). 2. When the first profitable close of a group occurs, automatically move the SL of all remaining open positions in that group to their entry price (breakeven). 3. The groups will be opened by a separate EA (such as a signal copier), so no trade opening logic

プロジェクト情報

予算
30+ USD