請教這個策略:K值處於70以上的高檔區,往下穿越D值
如果要排除ETF,請問以下程式如何修改?
input: Length(9), RSVt(3), Kt(3), HighBound(75);
SetTotalBar(maxlist(Length,6) * 3 + 8);
condition1 = GetField("Volume", "Tick") >= 50;
SetInputName(1, "計算期數");
SetInputName(2, "RSVt權數");
SetInputName(3, "Kt權數");
setInputName(4, "高檔區");
variable: rsv(0), k(0), _d(0);
Stochastic(Length, RSVt, Kt, rsv, k, _d);
if k>HighBound and k crosses under _d and condition1
then ret=1;
5 評論