First determine the period of the size, and the period should not be too close, such as the daily line and the 1 hour line, and then use the same moving average, such as the 5-day moving average. In these two periods, if the latest K-line crosses the 5-day moving average from bottom to top, it can be considered as resonance.