Convert Pinescript into MQL5 EA

MQL5 Experten

Auftrag beendet

Ausführungszeit 3 Tage
Bewertung des Entwicklers
Good client, very patient

Spezifikation

I have a pinescript which I want to convert to an EA. The following code need to be written in MQL5 (or MQL4).


Does someone have experience with translating pinescript to MQL scripting?

This is the following code:

trategy("Trend analysis", overlay = true)
prd = input(defval = 20, title="Trend analyse", minval = 1, maxval = 50)
Factor=input(defval = 3, title = "ATR Factor", minval = 1, step = 0.1)
Pd=input(defval = 30, title = "ATR Period", minval=1)
minrateu = input(defval = 1.0, title="Min profit Rate if Center Line Used", minval = 0)
usecenter = input(defval = false, title="Use Center Line to Close Entry for 50%")
showpivot = input(defval = false, title="Show Pivot Points")
showcl = input(defval = false, title="Show PP Center Line")
onlylong = input(defval = false, title="Enter Only Long Position")
float minrate = minrateu / 100

float ph = na
float pl = na
ph := pivothigh(prd, prd)
pl := pivotlow(prd, prd)

plotshape(ph and showpivot, text="H",  style=shape.labeldown, color=na, textcolor=color.red, location=location.abovebar, offset = -prd)
plotshape(pl and showpivot, text="L",  style=shape.labeldown, color=na, textcolor=color.lime, location=location.belowbar, offset = -prd)

float center = na
center := center[1]
float lastpp = ph ? ph : pl ? pl : na
if lastpp
    if na(center)
        center := lastpp
    else
        center := (center * 3 + lastpp) / 4

Up = center - (Factor * atr(Pd))
Dn = center + (Factor * atr(Pd))

float TUp = na
float TDown = na
Trend = 10
TUp := close[1] > TUp[1] ? max(Up, TUp[1]) : Up
TDown := close[1] < TDown[1] ? min(Dn, TDown[1]) : Dn
Trend := close > TDown[1] ? 1: close < TUp[1]? -1: nz(Trend[1], 1)
Trailingsl = Trend == 1 ? TUp : TDown

linecolor = Trend == 1 and nz(Trend[1]) == 1 ? color.lime : Trend == -1 and nz(Trend[1]) == -1 ? color.red : na
plot(Trailingsl, color = linecolor ,  linewidth = 2, title = "PP SuperTrend")

plot(showcl ? center : na, color = showcl ? center < hl2 ? color.blue : color.red : na)

ssignal = Trend == 1 and Trend[1] == -1
bsignal = Trend == -1 and Trend[1] == 1

halfexited = false
halfexited := nz(halfexited[1], false)
if change(Trend)
    strategy.close_all()


   
if bsignal
    strategy.entry("Buy", true, comment = "Buy")
if ssignal and not onlylong
    strategy.entry("Sell", false, comment = "Sell")

Bewerbungen

1
Entwickler 1
Bewertung
(35)
Projekte
50
42%
Schlichtung
3
33% / 33%
Frist nicht eingehalten
4
8%
Frei
Ähnliche Aufträge
Just profitable Ea. 30 - 100 USD
Hello, I am looking for a good scalper that can operate on a single chart with multi-currency pairs, including gold and indices( MT4). It should support all brokers, leverage, and be capable of trading with a small deposit with SL and TP.It's important that the robot does not use risky strategies and, most importantly, is profitable. Thank you
everytime the a is greater than zero the value should be saved to be added to the previous value. so you should go back by all the consecutive times a is greater than zero and store the value to be summed i will send you my indicator and will ask you to please fix it
Helo Geeks i need an experienced developer who wil understand the below indicator that will provide the entry,stop loss and take profit. also i will share the source code of the mt4 EA so as he/she can be able to use the indicator to execute trade. note: i have the indicator but i dont have its source code. I only have the source code of the EA that i need this 8indicater to be used to execute trade
I need an EA to set pending order automatically when the price in a ranging/consolidation area after the market price rally or drop. The most important thing is the EA has to detect ranging/consolidation area accurately. This EA will trade on Gold and H1 timeframe only. I will explain the detail about Entry Point, TP and SL, include example trade later, personally. I will offer 30USD as the first payment and i will
Hello there! I am looking for an experienced coder to transform my existing trading system into an automated algorithm for the MetaTrader platform. Key Responsibilities: Interpret and understand the trading system I've designed. Code an algorithm that can execute trading decisions without manual intervention. Test and refine the algorithm for MetaTrader compatibility. Ideal Candidate: Proficient in Python, C++, or
I want a scalping ea robot based on EMA crossover period 5 and shift 2 for boom and crash on Deriv 1. Buy conditions = buy when moving average crosses above the moving average stop loss should be resent low of the candlestick 2 sell conditions= sell when moving average crosses below the moving average and stop loss should be resent high of the candlestick A trailing stop loss should always move with the moving
I need a EA to open 2 trades 1. one trade with a SL and a TP 2. one trade with a SL no TP if the 1st trade takes TP the 2nd trade SL needs to move on break even and trail the trade thereafter. will need the lot size Number of trades
"I need an expert advisor (EA) based on stochastic divergence and candlestick formation. It should be able to identify both hidden and regular divergences. The EA should also include modified risk-reward ratios, modified timeframes, It is important that the EA is 100% accurate. Once an experienced developer applies
Hi I need a experience programmer to build me M and W pattern scanner EA that send alert with arrow on screen without open trades Multiple times frame H4 D1 W1 MN multiple currency pairs and i want to see all historical patterns that already happened
Market entries are only performed between the hours of 8pm est to 10pm est At 8pm the very immediate high and low on the 15 min time frame is marked out Price has to break either the high or low before a trade is considered Selling Execution: After crossing the high on the 1 min time frame I’m looking for there to be a market structure shift with displacement (volume) to show price wants to go in the selling

Projektdetails

Budget
30+ USD
MwSt (21%): 6.3 USD
Insgesamt: 36.3 USD
Für die Entwickler
27 USD