|
本帖最後由 JimmyHK 於 18-7-22 15:08 編輯
上邊的程式碼不能用,在網上找到這個但又出現編譯error,不知道有沒有高人可以破解?
Type : Function, Name : SMI
input:length1(NumericSimple),
length2(NumericSimple),
length3(NumericSimple);
var: HH(0),LL(0);
HH = Highest(H,length1);
LL = Lowest (L,length1);
SMI = 100 * (XAverage(XAverage(C-(0.5*(HH+LL)),length2),length3) /
(0.5 * XAverage(XAverage(HH-LL,length2),length3)));
Type : Indicator, Name : SMI
input:length1(13),length2(25),length3(2),alertLevel(40);
plot1( smi(length1,length2,length3), "SMI" );
plot2( alertLevel, "sell line" );
plot3(-alertLevel, "buy line" );
if plot1 crosses above -alertLevel then
alert("SMI crosses above buy line");
if plot1 crosses below alertLevel then
alert("SMI crosses below sell line");
http://trader-online.tk/ELZ/t-i- ... ntum_Indicator.html
|
|