This Snippet is useful to avoid trading in certain times. I use to optimize when I want to avoid certain times where market behave irrationally bull or bulltard :). That way the optimization can be improved because by optimizing more for the other 99% of the time where market beahve more rational