A lot of the algos that I've written do really well to find short and long entries when the market is stable, but I find that the biggest losses come when earnings come out. Has anyone figures out a way to prohibit trading on a security that is set to release earnings within some time frame.