High/Low of the last K line when retested

Author: chinesefox, Created: 2018-05-27 21:55:54, Updated:

OKExch's quarterly BTC contract is used for retesting. Finds that the High/Low on the last K line is the same. Please ask if this is to avoid future data being introduced for retesting.

bar = exchange.GetRecords[-1] Log(bar[‘High’]) Log(bar[‘Low’])

Thank you!


More

chinesefoxObviously, my logic is to open a position when the current bar breaks the high of the previous bar. If Bar[-1][High'] > Bar[-2]['High']: Buy ((SomeQuantity, Bar[-2]['High']) This is the first time I've seen this. Since the last bar of BotVS is not high/low, how can the above logic be implemented?

The Little DreamRe-test, real-time strategy When running, the last bar of the K-line data obtained by GetRecords is real-time, changing at all times, unless the price of this last K-line is unchanged, the highest and lowest opening and closing are one price.