如題:
想使用變數紀錄昨日量比,並於1分K>昨日量比時警示,自己編輯的如下,回測2/12時無任何標地警示,並可參考2/12代碼2606(裕民),請幫忙檢示哪裡出了問題
if issessionfirstbar then begin
value1 = getField("量比","D")[1];
end;
condition1= getField("量比") > value1; //今量比>昨量比
condition2= getField("成交量","D")[1] < average(getField("成交量","D"),5);//昨量<5均量
condition3= getField("成交量","D")[1] < average(getField("成交量","D"),10);//昨量<10均量
condition4= close > 20 and close <200;//20<收盤<200之間
condition5= close > average(getField("收盤價","15"),60); //收盤>15分K60MA
if condition1
and condition2
and condition3
and condition4
and condition5
then ret=1;
6 評論