副圖
1分鐘量
量增為紅.量減為綠;
這樣寫,似乎不準確:
if Volume[0]<Volume[1] then
SetPlotColor(1,green);
if Volume[0]>Volume[1] then
SetPlotColor(1,red);
if BarType >= 2 then Plot1( Volume, "Volume" ) else
Plot1( Ticks, "Volume" ) ;
SetPlotWidth(1,4);
那處要修正?
新手發問,請多包涵.
Hi:
ex: SetPlotColor (1, RGB (255,255,0));
顏色使用RGB方式表達喔~
setplotcolor可以直接填入關鍵字如red green yellow這些..
你沒有依TYPE 使用不同的指令做判定
if BarType >= 2 then Plot1( Volume, "Volume" , iff(Volume<Volume[1], green, red)) else
Plot1( Ticks, "Volume" , iff(Ticks<Ticks[1], green, red)) ;
感謝 Kei 與 stuart 二位先進的協助,
最感恩 客服一號 簡捷正確的指正.