Convert Pinescript into MQL5 EA

MQL5 Experten

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
2
Entwickler 2
Bewertung
(574)
Projekte
945
47%
Schlichtung
303
59% / 25%
Frist nicht eingehalten
125
13%
Arbeitet
3
Entwickler 3
Bewertung
(152)
Projekte
228
80%
Schlichtung
19
32% / 42%
Frist nicht eingehalten
11
5%
Frei
Veröffentlicht: 24 Artikel, 1882 Beispiele
4
Entwickler 4
Bewertung
(3)
Projekte
6
17%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
17%
Frei
5
Entwickler 5
Bewertung
(132)
Projekte
178
39%
Schlichtung
4
25% / 50%
Frist nicht eingehalten
14
8%
Frei
6
Entwickler 6
Bewertung
(5)
Projekte
6
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(2)
Projekte
4
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
8
Entwickler 8
Bewertung
(322)
Projekte
499
67%
Schlichtung
5
40% / 0%
Frist nicht eingehalten
4
1%
Frei
Veröffentlicht: 8 Beispiele
Ähnliche Aufträge
Hello 👋 I want to build three bots that work in different ways. I am excited to share this experience with you. I want to finish the first bot first, then we move on to the second bot, and so on. First, about the first bot, I want it this way. I want it to be a member of a public channel on Telegram (but this channel prevents copying messages; I mean, when you long-press a message, you can't copy it). I searched
We need a skilled MT5 developer to build a fully automated Expert Advisor optimized for XAUUSD with low to medium risk and a strict maximum drawdown of 10 percent. Account sizes 20K to 50K USD, including prop firm accounts. Requirements • Full MQ5 source code with clear comments • Commercial usage rights for our company • Strategy: trend or breakout, strict SL and TP on every trade, no martingale, no unlimited grid •
Hi! I’m looking for an experienced ThinkorSwim/ThinkScript developer to implement it exactly as specified. Please read the requirements below carefully and reply with: (1) a fixed-price quote, (2) earliest start date and ETA, (3) a short summary of similar ThinkScript work you’ve done (links or screenshots if available), and (4) any questions or clarifications. Project summary Create a ThinkorSwim (ThinkScript)
I'm Looking for a competent, professional and experienced MQ5 Coder who has a professional Forex Trader Mindset (Not just a programmer) who can review the strategy, logic and structure in detail and then accordingly review the code and make the strategy more robust by implementing further layers or robustness to make it fully functional. If you can optimize it for various forex pairs, indices, crypto and commodities
Convert an MQL5 script to MQL4. The code uses the ALGLIB library. Please ensure the converted MQL4 version produces consistent results with the original MQL5 program. The MQL5 script is attached
I want to hire a professional MQL5 developer to build an automated Expert Advisor (EA) for MetaTrader 5 that trades using Institutional Order Blocks (OB) logic combined with BOS (Break of Structure) and ChoCH (Change of Character) confirmations. The EA should identify valid order blocks (“Boss” phase) and execute precise trades (“Charge” phase) with full risk and trade management. The idea is based on the “Smart
Tradelocker bot required. *Entry into buying is when, after a minimum of 3 consecutive red candles, the first next one forms an engulfing candle, entry is when engulfing candle closes. *Stop loss at the lowest point of that eng.candle *Take profit RR *Lot size in percentage *need to have working time example 06:00 until 12:00 *The engolfing candle must be same signals like on tradingview, also visible on chart
Hi All, I want to create an Expert Advisor that will be based on specific timing to activate bids and also use positions for the period to take bids. The timing for the bids will have variables as daily, weekly or monthly. A daily means EA will activate everyday after considering prices from the time the market opens to the time specified. Eg if the time specified is 2am, the EA will consider all prices from the
Hi Developers, I would like to order the following EA US30 / DE40 Price action Pending orders including buy and sell stop Ultra micro scalper High frequence Fixed TP & SL Trailing Step / Stop Loss / Start Spread filter Session filter Please check as well the attachment, I would like to have a equal behaviour. Many thanks and best regards, Dominik
I have a proven strategy and a complete, step by step pseudocode blueprint for an ea that scans for Bollinger Band contradictions. I am not a programmer, but I have mapped out the logic. My goal is to build this to create a life-changingopportunity for my family and a dear friends family. I am cash strapped but can offer a small bounty for the programmer who can accurately translate this blueprint into a working .mq5

Projektdetails

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