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

Auftrag beendet

Ausführungszeit 2 Tage
Bewertung des Kunden
Great service. Fast communication and patient developer.
Bewertung des Entwicklers
thanks him for job. looking forward to have more jobs.

Spezifikation

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)

Bewerbungen

1
Entwickler 1
Bewertung
(31)
Projekte
56
21%
Schlichtung
12
67% / 8%
Frist nicht eingehalten
2
4%
Frei
2
Entwickler 2
Bewertung
(54)
Projekte
102
23%
Schlichtung
12
25% / 17%
Frist nicht eingehalten
13
13%
Frei
3
Entwickler 3
Bewertung
(171)
Projekte
195
42%
Schlichtung
13
8% / 54%
Frist nicht eingehalten
9
5%
Frei
Veröffentlicht: 3 Beispiele
Ähnliche Aufträge
Richard 30+ USD
The best way forward to the future that is all over between the market in all orders for us and our team to make good projects with you on the general level
I am looking for a developer to create a trading robot (EA) to trade XAUUSD, NAS100 and SPX500. The rules are as follows: Buy when the 2 EMA crosses over the 10 EMA and price closes over the 50 ema. Sell when the 2 EMAs cross below the 10 EMAs and the price closes below the 50 EMAs. The take profit and stop loss can be adjusted by me selecting from a drop-down box. I am open to other parameters to optimize
Description I need an very low latency MT5 Expert Advisor (EA) developed in MQL5 to automate TradingView alerts into MT5 trades for alerts set up done on trading view. The EA must work on both DEMO and LIVE accounts whichever will be attached to MT5 (XM, IC Markets and similar MT5 brokers) and be suitable for fast 1-minute timeframe scalping.End to End solution. Functional Requirements 1. TradingView Integration
Project Overview I am looking for an experienced MQL5 developer to build a custom, prop-firm-compliant trend-following Expert Advisor (EA) for MetaTrader 5 . This EA will be used on prop firm accounts (e.g., FTMO-style rules), so strict risk control and rule compliance are mandatory . This is NOT a grid, martingale, scalping, or recovery EA. The goal is consistency, rule compliance, and capital preservation , not
I would like to buy ea that is proven to be good need to have stable profit and can be very unstable DD but not more than 40 %you can send eas in dm for sale. I am looking of an Expert Advisor (EA) that has undergone independent validation and demonstrates a capability to successfully navigate prop firm challenges, as well as efficiently manage funded accounts. It is imperative that you provide a comprehensive
I am looking of an Expert Advisor (EA) that has undergone independent validation and demonstrates a capability to successfully navigate prop firm challenges, as well as efficiently manage funded accounts. It is imperative that you provide a comprehensive explanation of the strategy utilized by your EA, along with a demo version that has a 30-day expiration. This will facilitate extensive back testing and forward
I am seeking a highly skilled developer to build a fully functional automated Expert Advisor for MetaTrader 5 (MQL5)- XAUUSD fast in and out EA scalper that opens multiple trades following trend, uses dynamic lot sizing, and has to be – 24/5 unlimited. require the development of a high-speed, continuous fully automated trading Expert Advisor (EA) for MetaTrader 5, optimized for live trading on ICmarkets. The EA must
Hellow,l hope you are well,l am writing to place an order for a professional trading robot.l am looking for a reliable,well optimized robot that can trade efficiently,manage risk properly and deliver consistent performance in the market,I am particularly interested in a trading robot that uses a proven and transparent strategy,has strong risk management features,works well on common trading platforms,is suitable for
I am looking for an experienced MQL5 developer to build a professional MT5 software (indicator or semi-automated EA) for metals and major forex pairs. 📌 PLATFORM & MARKETS Platform: MetaTrader 5 Instruments: XAUUSD (Gold vs USD) XAGUSD (Silver vs USD) EURUSD GBPUSD USDJPY Trading styles: Scalping Intraday / short-term swing 🎯 MAIN OBJECTIVE I do NOT want an aggressive fully automated robot. I want a
I am seeking an experienced freelance marketing and algorithmic trading specialist to develop a user-friendly automated trading bot for the Pocket Option platform. The system should feature a simple and secure interface that allows direct login using my existing credentials. The bot will be designed to operate exclusively on multiple OTC currency pairs (a minimum of 10, such as EUR/USD OTC, GBP/JPY OTC, and similar

Projektdetails

Budget
30+ USD
Ausführungsfristen
bis 3 Tag(e)