TransWikia.com

Manipulate InteractiveTradingChart or lazy Manipulate

Mathematica Asked on June 29, 2021

Back in 2012, it seems that something like Manipulate[InteractiveTradingChart[ticker], {ticker, {"AMZN", "GOOGL"}}] worked fine. Mathematica 12.2 however is not able to handle this anymore and seems to get stuck in some kind of initialization loop.

It would be great if this functionality could be restored by Wolfram. In the meantime, I am curious whether there exists a workaround.

Is it for example possible to instruct Manipulate to trigger computation only when a parameter value changes and avoid precomputing results, i.e., is there a way to make Manipulate "lazy"?

One Answer

This seems to work:

Module[{amzn, googl},
  amzn = InteractiveTradingChart[{"AMZN", {{2009, 1, 1}, {2009, 12, 31}}}];
  googl = InteractiveTradingChart[{"GOOGL", {{2009, 1, 1}, {2009, 12, 31}}}];
  TabView[{"AMZN" -> amzn, "GOOGL" -> googl}]]

tab_a

tab_g

Correct answer by m_goldberg on June 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP