各位前輩好,小弟剛學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 |