Message Boards Message Boards

1
|
11748 Views
|
4 Replies
|
6 Total Likes
View groups...
Share
Share this post:

(InterActive)TradingChart difference (bug?) between MM 9 and 10

Hi, With MM 9 I use InteractiveTradingChart with Eventlabels with colors to "summarize" several financial indicators. I notice the slow reponse of MM10 versus MM9 for this specfic function. However when I tried to "browse"through one year of data which worked fime with MM9 I found that MM10 went to $Aborted.

A small test code that works for me with MM9 and doesn't with MM10.02

data = FinancialData["AS:INGA", "OHLCV", {{2014, 1, 1}, {2015, 1, 1}}];
labelsdisk2 = (#[[1]] -> 
      Placed[Graphics[{RandomChoice[{Green, Red}], Disk[]}, 
        ImageSize -> 10], Above]) & /@ data;
InteractiveTradingChart[data, EventLabels -> labelsdisk2]

With Mathematica 9 This works with MM 9

With Mathematice 10.02 This is the result with MM10.02

I would love to get this fixed or "workarounded"...

POSTED BY: l van Veen
4 Replies

Hi Lou,

I don't know what are the exactly event labels you are using in your real code. In this example, replacing

Graphics[{RandomChoice[{Green, Red}], Disk[]}, ImageSize -> 10]

with

Style["\[FilledCircle]", RandomChoice[{Red, Green}]]

will much help the load of renderer. Could you give it a try?

Also, try to set the ChartElementFunction to be "Candlestick":

ChartElementFunction -> "Candlestick"

To see if that helps.

POSTED BY: MinHsuan Peng

Hi MinHsuan, It didn't help alot. It aborted when increasing the windows size with one month :(. It did seem to render faster. I also noted that when I keep the Interactive chart in a separate cell the notebook is much more stable after the abort.

Thx!

POSTED BY: l van Veen

Hi Dan, Thx for double checking. Much appreciated. I did some more tests but it's a fact that MM9 works and MM10 doesn't for this specific function(s). As a workaround I'm starting to create a kind of similar interactive trading chart based on DateListPlot. It's however alot of extra work but it does have a benefit that I can show more info then just the "indicator" lights. I thought of sending this to Wolfram Support to file it as a bug (MM9 did work :) ) but I can't imagine that this is unknown behaviour. EventLabels are very common (and practical) for the purpose of adding indicators as a visual for you chosen set of indicators. Lou

POSTED BY: l van Veen
Posted 9 years ago
POSTED BY: Dan M
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract