Obba EA

İş 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
(11)
Projeler
14
50%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
2
Geliştirici 2
Derecelendirme
(59)
Projeler
84
14%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
7
8%
Yüklendi
3
Geliştirici 3
Derecelendirme
(2)
Projeler
3
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
1
33%
Çalışıyor
4
Geliştirici 4
Derecelendirme
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(99)
Projeler
123
39%
Arabuluculuk
9
89% / 0%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(63)
Projeler
195
73%
Arabuluculuk
4
100% / 0%
Süresi dolmuş
1
1%
Serbest
7
Geliştirici 7
Derecelendirme
(8)
Projeler
8
13%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
1
13%
Çalışıyor
Benzer siparişler
Variable Inputs to be added Order Type : Market , Pending Trade Type : Buy, Sell , Buy & Sell Pending Pips Step : ( Pips Value can be negative or positive to decide on what type of Pending Order ) // If trade type Buy is selected Close Type : Close All ( Bulk Close Option in MT5 ) , Close Individually Close Option : %of Equity , %of Balance , Amount $ , %of No: of Trades Close Type : Buy Only , Sell Only , Buy & Sell
Olá! Tenho 4 arquivos que gostaria que fossem modificados para uso no mt5 1.color-fisher-m11 - Seria criar 1 buffer para cada cor de barra do histograma e fazer com que o cálculo fique o mais próximo da versão do mt4. 2.Caso a opção 1 não seja possível, Realizar o port/conversão do arquivo "FISHER SMOOTHING MT4" para ser usado no mt5 de maneira que ele possua apenas dois buffers e o cálculo seja exatamente igual ao
I need the service of programmer that can correct an existing EA code and turn it to a running Robot/EA. My code current has about 85 lines of coding mql5 coding errors
hello there I need a copy trade for mt4 can ANYONE help me with and let discuss on how to go about it kindly send me message to signify and let discuss mind you i need this urgently let connect to discuss and conclude
I would like the better volume indicator 1.6 in a scanner format. Scanning multiple timeframe and pairs of which can be picked. Would like it to provide all standard notifications and also if pressed to go to the a template timeframe and pair. *To be placed in a table format as the one added. To be able to add which time frame you want to see. *To advise me of the following Climax High - turn the text green High
Hello, i have an existing EA where i check if there are open positions on any symbol and on the same day it is programmed with two for loops but is does not work. it closes some positions but not all single positions if there is one position on any symbol on a certain day : close that position if there are more positions on that symbol on a certain day : do nothing so close all single positions of each symbol on a
I want to modify my Expert Advisor and add the following details below 1. Add Money Flow Index Indicator (can be enable and disable) 2. Add Range 3. Add Range Multipier and level 4. Add lot multiplier and increment 5. Add TP by level Tp1 and Tp2 6. Add Trailing ( Trailing Start and Stop) 7. Add Max Percentage to Stop 8. Add Balance and Equity on the screen Please see attached picture what it precisely look like
Only bid if you can complete the task with the stated amount. I need someone to do some 3 main changes to my EA. The chaeges are outlined in the doc I will provide. We'll first have to do the first change, then we'll proceed to now fully engage and have the projrct awarded
Hello there, am in need of an expert pinescript programmer who can work on an existing code to add some indicators and features. Please bid if you understand pinescript well and can work on existing code
SNIPER ENTRY 30+ USD
1. Technical Analysis: Support and Resistance Levels: Look for areas where the price has historically bounced or reversed. Entering near these levels can increase the odds of a successful trade. Candlestick Patterns: Identify reversal patterns like pin bars or engulfing candles at support/resistance zones. 2. Indicators: Moving Averages: Use short-term moving averages (like the 50 or 200-day) to identify trends. A

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD