fixed bug with next trading calculation.
cleaned up to_dict to make differences between daily and minutely
emission more clear.
refactored check_entry method to also look at np.inf and
to make the method a module function.
small move to put the close function call behind the
same guard as the other close work.