First of all, the INDICATOR that youre trying to implement is missing 3 values: short, long and signal.
you need to define the values for that indicator, like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
short=10
long=20
signal=15
EMAshort1=exponentialaverage[short](close)
EMAshort2=exponentialaverage[short](EMAshort1)
DifferenceShort=EMAshort1-EMAshort2
ZeroLagShort=EMAshort1+DifferenceShort
EMAlong1=exponentialaverage[long](close)
EMAlong2=exponentialaverage[long](EMAlong1)
DifferenceLong=EMAlong1-EMAlong2
ZeroLagLong=EMAlong1+DifferenceLong
ZeroLagMACD=ZeroLagShort-ZeroLagLong
signal1=ExponentialAverage[signal](ZEROLAGMACD)
signal2=ExponentialAverage[signal](signal1)
DIFFERENCE2=signal1-signal2
SignalMACD=signal1+DIFFERENCE2
RETURNZeroLagMACDas"Zero Lag MACD",SignalMACDas"Signal MACD"
I just used random values for the values, i dont know what values to use here 🙂 Now that you have the indicator, you add a new indicator to the chart and voila, you can use the creation wizard tool to click the indicator and do what you need to do