I'm using the OnBarsChanged event to capture candle data related to calling RequestHistory for five minute candles. I've noticed that the candle data comes across quite a lot during the time the five minute candle is being caculated. This appears to be activity related for each stock.
My question: is there a way to only have the OnBarsChanged event fired at certain intervals in order to reduce the amount of data coming back? I would like to have the data for the candle as it is being caculated, but not anymore that every five seconds.
My question: is there a way to only have the OnBarsChanged event fired at certain intervals in order to reduce the amount of data coming back? I would like to have the data for the candle as it is being caculated, but not anymore that every five seconds.
Comment