不好意思程式新手
想請問這樣的邏輯語法有那裡是需要修改的嗎?
謝謝
input:i(0);
if barfreq <> "Min" or barinterval <> 1 then raiseruntimeerror("僅支援1分頻率");
if date <> date[1] then begin
value1=highest(v[i]+v[i+1]+v[i+2]+v[i+3]+v[i+4],162/(i+1));
value2=0;
value3=0;
end;
if GetField("成交量","5") > value1 then begin
value1 = GetField("成交量","5");
value2 = getField("high","5");
value3= getField("low","5");
value4=(value2+value3)*0.5;
end;
noplot(1);
noplot(2);
noplot(3);
plot1(value2,"5分高點");
plot2(value3,"5分低點");
plot3(value4,"5分高低一半");
1 評論