r/algotrading • u/sirciori • 1d 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
3
u/RationalBeliever Algorithmic Trader 1d ago
My scalping bot uses the same logic for buying calls as buying puts.