Content-Length: 261591 | pFad | https://github.com/kernc/backtesting.py/issues/124

36 Cash withdrawals and reinvestment · Issue #124 · kernc/backtesting.py · GitHub
Skip to content

Cash withdrawals and reinvestment #124

@uberdeveloper

Description

@uberdeveloper

I wanted to simulate some realistic scenarios relating to systematic investment plan, cash withdrawals, and partial reinvestment.
Presently, I am manipulating the self._broker._cash attribute to this effect.

Is there any suggested approach?
I am more concerned about the execution rather than the returns as I am using attributes inside the Strategy class to calculate customized returns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionNot a bug, but a FAQ entry

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/kernc/backtesting.py/issues/124

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy