以下是快速KD
input: Length(9), RSVt(3);
variable: rsv(0), k(0), _d(0);
SetInputName(1, "天數");
SetInputName(2, "RSVt權數");
Stochastic(Length, RSVt,3, rsv, k, _d);
if k > 80
and k[1] > 80
and k[2] > 80
and k[3] < 80
then ret = 1;
以下是KD
input: Length1(9, "日天數"), RSVt1(3, "日RSVt權數"), Kt1(3, "日Kt權數");
variable: RSV1(0), k1(0), _d1(0), j1(0);
Stochastic(Length1, RSVt1, Kt1, RSV1, k1, _d1);
if k1 > 80
and k1[1] > 80
and k1[2] > 80
and k1[3] < 80
then ret = 1;
3 評論