There are traders placing orders using every timeframe. Each timeframe has it’s own wave of price action. While the 5-minute time frame may be showing an upward move in price action, the 1-minute time frame may be on a downward move. But, since you are using the 30-second and smaller time frames for entry and confirmation, then the reversals are likely due to the fact that many other traders also see what you are seeing, and the huge influx of buy orders is causing the valuation to depreciate temporarily, then reverse thereafter.
If you are unable to profit because you are panic-selling or getting stopped out etc., then you might re-evaluate your position size, stop-loss and/or entry point etc., so that you have more room to work with and more flexibility. You can also ladder your buys so that you make additional buys as the price drops, allowing you to get better entry points, in lieu of placing a single order, assuming you are confident with your strategy.