![]() |
Matlab中的等量财务图表
在任何地方都找不到Matlab代码绘制等体积线,有人知道怎么做吗? [URL]http://www.armsinsider.com/education/armsonthemarket/equiv_chart.asp[/URL]感谢Alberto
[B]回答:[/B] 这是[URL="https://stackoverflow.com/questions/3776713/equivolume-financial-chart-in-matlab/3782273#3782273"]zellus[/URL]建议的基于[URL="https://stackoverflow.com/questions/3776713/equivolume-financial-chart-in-matlab/3782273#3782273"]boxplot[/URL]的简单函数: function hh = equivolumechart(x,w) % EQUIVOLUMECHART - simple equivolume chart based on barplot % x - 2xn high/low values, w - volume (box width) h = boxplot(x,'width',w); % make median unvisible for ii=1:size(h,2) set(h(6,ii),'visible','off') end if nargout>0, hh = h; end end 例: a = randi(10,2,10); w = randi(10,1,10)/10; equivolumechart(a,w) 可以使用补丁来重写该功能,但是这一功能效果很好。 您可能可以使用Financial Toolbox设置宽度中的[URL="http://www.mathworks.com/help/toolbox/finance/candle.html"]CANDLE[/URL]函数来修补对象,但是我没有工具箱。 [url=https://stackoverflow.com/questions/3776713]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 01:09。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.