|
SOLUTIONS
|
MATHEMATICA 内置符号
InteractiveTradingChart
InteractiveTradingChart[{{date1, {open1, high1, low1, close1, volume1}}, ...}]
绘制一个表示每日价格与成交量的图表.
InteractiveTradingChart[{"name", daterange}]
绘制金融实体
在 daterange 期间的金融图表.
InteractiveTradingChart[{...}, {ind1, ind2, ...}]
绘制指标为
、
、... 的金融图表.
更多信息更多信息
- InteractiveTradingChart 默认情况下包括一个烛柱图与一个成交量指标.
- 日期
被视作有序的事件序列,且不在绝对时间尺度上显示.
的日期格式与 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] 为元素附加一个任意提示工具 - InteractiveTradingChart 具有与 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 仅对显示产生影响,并不会影响控件. - InteractiveTradingChart 中选项及其它结构的样式与规格按照 TrendStyle、ColorFunction、Style 及封装、 ChartElementFunction 的顺序依次应用,其中后面的指定屏蔽先前的指定.
版本 8 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

