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

Job finished

Execution time 2 days
Feedback from customer
Great service. Fast communication and patient developer.
Feedback from employee
thanks him for job. looking forward to have more jobs.

Specification

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)

Responded

1
Developer 1
Rating
(31)
Projects
56
21%
Arbitration
12
67% / 8%
Overdue
2
4%
Free
2
Developer 2
Rating
(54)
Projects
102
23%
Arbitration
12
25% / 17%
Overdue
13
13%
Free
3
Developer 3
Rating
(171)
Projects
195
42%
Arbitration
13
8% / 54%
Overdue
9
5%
Free
Published: 3 codes
Similar orders
Hello, I'm looking to find out the cost of creating a mobile trading robot. I've tried to describe it as thoroughly as possible in the following document. I look forward to your response. I'd like to know the costs, delivery time, and how you plan to implement it before making a decision
I am offering a ready-to-use trading system that connects MetaTrader 4 signals with automated trading on Polymarket. The system is already fully developed and working. What the system does: The bot copies signals from a custom MT4 indicator and executes trades automatically on Polymarket prediction markets. How it works: A custom MT4 indicator generates BUY or SELL signals using buffers. When a signal appears, it is
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Billionflow 30 - 100 USD
Trading specifications: Indicators: Bollinger band ( Period 40, Deviation 1 apply to close) Moving Average (Exponential ) Period 17 applied to high Moving Average ( Exponential ) Period 17 applied to low But Signal enter a buy trade when prices crosses the lower band of the bollinger band up and also crosses the moving average channel of high and low the reverse is true for sell signal
Hello, I am a user of the "BUY STOP SELL STOP V6" trading bot, which is an advanced Grid System bot. The bot is primarily designed for Gold (XAUUSD), but I want it to work on all currency pairs. "The bot contains a privacy/protection code that prevents it from running on other accounts or being modified on any platform, as it has a client account number lock mechanism" --- Bot Description & Current Settings Bot Type
I need Ea that executes trade based on trading view indicator called Market Structure CHoCH/BOS (Fractal) [LuxAlgo] I need developer to recreate the indicator as an Ea in MQL5 The core of the system will be a structured Market Structure engine that detects CHOCH (Change of Character) and BOS (Break of Structure) Signals will be confirmed once the indicator gave ( the bos/choch) no need to wait candle close
Looking to purchase a Good forex or gold/ BTC trading EA and it's source code. Must be compatible with low budget like less than $500 accounts, Must need no manual intervention and run fully automated. If you are interested in selling me the source code, please share the Read only account access where the EA has already been running on, so i can check past performance and get an idea on how it works or runs. Dont
Hello, I’m looking for an experienced MQL4/MQL5 developer to work with me on an ongoing basis. My clients request services such as: Converting TradingView Pine Script indicators/strategies into MT4 or MT5 Expert Advisors Converting MT4 EAs to MT5 (and MT5 to MT4) Compiling and fixing existing MQL4 / MQL5 EA code Adding simple features like alerts, SL/TP, lot size, and basic money management This job is for
I am looking someone to create an EA based on my MACD Histo indicator / strategy from Pinescript. I will send it to you for you to replicate. The EA shall have: - Divergence length in bars, min and max values. - Pivot Logic - Entry on close of divergence confirmation bar. - Dynamic lot size dependent on SL/TP, in monetary value. - SL / TP in percent away from entry, separate values for long and short. - Time, day and
Hello, I have a breakout EA with reversal logic. I own the full source code for both MT4 and MT5 versions. I need the modifications implemented for both MT4 and MT5 versions. I need several modifications: – Multiple reversals with configurable parameters – Breakeven functionality – Entry only after candle close beyond range + offset – Time-based activation – Alternative offset calculation logic – Automatic close at

Project information

Budget
30+ USD
Deadline
to 3 day(s)