您好:
我週KD黃金交叉買, 週KD死忘交叉賣, 結果出來資料都不對
隔週就會賣出, 明明條件不符合
買進程式:
//KD 參數
input : Len_W(9, "周KD期間");
variable: rsv_w(0), k_w(0), d_w(0);
condition1=false;
//週 KD
xf_Stochastic("W",Len_W, 3, 3, rsv_w, k_w, d_w);
condition1 = k_w < 45 and xf_crossover("W",k_w,d_w);
if condition1 then ret=1;
賣出程式:
//KD 參數
input : Len_W(9, "周KD期間");
variable: rsv_w(0), k_w(0), d_w(0);
condition1=false;
//週 KD
xf_Stochastic("W",Len_W, 3, 3, rsv_w, k_w, d_w);
condition1 = k_w > 75 and xf_crossunder("W",k_w,d_w);
if condition1 then ret=1;
出來結果;
附檔

1 評論