input:day1(5,"MA5");
input:day2(10,"MA10");
input:day3(20,"MA20");
settotalBar(500);
var:rsv1(0),k1(0),d1(0);
var:rsvd(0),kd(0),dd(0);
stochastic(9,3,3,rsv1,k1,d1);
xf_Stochastic("D",9,3,3,rsvd,kd,dd);
var:intraBarPersist Buy(0);
//多單再度進場
if position <= 0 and filled <= 0 and Buy = 1 then
begin
if condition1 and condition2 and condition7 and condition5 and condition6 and k1 > k1[1] then setposition(1,market);
Buy = 2;
end;
---------------------------------------以上為程式-----------------------------------------------------------
請問
大部分的程式都很順利可以執行
但發現問題就出在 k1 > k1[1]
只要輸入該段程式就無法做買進的動作
請問如果要加入K值大於上一根K值做買進的動作
我該如何修改呢?謝謝
11 評論