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

Lavoro terminato

Tempo di esecuzione 2 giorni
Feedback del cliente
Great service. Fast communication and patient developer.
Feedback del dipendente
thanks him for job. looking forward to have more jobs.

Specifiche

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)

Con risposta

1
Sviluppatore 1
Valutazioni
(30)
Progetti
55
22%
Arbitraggio
12
67% / 8%
In ritardo
2
4%
Gratuito
2
Sviluppatore 2
Valutazioni
(52)
Progetti
97
24%
Arbitraggio
11
18% / 18%
In ritardo
12
12%
In elaborazione
3
Sviluppatore 3
Valutazioni
(158)
Progetti
175
43%
Arbitraggio
6
0% / 67%
In ritardo
8
5%
Gratuito
Ordini simili
Hi Guys, I am looking to someone that can generate an indicator for MT4 as explained below. Basically I would need that the indicator point out the price that will close my position in stop out/margin call. The indicator should pick automatically the level of trade out for the broker (which can be different from a broker to another broker) It should write (ideally on the bottom on the left) the following information
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money
I need an MT5 EA that can do the following: I have to give the EA a price in advance, when the price is reached the EA has to automatically place a buy stop or sell stop order 0.5 pips below or above the price. Is this possible
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hello, I am looking for a professional programmer to create a trading expert on the MT4 platform, integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. Further details will be provided to the applicants later
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
NADGIO 30+ USD
I need a developer that can convert two Buy and Sell indicators into a trading robot. the indicators has an input parameter, this should be made available for adjustment. Features 1. Break Even 2. Trailing Stop 3. Global TP and SL 5. Time Filter 6. News Filter (If possible)
I need a developer who can convert trading view indicator in to mt5 expert advisor with some modifications. The other details will shared once chosen the developer. Looking for someone who has good knowledge of forex, mql5,and pine script

Informazioni sul progetto

Budget
30+ USD
IVA (21%): 6.3 USD
Totale: 36.3 USD
Per lo sviluppatore
27 USD
Scadenze
a 3 giorno(i)