Hi there!
I have 3 different systems (different buy and sell conditions) that operate the same Stock. Each system has got 1000€.
I would like to merge the 3 systems in a single one with an initial capital of 3000€. The system should have 3 different buying and selling conditions, one for every subsystem and assigning 1/3 of the capital every time one of the buying conditions is true and scaling out 1/3 every time one of the selling conditions is true.
So, for example:
- Example 1: If CondiBuy1 and CondiBuy2 in the same dayàBuy 2000€. If tomorrow CondiSell1àSell 1000€
- Example 2: CondiBuy1àBuy 1000€. Next day CondiBuy3àBuy 1000€ more (so in total a 2000€ position)àNext day CondiSell1 and CondiSell3àSell 2000€
- Example 3: CondiBuy1àBuy 1000€. Next day CondiSell2àDo not do anything because CondiBuy2 never has been true
I hope I explained myself correctly. What I want is to operate 3 systems in the same script.
To achieve this, I guess there are many ways to do it. The easiest one would be to replicate the ticker 3 times but this is not the most elegant way. I’m looking for something better.
I have been reading several posts in the forum but I was not able to find any clue. I tried this Tomasz’s tip but was not enough as when it’s bough for condition 1, it doesn’t buy more if condition 2 or 3 are true.
Does anyone know where I could find any hint to go on?