wsyxbcl/Reimu

/compare command

Opened this issue · 5 comments

/compare [stock_name]

plot prices of two stock in same figure

The returned values can include the excess return (mostly used to compare a portfolio/stock with an index).

The designed function is to perform 'minus' operation between any two stocks (can be both portfolio or stock), so the excess return would be covered.

On Mon, Feb 1, 2021 at 8:02 PM MapleFENG @.***> wrote: The returned values can include the excess return (mostly used to compare a portfolio/stock with an index). — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDYEBVERUSFISOYGUCLPTDS42J4NANCNFSM4WTRM2CA .

Cool!😇

excepted behaviors

/compare [[stock/portfolio] ...] , plot return rate of stocks and portfolios in same axes
/compare [stock/portfolio] -r [stock_ref] , with subplot of excess return

implement

functions:

  • stocks
  • portfolios
  • excess return subplot
details
  • timezone problem when comparing stock from different markets
  • merge data in order to complete the time axis

performance:

  • async interface for all Stock_mix

UI:

  • /compare argparse
  • label, legends, caption and title
  • current x0 is not the created time portfolio, need annotations #5

Using split-adjusted price for comparison would be more reasonable