A tradingview code transform into MT4 expert

MQL4 Experts Scripts

Termos de Referência

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) 

Respondido

1
Desenvolvedor 1
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(121)
Projetos
134
66%
Arbitragem
36
25% / 56%
Expirado
22
16%
Livre
Pedidos semelhantes
I need an expert to decrypt my itf file using on prorealtime. I forgot my password, so I need to generate the source code. I need someone that can help me to derive source code from the itf file I have
I’m looking for someone experienced with Think or Swim to create a backtesting script for an in-the-money Iron Condor strategy using options on the SPX. The strategy involves setting up 10 contracts of an Iron Condor with a 10-point spread width and a net credit requirement of $11 per contract. The goal is to backtest the performance over the last three years, focusing on trades where the SPX closes outside a
I currently have a license code that connects to my web server, and I add the account number, client name, and expiration date. I’d like something more automated. Currently I allow clients 10 licenses, but adding for them on my side can get exhausting. I’d like a better solution for myself and clients

Informações sobre o projeto

Orçamento
25 - 50 USD
IVA (21%): 5.25 - 10.5 USD
Total: 30.25 - 60.5 USD
Desenvolvedor
22.5 - 45 USD