
public event Action<List<Candle>> CandleUpdateEvent;
As you can guess from the name, the CandleUpdateEvent signals a change in the data of the latest candle in the series. After connecting to the exchange's API, the program requests the history of candles up to the moment of connection. All subsequent candles are built using anonymized trades that come in real-time. The event triggers only when there is a change in the trade price, which means if a trade comes in at the same price as the previous one, the CandleUpdateEvent will not be called. As with the CandleFinishedEvent, the handler receives a list of available candles. The state of the latest will be equal to CandleState.Started. After receiving the last trade for the time frame, the state changes to CandleState.Finished.
Let's look at a practical way to apply this event.

1. Subscribe to the CandleUpdateEvent.
2. If the last candle has finished, the GetHigh method is called. This method accepts the number of candles among which you need to find the maximum value of the High field. In other words, the maximum price reached over the last n candles.
3. As a result, if the closing of the last candle exceeds this value, a long position is opened.
4. Implementation of the GetHigh method.
If you have any difficulties or questions, please write to the support chat. Link