Tradingview indicator conversion, MACD 4C

Created at 11 Nov 2020
ER

ersinerk

Joined 14.06.2020

Status

Closed


Budget

10.00 EUR


Payment Method

Direct Payment

Job Description

Hi,

 

I am looking for someone to convert the tradingview indicator "MACD 4C" to ctrader . it has only 11 lines in the script. What it does is basically, plots the signal lines as histogram

willing to pay 10EUR via Paypal.

______________

study(shorttitle = "MACD 4C", title = "4 colour MACD")
fastMA = input(title="Fast moving average", type = integer, defval = 12, minval = 7)
slowMA = input(title="Slow moving average", type = integer, defval = 19, minval = 7)
lastColor = yellow
[currMacd,_,_] = macd(close[0], fastMA, slowMA, 9)
[prevMacd,_,_] = macd(close[1], fastMA, slowMA, 9)
plotColor = currMacd > 0 
    ? currMacd > prevMacd ? lime : green 
    : currMacd < prevMacd ? maroon : red
plot(currMacd, style = histogram, color = plotColor, linewidth = 3)
plot(0, title = "Zero line", linewidth = 1, color = gray)

_____________

Comments
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