Support Board
Date/Time: Tue, 25 Feb 2025 01:38:05 +0000
Post From: Study function keeps getting called even when the new bar is not added to chart
[2021-03-23 20:54:26] |
User741184 - Posts: 44 |
The Chart Update Interval is set to 500 milliseconds. And the documentation says, The call into the study function will just be an update call with sc.Index/sc.UpdateStartIndex set to the prior array size. The following are the conditions for when this call happens. There is new trade market data received Historical downloaded data received Bid and ask data received Market depth data received Fundamental data received New orders or order updates for the symbol and trade account the chart is set to. Trade Position updates for the symbol and trade account the chart is set to. When records are read from the chart data file during a Replay of an Intraday chart When using sc.UpdateAlways = 1 The Trade >> Trade Simulation Mode On state has been changed. What if none of the conditions above is true and after 500 ms, would the study function be called? Is that a must condition that since the Update Interval is set to 500 ms so study function should be called after every 500 ms regardless of the fact that no new trade market data is available after 500 ms? |