|
SOLUTIONS
|
MATHEMATICA 内置符号
TrendStyle
TrendStyle
是 CandlestickChart、RenkoChart 和其它金融制表函数的一个选项,指定如何对价格走势进行样式化处理.
更多信息更多信息
- TrendStyle->{up, down} 指定向上走势应该使用图形指令 up 进行样式化处理,而向下走势应该使用图形指令 down 进行样式化处理.
范例范例打开所有单元关闭所有单元
基本范例 (6)基本范例 (6)
TrendStyle 在缺省情况下用绿色表示上升趋势,用红色表示下降趋势:
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |
TrendStyle 与 ChartBaseStyle 组合使用:
| In[1]:= |
| Out[1]= | ![]() |
将 TrendStyle 设置为 None,则使用基本样式表示上升趋势,用空白条形表示下降趋势:
| In[1]:= |
| Out[1]= | ![]() |
TrendStyle->style 使用 style 表示上升趋势,用空白条形表示下降趋势:
| In[1]:= |
| Out[1]= | ![]() |
版本 8 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »







