各位先進~
請教一下,目前寫的每日K棒平均K值是哪邊有誤,目前碰到的問題是他並不會只顯示今日的值,而是會延續前一日...........而且碰到K線圖只顯示當日的話,會有好幾根K都不會顯示,不知道是哪邊有錯,煩請指點,程式碼如下
if time>=1345 then value99=1;
if time = 1345 then value98= currentbar;
if date<>date[1]and time<1345 then value99=0;
if value99=0 then begin
value3=currentbar-value98;
value1=average(((o+c)/2),value3);
end;
plot1(value1,"Average",white,2,1);
謝謝
|