A small white piece, kneeling on the exact time point 1 minute level K line chart to get and compare the closing price of the previous K line opening price?

Author: shifeng2020, Created: 2020-12-02 17:39:00, Updated:

I have a set of ideas, looking at a 1 minute K line chart, where I need to compare the closing price and the opening price every 1 minute, by comparing the positive negative and the absolute value, to determine the direction of the next order opening / stop loss adjustment amount after the last order opening. But I really want to break my head. The difficulty is not in getting the last/open price, but I want to get his opening and closing price on the previous complete K line at the end of 0.01 seconds of a 1-minute K line just to guide the initial phase of the next K line, my opening order direction and stop order. I don't know how to accurately timestamp the time on the huobiHM to get the timestamp, for example at this moment I want to get the opening and closing price of the K line chart at this moment at 22:00, and then open a new order at that moment. Can God help me? I am so grateful!


More

fengokYou can set it to start with 100 or 200 milliseconds per minute when you're getting the K-line data, like the current time is 22:00:00 and you're getting the K-line 200 milliseconds behind this time point, and one K-line in front of you is the K-line you need.

The grassYou can take a K-line for 0.1s, and when you have a new K-line, you have an old complete K-line, and basically there's not a lot of delay.