MIH8
- ago
I would like to have a way in the backtest to refill the capital periodically.
For example add monthly 1000$, or configurable times.

Also similar variants like refilling the capital at a drawdown value would be super.

What do you think?
2
903
10 Replies

Reply

Bookmark

Sort
- ago
#1
I remember having coded it for WL6 several years ago to work around its limitation but it was somewhat clumsy to work with:
http://www2.wealth-lab.com/WL5WIKI/Transfers.ashx
0
- ago
#2
What's the point of defining a finite amount of capital in the first place if you're make that amount dynamic? I don't follow the logic. (Perhaps you'll enlighten me.)

If you don't want a finite amount of capital applied, then set it to 10,000,000 (or some high amount) and forget about it. WL6 featured raw-profit mode, which I like, but in WL8 I just set the capital limit to some big number.
0
MIH8
- ago
#3
Do you live in a real world?

As a retail investor you are not able to invest as much capital as you want, but you can increase your capital step by step. This is a completely normal procedure. For traders who live on it, it is also necessary to withdraw capital, that should not surprise anyone now. I think these two points should be explanation enough.

Ultimately, the money management then also influences the results. And a meaningful backtest should be as close as possible to the real conditions. You also use historical data (instead of artificial) to get realistic results. For the same reason, you should also map the capital realistically in the backtest.

This is mainly a forum of experienced traders. Apart from the obvious reasons mentioned above, there are also further thoughts.
For example, it is possible to react to drawdowns with financial backfill, as this can shorten the recovery time. This is a strategic thought, which is then dynamic.

If you "want" to think about it, you can certainly find further arguments why a simple dynamic money management can be useful.
0
MIH8
- ago
#4
@Eugene

I think the simple approach to start with a configuration file as in the link is quite good and already flexible.
A dynamic, event-driven approach can be evaluated at a later time.

The effort that is not so really to estimate, in my opinion, is to consider the correct impact on the statistics and scores.
Maybe the adjustments for this are small or very high. In the end it would have to be checked, evaluated and decided how to deal with it.
0
MIH8
- ago
#5
Is it possible to change the value for equity programmatically? As far as I can see, equity is a read-only element. In this way, one could at least build in logic in the code that takes regular capital changes into account.
0
- ago
#6
No, you can only affect the equity curve with real trades and corporate events.
0
MIH8
- ago
#7
Okay, I'll ask differently. Are there arguments against making equity a modifiable element? (in the context of software design)
0
- ago
#8
That's not different enough. Since equity is a core construct at the groundwork you should ask really differently. Like "How can I build a DIY event provider that does something along the lines of Post #1?" or "Would the team be interested in taking this for a concierge support task?"
0
Cone8
 ( 6.32% )
- ago
#9
Modifying the equity curve ad hoc would render many (most?) strategy metrics worthless. Practically every visualizer would have to be modified to take into account addition or removal of funds.
0
MIH8
- ago
#10
@Eugene

One can also adequately answer the question by simply saying:

"Indeed, equity as a central construct in our framework has influence in many places in the software. As already assumed with the question, an adjustment would be more complex. Although money management in general could be improved by the feature, we currently have other tasks to do in the priority list"

In my opinion, the feature does not meet the criterion of an individual solution, so I will wait (maybe forever). Well, my question was to the point.

Nevertheless, I appreciate the quick feedback from you. Thank you.

Edit: Thanks Cone too
0

Reply

Bookmark

Sort