Obba EA

MQL5 Indicateurs Experts

Tâche terminée

Temps d'exécution 8 jours

Spécifications

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) 

Répondu

1
Développeur 1
Évaluation
(8)
Projets
9
56%
Arbitrage
0
En retard
0
Travail
2
Développeur 2
Évaluation
(53)
Projets
76
14%
Arbitrage
3
33% / 33%
En retard
7
9%
Chargé
3
Développeur 3
Évaluation
(2)
Projets
3
0%
Arbitrage
1
0% / 0%
En retard
1
33%
Gratuit
4
Développeur 4
Évaluation
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(95)
Projets
117
38%
Arbitrage
9
89% / 0%
En retard
0
Gratuit
6
Développeur 6
Évaluation
(61)
Projets
187
73%
Arbitrage
4
100% / 0%
En retard
1
1%
Travail
7
Développeur 7
Évaluation
(8)
Projets
8
13%
Arbitrage
3
0% / 67%
En retard
1
13%
Travail
Commandes similaires
I have a trading strategy using two custom indicators that I would like be converted into an EA. There are technically two trading strategies that can be used or a combination of entry and exit conditions. Each trading strategy has its own entry and exit conditions, and I would like the user to be able to select which entry and exit conditions they want to use (confluence open, confluence close, reversal open
I am looking for an experienced MQL5 programmer to create a custom Expert Advisor (EA) or utility that connects my MT5 signal provider to Telegram. The primary objective is to forward signals from the MT5 platform to a designated Telegram channel. Requirements: The EA or utility should automatically send signals from MT5 to the Telegram channel/group. Support for customization, such as filtering signals based on
Trade methodology based on Red and Green lines entering Overbought / Oversold zone. Using confluence of Higher time frame, Moving Average a trade can enter when there is a strong slope angle. Market Base Line is used to determine overall market sentiment. TDI indicator uses TDI Main and TDI Signal line to generate trades. These two values must cross. The slope measures the Current and Previous values of TDIMain. User
Hi here, i need an Expert who can create an Tradingview indicator that gives clear entry and exit signals kindly bid on this if you can do it I can send you a reference video
Super Trend 30+ USD
If Ema 75 is above price, CCI period 15 crosses below 180 level and previous 7 candles closes are below ema 75 then sell on candle close. The EA is a sell only EA please add stop loss and take profit box so I can add the stop loss and take profit values that I desire
DAY integration 50+ USD
Day integration function MONDAY TILL SUNDAY TRUE OR FALSE TRUE OR FALSE OPTION to let trades running even when the day after is set to FALSE FALSE option trades should be closed when SUNDAY trades are open and it becomes MONDAY and money is FALSE. When trades have been opened on SUNDAY for example and MONDAY is set to TRUE it needs to let the trades running from SUNDAY on monday until close even when MONDAY is set to
Looking for an expect programer am seeking assistance to review and test my trading strategy. Additionally, I need help installing it on my MT5 account. Furthermore, I require support for implementing the strategy in Python for Tradervate/NinjaTrader. Please let me know how we can proceed
I need someone who can copy trade from one tradovate account to another one A very bold expert that can render this service with a fast time frame, be plain and direct with your response and also let me know if you'll need anything from my end aside I pay
Hello! I want to create a trading robot fox xauusd; mql5; based on the 30m timeframe. For a BUY position I want: the "3" candle to be bullish; "2" candle to be bearish; "1" candle to be bullish with the close above the open of "2" candle. Candle "1" needs to have a top wick bigger than 3 pips (30 points). When this happens open a BUY position at the open of the next candle (candle "0" as i show in the image) with the
Time Range Breakout 50 - 200 USD
I want a breakout Expert developed, where I can set the Range start time and range end time. At the end of the range the expert places a Buy Stop at the High and a Sell Stop at the Low. The Take profit and stop loss are set in the inputs. The most important aspect is the way it keeps replacing stop orders. So for example if I have the Max Daily Orders set to 3, the expert will keep replacing the buy stop and sell

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD