Hello, I want to incorporate 2 robots, 1 mean reversion algorithm and 1 breakout algorithm, in 1 single robot.
I want the robot that if one robot is a triggered trade, the algo can continue to take trades only from the other one.
Example, the mean reversion algo takes one trade.
As long as this trade is not closed, it will not be able to resume a trade if a mean reversion signal is triggered.
On the other hand the robot will be able to take a trade if a breakout signal appears.
How can I do this, I tried but without any result ?
This should work, but you won’t be able to enter again until both trades are exited, because once both strategies have opened a trade, it’s very difficult to know which one closes.
You could do this by keeping track of each TRADEPRICE, but it’s not that straightforward!
Thank you, I learn a lot with your advices and your codes. Indeed TRADEPRICE seems complicated to set up, if I can already take one trade from each robot at the same time it’s a very good point that suits me.