eddielinke 發表於 15-5-25 22:42

Volume宽度

AB里Volume默认宽度是一根线,如何调到与价格的宽度一样?

好像这样

joshsmi 發表於 15-5-26 00:31

本帖最後由 joshsmi 於 15-5-26 00:38 編輯

Plot( Volume,
      "Volume",
      IIf( C > O, ParamColor("Up Color", colorGreen ), ParamColor("Down Color", colorRed ) ),
      ParamStyle( "Style", styleHistogram | styleThick, maskHistogram ),
      minval = Null, maxval = Null, xshift = 0, zshift = 0, width = -60 );

joshsmi 發表於 15-5-26 00:42

width parameter can be percent of bar width (-100 to -10) or pixel width (1 to 10)

eddielinke 發表於 15-5-26 00:54

joshsmi 發表於 15-5-26 00:42 static/image/common/back.gif
width parameter can be percent of bar width (-100 to -10) or pixel width (1 to 10)

非常好,谢谢!

lwhuang 發表於 15-5-26 13:38

有沒有辦法自動跟著zoom in/out 調整?

joshsmi 發表於 15-5-26 19:08

lwhuang 發表於 15-5-26 13:38 static/image/common/back.gif
有沒有辦法自動跟著zoom in/out 調整?

??

If width has negative value then it does auto adjust to zoom factor.

lwhuang 發表於 15-5-27 09:54

joshsmi 發表於 15-5-26 19:08 static/image/common/back.gif
??

If width has negative value then it does auto adjust to zoom factor.

How to do it?
would you please show some example code?

tusa 發表於 15-5-27 10:13

本帖最後由 tusa 於 15-5-27 10:16 編輯

想請教怎樣用代碼去控制各圖表的高度?因放了6個指標圖, 但每次修改代碼及套用, 所有的圖表高度便變成均等高度, 要續個圖重新調整, 很麻煩~{:4_186:}

lwhuang 發表於 15-5-27 18:27

tusa 發表於 15-5-27 10:13 static/image/common/back.gif
想請教怎樣用代碼去控制各圖表的高度?因放了6個指標圖, 但每次修改代碼及套用, 所有的圖表高度便變成均等 ...

你要的是應該是 layouts -> save as default
layout從menu->window->layouts叫出

joshsmi 發表於 15-5-27 20:57

lwhuang 發表於 15-5-27 09:54 static/image/common/back.gif
How to do it?
would you please show some example code?

Example has been given already in post #2 of this thread
See width parameter.

頁: [1]
查看完整版本: Volume宽度