TrendStyle

TrendStyle
is an option to CandlestickChart, RenkoChart, and other financial charting functions that specifies how to style price trends.

DetailsDetails

  • TrendStyle->{up, down} specifies that the up trend should be styled using the graphics directive up and down trend with the graphics directive down.

ExamplesExamplesopen allclose all

Basic Examples (6)Basic Examples (6)

TrendStyle uses green for up trends and red for down trends by default:

In[1]:=
Click for copyable input
Out[1]=

Use black for up trends and red for down trends:

In[1]:=
Click for copyable input
Out[1]=

Use named styles:

In[1]:=
Click for copyable input
Out[1]=

TrendStyle combines with ChartBaseStyle:

In[1]:=
Click for copyable input
Out[1]=

With TrendStyle set to None, the base style is used for up trends and empty bars for down trends:

In[1]:=
Click for copyable input
Out[1]=

TrendStyle->style uses style for up trends and empty bars for down trends:

In[1]:=
Click for copyable input
Out[1]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »