This script will close all by symbol. Unfortunately I don't have the source. file
In case you're on the sidelines until things go back to normal, here's something that might be worth playing with the Fast Market indicator. file image