4.1 How Indicators and Signals are Calculated: Difference between revisions
From MultiCharts
4.1 How Indicators and Signals are Calculated (view source)
Revision as of 14:49, 1 July 2014
, 1 July 2014→For Advanced Users
Line 8: | Line 8: | ||
MultiCharts. NET is a multithread application and it is important to know in which threads studies are created, executed and deleted. There is a main thread (UI) and working threads, where the calculation of indicators and signals is executed. | MultiCharts. NET is a multithread application and it is important to know in which threads studies are created, executed and deleted. There is a main thread (UI) and working threads, where the calculation of indicators and signals is executed. | ||
<span style="color:#ff0000">Important! | |||
Please keep in mind that most methods and basic class properties of indicators, signals and functions are not thread-safe. It means that simultaneous work from several threads (which are created explicitly or implicitly) with methods and properties may lead to incorrect inner data and as the result to crashes in program. It is done in order to speed up calculation. | Please keep in mind that most methods and basic class properties of indicators, signals and functions are not thread-safe. It means that simultaneous work from several threads (which are created explicitly or implicitly) with methods and properties may lead to incorrect inner data and as the result to crashes in program. It is done in order to speed up calculation. | ||
</span> | |||
Starting from the moment of applying a study to a chart, scanner or portfolio, several stages occur before receiving the calculation results. | Starting from the moment of applying a study to a chart, scanner or portfolio, several stages occur before receiving the calculation results. |