amended getTrailingStop function to use minute charts if the current bar is entry bar