A tradingview code transform into MT4 expert

MQL4 Experts Scripts

Spécifications

Can anyone transform this following code into a MT4 AE?

it has an avg of 81.2% profit trades. 

 

strategy("Heikin Ashi Strategy  V2",shorttitle="HAS V2",overlay=true,default_qty_value=1000,initial_capital=100000,currency=currency.EUR)

res = input(title="Heikin Ashi Candle Time Frame", type=resolution, defval="60")

hshift = input(1,title="Heikin Ashi Candle Time Frame Shift")

res1 = input(title="Heikin Ashi EMA Time Frame", type=resolution, defval="180")

mhshift = input(0,title="Heikin Ashi EMA Time Frame Shift")

fama = input(1,"Heikin Ashi EMA Period")

test = input(1,"Heikin Ashi EMA Shift")

sloma = input(30,"Slow EMA Period")

slomas = input(1,"Slow EMA Shift")

macdf = input(false,title="With MACD filter")

res2 = input(title="MACD Time Frame", type=resolution, defval="15")

macds = input(1,title="MACD Shift")





//Heikin Ashi Open/Close Price

ha_t = heikinashi(tickerid)

ha_open = security(ha_t, res, open[hshift])

ha_close = security(ha_t, res, close[hshift])

mha_close = security(ha_t, res1, close[mhshift])


//macd

[macdLine, signalLine, histLine] = macd(close, 12, 26, 9)

macdl = security(ha_t,res2,macdLine[macds])

macdsl= security(ha_t,res2,signalLine[macds])


//Moving Average

fma = ema(mha_close[test],fama)

sma = ema(ha_close[slomas],sloma)

plot(fma,title="MA",color=lime,linewidth=2,style=line)

plot(sma,title="SMA",color=red,linewidth=2,style=line)



//Strategy

golong =  crossover(fma,sma) and (macdl > macdsl or macdf == false )

goshort =   crossunder(fma,sma) and (macdl < macdsl or macdf == false )


strategy.entry("Buy",strategy.long,when = golong)

strategy.entry("Sell",strategy.short,when = goshort) 

Répondu

1
Développeur 1
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
2
Développeur 2
Évaluation
(121)
Projets
134
66%
Arbitrage
36
25% / 56%
En retard
22
16%
Gratuit
Publié : 10 codes
Commandes similaires
Job Description: We are looking for an experienced MQL5 developer to create a script or Expert Advisor (EA) that automatically updates the price of a token CFD on MT5, using a live BTCUSD feed. The goal is to make token fully CFD-tradable , with real-time price updates, charts, and client P/L. Clients should be able to trade long or short and view live candles, just like other MT5 CFDs. Scope of Work / Requirements

Informations sur le projet

Budget
25 - 50 USD