First, what is the price of each transaction? There are only four prices in historical data. Which price should be calculated?
Second, the signal flicker problem, assuming that after the first jiacang condition meets the jiacang condition, the stock price begins to fall, but it does not fall below the stop-loss price and starts to rebound to touch the jiacang signal, then there are two prompts to jiacang.
Third, the signal is repeated and rises continuously for one day. All three jiacang tips suggest that it will be one day, or it will be one day if the stop loss falls continuously within one day.
The above is based on the daily closing price.
If the position is increased according to the highest price and the stop loss is calculated according to the lowest price, the stop loss and the position may increase at the same time.
If we want to formulate, we must think about the solutions to these possible problems.