-
Notifications
You must be signed in to change notification settings - Fork 3
Use Reactive to solve this problem #2
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
Comments
What is the context for keeping track of the account value? Could something like this be helpful? |
From what I gather about the Reactive.jl package, it supports signals whose value changes over time. I haven't grokked yet how to implement an account (type?) as a signal. |
A signal can be of any custom type. The starting point is to map out the scheme of what signals are related and how they update. For example, even with a single signal, theme may be a need for another signal to e.g. keep a cumulative sum logic (PnL) etc. |
Ok, good lead. I'll sketch this out and then implement from there. |
For convenience, the
dev/tenblotters.jl
file will be exported while this is being solved. It brings in the MarketData package and two variables,res
andvals
.The problem to solve is to keep track of the account value everyday for two years, given these trades.
The daily closing prices can be found in the
cl
const
provided by MarketData.The text was updated successfully, but these errors were encountered: