wsyxbcl / Reimu

Source code for @hakurei_bot on telegram.
MIT License
5 stars 1 forks source link

/compare command #6

Open wsyxbcl opened 3 years ago

wsyxbcl commented 3 years ago

/compare [stock_name]

plot prices of two stock in same figure

ForstMaple commented 3 years ago

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

wsyxbcl commented 3 years ago

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 notifications@github.com 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 https://github.com/wsyxbcl/Reimu/issues/6#issuecomment-770805916, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDYEBVERUSFISOYGUCLPTDS42J4NANCNFSM4WTRM2CA .

ForstMaple commented 3 years ago

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!😇

wsyxbcl commented 3 years ago

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:

performance:

UI:

wsyxbcl commented 3 years ago

Using split-adjusted price for comparison would be more reasonable