Hello. I had an idea yesterday. But yesterday I wanted to sleep and scored. Today I thought, and, although, I understand how to do it, but.. I don’t like the implementation I came up with. Therefore, I decided to write here to discuss this thing, if anyone is interested.
The essence is as follows: I, usually, did not use money management(MM), but, there was a desire to check how some variations will affect the profitability of systems. So the point is that there is a desire that when I add a class in which various MM systems will appear, I can choose, for example, enum directly from the bot’om the desired MM system. I.e. I start the bot, and chose, for example, system #1, and, bot-trades with this MM system. I chose system #2, and the bot trades with this MM system. Did anyone implement such a thread at all?
I lead this to the fact that any system can be conveniently run in one fell swoop across all MM systems at once (optimization by the MM field). It is clear that you can specify in the code which system to use, but.. as they say, laziness is the engine of progress)) Only here it’s not about laziness, but about paying more attention to writing code, and not monkey work, changing the same thing in each owl.
If anyone is interested, I can throw what I think today. And then discuss..
I haven’t seen such thoughts and approaches from anyone yet, so I decided to write about it and then start writing code. I just haven’t decided how to do it beautifully yet. And I don’t want to write anyhow. After all, this is written once, and you will have to use it constantly.