COCO研究院

 找回密碼
 註冊
搜索
查看: 3153|回復: 9

Volume宽度

[複製鏈接]
發表於 15-5-25 22:42 | 顯示全部樓層 |閱讀模式
AB里Volume默认宽度是一根线,如何调到与价格的宽度一样? QQ图片20150525224036.png

好像这样
QQ图片20150525224138.png
發表於 15-5-26 00:31 | 顯示全部樓層
本帖最後由 joshsmi 於 15-5-26 00:38 編輯
  1. Plot( Volume,
  2.       "Volume",
  3.       IIf( C > O, ParamColor("Up Color", colorGreen ), ParamColor("Down Color", colorRed ) ),
  4.       ParamStyle( "Style", styleHistogram | styleThick, maskHistogram ),
  5.       minval = Null, maxval = Null, xshift = 0, zshift = 0, width = -60 );
複製代碼
發表於 15-5-26 00:42 | 顯示全部樓層
width parameter can be percent of bar width (-100 to -10) or pixel width (1 to 10)
 樓主| 發表於 15-5-26 00:54 | 顯示全部樓層
joshsmi 發表於 15-5-26 00:42
width parameter can be percent of bar width (-100 to -10) or pixel width (1 to 10)

非常好,谢谢! QQ图片20150526005346.png

發表於 15-5-26 13:38 | 顯示全部樓層
有沒有辦法自動跟著zoom in/out 調整?
發表於 15-5-26 19:08 | 顯示全部樓層
lwhuang 發表於 15-5-26 13:38
有沒有辦法自動跟著zoom in/out 調整?

??

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

發表於 15-5-27 09:54 | 顯示全部樓層
joshsmi 發表於 15-5-26 19:08
??

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

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

發表於 15-5-27 10:13 | 顯示全部樓層
本帖最後由 tusa 於 15-5-27 10:16 編輯

想請教怎樣用代碼去控制各圖表的高度?  因放了6個指標圖, 但每次修改代碼及套用, 所有的圖表高度便變成均等高度, 要續個圖重新調整, 很麻煩~
發表於 15-5-27 18:27 | 顯示全部樓層
tusa 發表於 15-5-27 10:13
想請教怎樣用代碼去控制各圖表的高度?  因放了6個指標圖, 但每次修改代碼及套用, 所有的圖表高度便變成均等 ...

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

發表於 15-5-27 20:57 | 顯示全部樓層
lwhuang 發表於 15-5-27 09:54
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金錢 +2 收起 理由
lwhuang + 2 太強了

查看全部評分

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-4-29 11:18

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 | AI繪圖AI超擬真美女AI beauty AI Stable DiffusionAI正妹AI Lookbook