Login Page - Create Account

Support Board


Date/Time: Thu, 09 Jan 2025 08:55:42 +0000



Post From: SierraChart - Singleton Pattern

[2016-07-17 21:42:51]
FerroTrader - Posts: 70
Hello,
a very dear friend of mine told me SC can implement easily the "Singleton Pattern": one class/chart reading and processing data and "spreading" this read/processed data to all the chart that may use it; this design pattern is very useful once you have lots of calculations going on (Analyzing the Time and Sales and the Depth of the Market) therefore having just one point of calculation.
Well, how SC can implement the Singleton Pattern ? Using precedence ? Is there any practical and real coding example out there ? do I need to code it using ASCIL ?

Thank you a lot
Andrea