Obba EA

MQL5 指标 专家

工作已完成

执行时间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
等级
(8)
项目
9
56%
仲裁
0
逾期
0
工作中
2
开发者 2
等级
(53)
项目
76
14%
仲裁
3
33% / 33%
逾期
7
9%
已载入
3
开发者 3
等级
(2)
项目
3
0%
仲裁
1
0% / 0%
逾期
1
33%
空闲
4
开发者 4
等级
项目
1
0%
仲裁
0
逾期
0
空闲
5
开发者 5
等级
(95)
项目
117
38%
仲裁
9
89% / 0%
逾期
0
空闲
6
开发者 6
等级
(61)
项目
187
73%
仲裁
4
100% / 0%
逾期
1
1%
工作中
7
开发者 7
等级
(8)
项目
8
13%
仲裁
3
0% / 67%
逾期
1
13%
工作中
相似订单
I need two trading view indicators to be on Mt4 .i want them to work the same way that they do on trading view if possible.i will send the indicators
Function (A) simple to do___________________________________________________ //+------------------------------------------------------------------+ //| Expert Tick Function | //+------------------------------------------------------------------+ void OnTick() { F1(); F2(); F3(); } //+------------------------------------------------------------------+ bool F1(){ extern bool F1(); Set to external (false) or (true)
// // @author LazyBear // // If you use this code in its original/modified form, do drop me a note. // study(title="Market Cipher B Free version with Buy and sell", shorttitle="Cipher_B_free") n1 = input(10, "Channel Length") n2 = input(21, "Average Length") obLevel1 = input(60, "Over Bought Level 1") obLevel2 = input(53, "Over Bought Level 2") osLevel1 = input(-60, "Over Sold Level 1") osLevel2 = input(-53, "Over
If i can get the done asap that would be awesome This EA uses the indicator so name of the indicator must me matched in the expert for the ea to function properly those with experience understand im sure thank you I want to change 1 EA & indicator name these are the name changes i need for the ea 4 total Bank Executive PLUS Bank Specialist PLUS Bank Stimulus PLUS Bank wealth PLUS these are the name changes i need for
i want a robot and an indicator that uses macd..bolingerbands And emas As well as fibonacci retracement confirmation from SMC strategy , OB+CHoCH And RTO i want it to print SL and TP using High and Lows
2 indicators 30+ USD
Need 2 visual indicators. Visual examples under attachment. A) indicator shows a price on horizontal trendline and hides it from the price bar. 1)option to configure font size and trendline color; 2)option to choose trendline style; 3)option to choose on what timeframe/s trend lines will appear. B) indicator allows to represent a certain time period on a different background. 1)option to choose on what timeframe it
Hello! I want to convert an existing open source indicator for tradingview to mql5. Its an orderblock indicator also showing horizontal bullish/bearish volume. My expectation of this is the following: The orderblocks will apear on the chart at exactly the same place with top/bottom etc. The bullish and bearish volume is somehow displayed/indicated. (The values of the orderblocks are retrieveable to develop an EA in
Hi, Thanks for looking at my requirement. Here are the details of the job and right now, we do have 2 jobs to do in same file. The clear detailed explanation along with the pictures are in the google drive link : https://drive.google.com/drive/folders/14KMGzunkE-Hbg0eK6iUrs4DNvRetTJYc?usp=sharing Also, i am into this coding thing for more than 2 years now full time. I am a math guy and not a coder. So the
Hello, I need an expert that can help me to develop an EA. That can also work while I open trade on phone, can I get this done? I need video demo and work sample. Thanks
Convert Tradingview indicator Pine Script to MQL4 language ( indicator/EA) Hi , I need a script written for Auto trading bot to trade on Trading View. This is a simple strategy to trade Renko chart on Trading view. The trading bot will have rules for entry and exit. Stop loss and Take Profit. order size by x% of equity. Daily profit target in pips. I want an experienced Trading View Pine script coder please! Thanks

项目信息

预算
30+ USD
开发人员
27 USD