SciChart’s iOS Chart library ships with ~60 Objective-C and Swift 4 iOS Chart Examples which you can browse, play with, view the source-code and even export each iOS Objective-C / Swift Chart Example to a stand-alone XCode project. All of this is possible with the new and improved SciChart iOS Examples Suite, which ships as part of the SciChart iOS SDK.
The iOS Realtime Ticking Stock Charts example demonstrates how SciChart iOS is suitable for real-time trading and stock chart apps even in demanding, live markets.
An Ohlc or Candlestick chart is added by using SciChart’s SCIFastCandlestickRenderableSeries or SCIFastOhlcRenderableSeries respectively. Two line series using SCIFastLineRenderableSeries draw the moving averages.
Price data is updated in a SCIOhlcDataSeries in a timer callback. When the data updates, SciChart automatically redraws. Scrolling to the latest bar is handled in code by manipulating the Axis.VisibleRange property.
The Swift 4 and Objective-C source code for the iOS Realtime Ticking Stock Charts example is included below (Scroll down!).
Did you know you can also view the source code from one of the following sources as well?