|
Marcus Schöppl
2015-01-06 11:02:26
|
|
I have the Alligator Indicator not found in quantshare, so i coded the indicator for your.
here ist the description.
but my problem ist, in another software the indicator looks different to quantshare :-(
how can help me.
thank you.
marcus
Alligator indicator consists of 3 Moving averages:
Alligator%u2019s jaws (blue line) %u2013 13-period Simple Moving Average built from (High+Low)/2, moved into the future by 8 bars;
Alligator%u2019s teeth (red line) - 8-period Simple Moving Average built from (High+Low)/2, moved by 5 bars into the future;
Alligator%u2019s lips (green line) - 5-period Simple Moving Average built from (High+Low)/2, moved by 3 bars into the future.
Here is the Quantshare Code
var1 = Sma((high+low)/2,13);
var2 = ref(var1, 8);
var3 = Sma((high+low)/2,8);
var4 = ref(var3, 5);
var5 = Sma((high+low)/2,5);
var6 = ref(var1, 3);
plot(var2, "a1",colorblue, chartline,StyleSymbolNone);
plot(var4, "a2",colorred, chartline,StyleSymbolNone);
plot(var6, "a3",colorgreen, chartline,StyleSymbolNone);
|
|