Visualizing datasets on ALGOGENE Research Lab is extremely simple. This articles shows you how to apply a popular Python charting library 'matplotlib' to acheive this. With 'matplotlib', you can create and customize various charts in Python. Here is the official document https://matplotlib.org/ to explore what kind of charts available.
Before we go into the example, let's go back a little bit to ALGOGENE's cloud environment structure. When you create an ALGOGENE account, you will be automatically assigned with a partition of computing resources including disk storage, random assess memory, etc. All your backtest, livetest or real-trading scripts will be encrypted and execute on your dedicated environment separately and independently. If you want to display some customized calculation results (eg. charts), it is necessary to dump the "data" to your assigned directory first. Then, ALGOGENE Web Server would be able to pull the results and display to frontend interface.
In the following, suppose we are interested to visualize the dispersion of daily return between 2 instruments. On ALGOGENE Backtest environment, we choose S&P500 and Hang Seng Index as an example. Now, an important step is to save the charts to our assigned image directory, i.e. self.evt.path_img specified at line 32 below. That's it!