Hey there' Just need to convert pinescript to MQL in MT5.

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
Great service. Fast communication and patient developer.
Comentario del Ejecutor
thanks him for job. looking forward to have more jobs.

Tarea técnica

Hi,

I have backtested this indicator on TradingView, and it works quite well. However, the problem lies in manually opening each trade due to a lack of time.

This is the idea about automation.

The critical factor is position sizing; the stoploss isn't fixed in terms of pips but depends on price action, as shown in the attachment (SL always on line of previous color)

Stoploss should be set at 0.25% of the capital per trade, and the take profit at 2R.

My envisioning of the EA is as follows: when a bomb,hammer (signal for opening long/short) appears on the chart, signals could repaint!! Therefore, it should always wait for the candle to close. If the signal remains after the candle closes, the position should be opened immediately on the next candle.

The position is opened with the correct size, considering proper risk management.


The EA strategy should resemble the following + figure out position sizing.


Hope that it's technically possible to create EA by these terms.

Thanks in advance!


//@version=4

strategy("Follow Line Indicator Strategy", overlay=true)

BBperiod = input(defval = 20, title = "BB Period", type = input.integer, minval = 1)
BBdeviations = input(defval = 0.1, title = "BB Deviations", type = input.float, minval = 0.1, step=0.05)
UseATRfilter = input(defval = true, title = "ATR Filter", type = input.bool)
ATRperiod = input(defval = 5, title = "ATR Period", type = input.integer, minval = 1)
hl = input(defval = false, title = "Hide Labels", type = input.bool)

BBUpper=sma (close,BBperiod)+stdev(close, BBperiod)*BBdeviations
BBLower=sma (close,BBperiod)-stdev(close, BBperiod)*BBdeviations

TrendLine = 0.0
iTrend = 0.0
buy = 0.0
sell = 0.0

BBSignal = close>BBUpper? 1 : close<BBLower? -1 : 0

calculateStopLossLevel() =>
    var float stopLossLevel = na
    stopLossLevel := na(stopLossLevel[1]) ? TrendLine : stopLossLevel[1]
    stopLossLevel := iTrend == 1 and iTrend[1] == -1 ? TrendLine : stopLossLevel
    stopLossLevel := iTrend == -1 and iTrend[1] == 1 ? TrendLine : stopLossLevel
    stopLossLevel

long_stop_level = calculateStopLossLevel()
short_stop_level = calculateStopLossLevel()

strategy.exit("Long Stop", from_entry="Buy", loss=long_stop_level)
strategy.exit("Short Stop", from_entry="Sell", loss=short_stop_level)

if (BBSignal == 1 and UseATRfilter)
    TrendLine := low - atr(ATRperiod)
    if (TrendLine < TrendLine[1])
        TrendLine := TrendLine[1]
else if (BBSignal == -1 and UseATRfilter)
    TrendLine := high + atr(ATRperiod)
    if (TrendLine > TrendLine[1])
        TrendLine := TrendLine[1]
else if (UseATRfilter)
    TrendLine := TrendLine[1]

if (BBSignal == 1 and not UseATRfilter)
    TrendLine := low
    if (TrendLine < TrendLine[1])
        TrendLine := TrendLine[1]
else if (BBSignal == -1 and not UseATRfilter)
    TrendLine := high
    if (TrendLine > TrendLine[1])
        TrendLine := TrendLine[1]
else if (not UseATRfilter)
    TrendLine := TrendLine[1]

iTrend := nz(iTrend[1])
iTrend := TrendLine > TrendLine[1] ? 1 : TrendLine < TrendLine[1] ? -1 : iTrend

buy_signal = iTrend[1] == -1 and iTrend == 1 ? 1 : na
sell_signal = iTrend[1] == 1 and iTrend == -1 ? 1 : na

strategy.entry("Buy", strategy.long, when=buy_signal and na(buy_signal[1]))
strategy.entry("Sell", strategy.short, when=sell_signal and na(sell_signal[1]))

plot(TrendLine, color=iTrend > 0 ? color.blue : color.red, style=plot.style_line, linewidth=2, transp=0, title="Trend Line")
plotshape(buy_signal == 1 and not hl ? TrendLine - atr(8) : na, text='💣', style=shape.labelup, location=location.absolute, color=color.blue, textcolor=color.white, offset=0, transp=0, size=size.auto)
plotshape(sell_signal == 1 and not hl ? TrendLine + atr(8) : na, text='🔨', style=shape.labeldown, location=location.absolute, color=color.red, textcolor=color.white, offset=0, transp=0, size=size.auto)

Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(30)
Proyectos
55
22%
Arbitraje
12
67% / 8%
Caducado
2
4%
Libre
2
Desarrollador 2
Evaluación
(52)
Proyectos
97
24%
Arbitraje
11
18% / 18%
Caducado
12
12%
Trabaja
3
Desarrollador 3
Evaluación
(158)
Proyectos
175
43%
Arbitraje
6
0% / 67%
Caducado
8
5%
Trabaja
Solicitudes similares
Good Day I would like to order a trading robot. Pairs: XAUUSD (GOLD) EUR/USD USD/JPY The robot should be trading daily with TP/SL build in, would like to have trailing and stop loss, should execute up to 5 trades (preffarable setting choice) up to 10 trades Los sizes to be choise setting, must also trade major US vews events Like:US- PPI, CPI, NFP, Sales m/m and so on Must also show/display alert when opening
Hello Guys, I need a trading bot for the MT5 to place order based on my trading strategy which is based on - >> entry based on EMA with rejection from specific levels like support and resistance area - levels and time frame i will apply into the robot manually on daily basis. also need - trailing stoploss , shift to breakeven after gaining some points. need a highly expert developer
I have a full strategy based on indicator and candle based on . i would like to make it into a robot which will trade for me on a specific time and specific rules. i need a person who can do this project for me. If you have done this type of job . you are most welcome for this. Apply only if you know binary trading option and binomo trading platform well and how it works
Enter buy trade at close of candle when bar closes above the 3 emas. Emas are 34 ema, 64 ema and 128 ema. For a buy trade the 34 ema must be above the other two emas. The 64 ema should be in the middle. The 128 ema should be below the other two emas. For a buy trade the Awesome Oscillator should be above the middle line and colored green. Exit a buy trade when price touches 64 ema. Sell trade same conditions as buy
I want to make AI based on Attached Picture Swing High low. If you have experience can share demo first. Stop loss, take profit, trailing , break even ,DD etc. also amiable
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Thanks in advance."
Pls I need help I don’t have much but pls accept my little payment for the work thanks 🙏 mt5 file Once it opens buy and move positively to buy let it use auto trailing to follow the trend that’s if I choose to use trailing option and before the trailing starts it must reach the actual profit target example if I set profit target to 500 then once profit is at 500 let trailing immediately protect it and any 1 pip
Hey greetings am in need of a developer that can convert my simple tradingview indicator to MT4 I have the source code of the indicator and is also a public indicator on Tradingview site Kindly bid and let started
Hello my developer colleagues, am also a developer like you but i just hear about this mql site and i will like to sell, develop and build bots for buyer. But i don't know how to become a seller here please i need help in helping me to create a seller account on mql and i will be very glad if you can help me out and i will appreciate you
Preciso de um EA que abra ordens a mercado a partir de um indicador, Ele precisa obter take e stop loss fixos, spread máximo, horários de início e final das operações, meta e stop diário, martingale, painel e a função no script para que eu possa ceder o EA apartir do id do mt4 de terceiros

Información sobre el proyecto

Presupuesto
30+ USD
IVA (21%): 6.3 USD
Total: 36.3 USD
Para el ejecutor
27 USD
Plazo límite de ejecución
a 3 día(s)