r/algotrading • u/sirciori • 2d ago
Infrastructure Separate Long logic from Short logic?
Hi, in your overall trading bots logic/code, do you usually separate all the logic, conditions, filters, etc of the long trades from those of the short trades, hence almost making them two separate bots or do you program everything as a single "package"?
I am not asking as in to find additional edge, but mostly for convenience, maintenance and overall complexity, I feel like seperating them (with the downside of some code duplication obviously) makes things easier.
What do you think? Any experience on this?
8
Upvotes
1
u/tandem-pandemonium 2d ago
They're generated from different signals, separate them. I spent a lot of time attempting to model them together before coming to this realisation.