Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBS-3213: add etf fields #97

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

nshatvorov
Copy link

No description provided.

threeYears_ago = timenow - 1000 * 60 * 60 * 24 * threeYears
countOfBars3YearsAgo = fastSearchN(time, threeYears_ago, threeYears)

countETF(history, _bb, maxbarsback) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а эта формула перфов точно такая же, как и для маркеткапов, что делал Коля? там и периоды те же. можем переиспользовать, когда его код помержится.

countYTD(history, lastYearOpen) =>
(history-lastYearOpen)/lastYearOpen

etfYTD(history) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

и это тоже уже считается где-то

@nshatvorov nshatvorov force-pushed the hbs-3213 branch 3 times, most recently from a9b7e3f to 27487ab Compare May 4, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants