您好:

我想編寫20周ma往上,日J值在10以下往上勾,的指標跟選股,

編譯有成功但選股跟畫面皆沒有顯示,請問是甚麼原因?謝謝

input:ma_w(20,"期間");

input: Length(9), RSVt(3), Kt(3), JType(0);

variable: rsv(0), k(0), _d(0), j(0);

 

SetInputName(1, "天數");

SetInputName(2, "RSVt權數");

SetInputName(3, "Kt權數");

 

Stochastic(Length, RSVt, Kt, rsv, k, _d);

 

if JType = 0 then

j = 3 * k - 2 * _d

else

j = 3 * _d - 2 * k;

 

if ma_w>ma_w[1] and J[1]<10  and J>J[1] 

then ret=1;