您好:
我想 設計 20周線往上 日J值在10下往上彎 的選股腳本,
但執行後好像只有 日J值在10下往上彎 的顯現,因為很多的選股顯現都是20周線往下,請問可以如何修正,謝謝

input:Length_W(20,"期間");
input:Length(9), RSVt(3), Kt(3), JType(0);
variable: rsv(0), k(0), _d(0), j(0);
variable:ma_w(0);
SetInputName(1, "天數");
SetInputName(2, "RSVt權數");
SetInputName(3, "Kt權數");
Stochastic(Length, RSVt, Kt, rsv, k, _d);
j= 3 * k - 2 * _d;
if xf_xaverage("W",close,20) > xf_xaverage("W",close,20)[1]
and J[1]<10 and J>J[1]
then ret=1;
5 評論