# Can I customize a TradingChart?

What I would like to do is generate a chart similar to the TradingChart but to have two lines on it instead of the candlestick.

The lines I want to plot will look something like this;

And what I want to do is replace the top plot on this chart;

The idea is to have the two lines on the DateListPlot with the trading volume bar chart below.

By question is am I better off setting up a GraphicsColumn with a DateListPlot and a BarChart or can I modify the TradingChart to get it to do what I want? I'd prefer to modify the TradignChart because it's got some nice interactive content which I don't know how to do myself.

• Where are those 2 lines? - are they some sort of indicators, like Bollinger bands or Moving average envelopes? Also could you please give your code. – Vitaliy Kaurov Feb 13 '13 at 5:13

Appearance->"Line" option setting gives line graphs:

 TradingChart[{"GOOG", {{2010, 1, 1}, {2010, 6, 1}}}, {"Open", "Low",
"High", "Volume"}, Appearance -> "Line"]


You can also use ChartElementFunction->"Line":

 TradingChart[{"GOOG", {{2010, 1, 1}, {2010, 6, 1}}}, {"Open", "Low", "High"},
ChartElementFunction -> "Line"]


By the way, this setting does not appear in the list of functions in ChartElementData["TradingChart"]:

 ChartElementData["TradingChart"]

With InteractiveTradingChart, selecting the option None or the option Line for ChartType produces line graphs of selected indicators:
 InteractiveTradingChart[{"GOOG", {{2009, 6, 1}, {2010, 6, 1}}}]

• Cam, as far as i can tell it is impossible to make such tweaks in the InteractiveTradingChart by playing with the documented options. BTW, that would make a really good new question. Perhaps some spelunking to identify what to Replace/ReplaceAll and by post-processing to make the appropriate replacement might work. Better yet, someone from Wolfram may suggest methods/tricks to do this kind of customization. – kglr Feb 13 '13 at 7:12
• @Cam, Thank you for the accept. Actually, you have two great questions: (1) how to change the legends displayed on mouseover, ie, replace "O:","H:" ... by "mylabel1",..., and (2) how to use your custom-built finanical indicator function in TradingChart. For both, it would be great if you can post the question and the response from Wolfram. – kglr Feb 13 '13 at 22:25