converting tradingview script to ctrader

Created at 20 Dec 2020
ED

edmonds

Joined 20.12.2020

Status

Open


Budget

40.00 USD


Payment Method

via  Freelancer

Job Description

translate to mt5 or  to ctrader languge

 


//Heikin  

",shorttitle="",overlay=true,max_bars_back=500,default_qty_value=1000,initial_capital=100000,currency=currency.EUR)
res1 = input(title="Heikin Ashi EMA Time Frame", type=resolution, defval="D")
test = input(0,"Heikin Ashi EMA Shift")
sloma = input(20,"Slow EMA Period")

//Kaufman MA
Length = input(5, minval=1)
xPrice = input(hlc3)
xvnoise = abs(xPrice - xPrice[1])
Fastend = input(2.5,step=.5)
Slowend = input(20)
nfastend = 2/(Fastend + 1)
nslowend = 2/(Slowend + 1)
nsignal = abs(xPrice - xPrice[Length])
nnoise = sum(xvnoise, Length)
nefratio = iff(nnoise != 0, nsignal / nnoise, 0)
nsmooth = pow(nefratio * (nfastend - nslowend) + nslowend, 2) 
nAMA = nz(nAMA[1]) + nsmooth * (xPrice - nz(nAMA[1]))

//Heikin Ashi Open/Close Price
ha_t = heikinashi(tickerid)
ha_close = security(ha_t, period, nAMA)
mha_close = security(ha_t, res1, hlc3)

//Moving Average
fma = ema(mha_close[test],1)
sma = ema(ha_close,sloma)
plot(fma,title="MA",color=black,linewidth=2,style=line)
plot(sma,title="SMA",color=red,linewidth=2,style=line)

//Strategy
golong =  crossover(fma,sma) 
goshort =   crossunder(fma,sma)

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

Comments
Log in to add a comment.
dolandjosama34's avatar
dolandjosama34 · 1 year ago

Hi it will be a pleasure for me to work with you, I am a very experienced developer in MT5/MT4, cTrade, Trading View. let's discuss about your project.
Email: dolandjosama34@gmail.com

AN
andurei · 3 years ago

Hello, if you still need this indicator, i can do it for you. My telegram contact: 55 98984192804 (@doctorvegapunks)

 

 

4xdev.team's avatar
4xdev.team · 3 years ago

Hello!
This is Mike from 4xdev. I am a member of the 4xdev development company,
specialized in creating trading tools: custom indicators, EAs, scripts, bots, alerts, cAlgo, cBots, etc., with 5 years of experience.

I can help you. Please let me know if you are interested (4xdev.team@gmail.com).
Telegram: @Fxdev_company
       WhatsApp: +380508146716
       Skype: +380508146716


We offer the rate in the amount of $40 per hour, including the work of our programmers and QA-engineer.
The cost starts from $150 on average.

Looking forward to hearing from you.

DonaldD's avatar
DonaldD · 3 years ago

Hi there,

We can help you with your project. You can contact us at contact@clickalgo.com for more information.

Best Regards,

Donald