煙雨任憑升 發表於 19-6-5 16:03

外盤-內盤的成交力差到底哪裡出錯了?

各位前輩好,小弟剛學HTS。請問外盤-內盤的累加要怎麼寫呢?下面不知道是不是哪裡出錯?沒辦法累加,貴求教學,感恩

Variables:interval(0)

//總賣出量Q_AskTotalSize
//總買進量Q_bidTotalSize


interval=Q_bidTotalSize-Q_askTotalSize

if Q_bidTotalSize > Q_askTotalSize then

drawBar1(interval,0,"委買>委賣",red,red,8)
else
end if

if Q_bidTotalSize < Q_askTotalSize then
drawBar2(0,interval,"委買<委賣",blue,blue,8)
end if

apple198167 發表於 20-4-27 21:59

var: color(0);

if date<>date then value1 = 0 ;

value2 = Q_bidTotalSize-Q_askTotalSize;

value1 = value1+value2;

if value1 > 0 then color=red ;

if value1 < 0 then color=blue;

plot1(value1,"",color);

這是用multicharts寫的 您參考看看
頁: [1]
查看完整版本: 外盤-內盤的成交力差到底哪裡出錯了?