First post on the forum, trading level-2 (10), programming level-4 (10) (subjective)
An adviser was needed. Ordered on the fl. A man was found. Compose. But something is wrong. And (as usual), fell out of sight (emergency in telegram, etc.). So, maybe here you can find the answer.
There is one account. There is an algorithm-an employee who will conduct trading. This is not the main thing. The main thing is below
And there is also an algorithm Manager that looks at how much the total balance is and how much reserve is issued for one flow of work of one algorithm worker. This is necessary in order not to open several accounts (maybe >50), but to maintain several such flows on one account. For example, there is a balance of$12,800. If I allocate 1000 reserves for one thread, then the algorithm Manager opens 12 threads, in which 12 algorithms-workers work. But that they work separately from each other. If in the process, in General, a new 1000 is collected from all threads and the balance balance (that is, it becomes 13000), then a new thirteenth thread is opened. But each of the flows cannot exceed the losses more than the specified reserve (which is specified in this case in 1000). As soon as it burns the reserve, so the thread stops its work and all threads become 1 less. It works either indefinitely – if it is profitable, or until there is enough balance to open at least one stream with the specified reserve for it. To make it clearer, streams have the same frame (ridge), but they can be at different steps. That is, if I finish the missing $ 350, and at this time the threads were on the third step (for example), then the new thread that opens will be on the first step of the worker algorithm.
Thanks. I apologize if I broke anything