|
SOLUTIONS
|
MATHEMATICA 内置符号
TradingChart
TradingChart[{{date1, {open1, high1, low1, close1, volume1}}, ...}]
生成显示每天的价格和交易量的图表.
TradingChart[{"name", daterange}]
生成在 daterange 上金融实体
的金融图表.
TradingChart[{...}, {ind1, ind2, ...}]
生成一个具有指标
、
... 的金融图表.
更多信息更多信息
- TradingChart 默认情况下包括一个蜡烛图和一个交易量指标.
- 日期
被视为由事件组成的有序序列,并且不以绝对事件度量显示.
的日期格式与 DateListPlot 中所用的相同.
和 daterange 与 FinancialData 中所用的相同. - 指标
可以是任意 FinancialIndicator 对象. - 封装可以应用于使用形式
的指标. - 封装可以应用于使用形式
或
的整体数据集. - 可以使用如下封装:
-
Annotation[data,label] 提供一个注解 Button[data,action] 定义当该元素被点击时要执行的操作 EventHandler[data,...] 对该元素定义一个通用事件句柄 Hyperlink[data,uri] 使得元素作为一个超链接起作用 PopupWindow[data,cont] 对该元素附加一个弹出窗口 StatusArea[data,label] 当鼠标移过该元素时,在状态栏中显示 Style[data,opts] 使用指定的样式显示该元素 Tooltip[data,label] 对该元素附加一个任意的工具提示条 - TradingChart 具有和 Graphics 相同的选项,并且有如下添加和变动:
-
Appearance "Candlestick" 所使用的外观 AspectRatio 1/GoldenRatio 整体高宽比 Axes True 是否绘制轴 BarSpacing Automatic 蜡烛之间的间距 ChartBaseStyle Automatic 柱的整体样式 ChartElementFunction Automatic 如何生成蜡烛的原始图形 ColorFunction Automatic 如何对蜡烛进行着色 ColorFunctionScaling True 是否对 ColorFunction 的参数进行归一化处理 DateFunction Automatic 如何把日期转化为标准形式 EventLabels None 要添加标签的事件 GridLines Automatic 要绘制的网格线 GridLinesStyle Automatic 网格线的样式 PerformanceGoal $PerformanceGoal 尝试优化哪些方面的性能 TrendStyle Automatic 如何对上涨和下跌趋势进行样式化处理 ScalingFunctions None 如何对
轴进行尺度缩放 - Appearance 的可能设置包括:
、
、
和 None. - 提供给 ChartElementFunction 的参数是矩形区域
、
和元数据
. - ChartElementFunction 的内置设置列表可以从
获得. - 提供给 ColorFunction 的参数是
. - 在 ScalingFunctions->sy 下,函数
应用于所有价格(开盘、高点、低点、收盘). ScalingFunctions 仅影响显示,但不影响任何控件. - 在 TradingChart 中,来自选项和其它结构的样式和其它规格以如下顺序应用:TrendStyle、ColorFunction、Style 和其它封装、以及 ChartElementFunction,其中后面的规格覆盖前面的规格.
版本 8 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




