Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

CDFinanceChartMBS class

Super class: CDMultiChartMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class ChartDirector MBS ChartDirector Plugin 9.2 Yes Yes Yes Yes No
Function: FinanceChart is a financial charting library built on top of the main ChartDirector library.
Notes:
It extends CDMultiChartMBS by implementing many financial indicators, and allowing complex financial charts to be composed easily.

Key Features:
  • Arbitrary Financial Chart Composition: Allows a complex financial chart to be constructed by stacking a main financial chart with arbitrary number of indicator charts in any order.
  • Main Chart Layers: The main chart can show information in Candlestick or OHLC, and/or various price lines, such as closing price line, weighted close line, typical price line or median price line.
  • Moving Averages: Chart can include arbitrary number of moving average lines of configurable types and periods. Supports simple, exponential, triangular and weighted moving averages.
  • Parabolic SAR: A parabolic SAR indicator can be added to the main price chart.
  • Bands and Envelops: Built-in Bollinger Band layer, Donchian Channel layer, and moving average envelops. Also supports custom-defined bands.
  • Volume Bars: Volume Bars can be displayed as part of the main chart, or as a separate indicator chart.
  • Axis Styles: Axis can be log or linear scale, and can display on left or right side of the chart.
  • Built-In Indicators: Accumulation/Distribution, Aroon Up/Down, Aroon Oscillator, Average Directional Index, Average True Range (including raw True Range), Bollinger Band Width, Commodity Channel Index, Chaikin Money Flow, Chaikin Oscillator, Chaikin Volatility, Close Location Value, Detrended Price Oscillator, Donchian Channel Width, Ease of Movement, Fast Stochastic, MACD, Mass Index, Money Flow Index, Momentum, Negative Volume Index, On Balance Volume, Performance, Percentage Price Oscillator, Positive Volume Index, Percentage Volume Oscillator, Price Volume Trend, Rate of Change, Relative Strength Index, Slow Stochastic, Standard Deviation, Stochastic RSI, TRIX, Ultimate Oscillator, Volume, William %R.
  • Custom Lines and Indicators: Extensible design allows developers to implement additional lines and indicator types.
  • Customizable Look and Feel: Preserves the flexibility and power of the ChartDirector API. Background images, custom text boxes, logos, fonts and colors, etc., are all customizable.

Using FinanceChart:
You create an instance of FinanceChart. Next, you may add data to it using setData. After that, you may add the main chart (addMainChart) and other indicator charts to display the data graphically. These charts may be added in any order.

For the main chart, you may:

  • Display price information using Candlesticks (addCandleStick) or HLOC (addHLOC) symbols
  • Add various price lines (addCloseLine, addWeightedClose, addTypicalPrice, addMedianPrice)
  • Add moving average lines of different types and periods (addSimpleMovingAvg, addExpMovingAvg, addTriMovingAvg, addWeightedMovingAvg)
  • Add Parabolic SAR (addParabolicSAR)
  • Add price bands or envelops: (addBollingerBand, addDonchianChannel, addEnvelop)
  • Add custom lines or bands (addLineIndicator2, addBand)
  • Add volume bars (addVolBars)

For indicator charts, FinanceChart includes a wide variety of indicators. Please refer to the table below for details. You may also add your own custom indicator chart using addLineIndicator and addBarIndicator.

In addition to chart building methods, FinanceChart also has a number of chart formatting methods, such as addPlotAreaTitle to add chart title, setPlotAreaStyle to control background color and grid lines, setDateLabelFormat to control date/time formatting, etc.

Furthermore, as FinanceChart is a subclass of CDMultiChartMBS, and the main and indicator charts are implemented as XYChart objects, they can use the powerful ChartDirector API for formatting (eg. background images, custom logos, custom text boxes, metallic colors, etc).
Subclass of the CDMultiChartMBS class.

Feedback, Comments & Corrections

Super class CDMultiChartMBS

Super class CDBaseChartMBS

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS ChartDirector Plugin.


CDDrawObjMBS   -   CDFinanceSimulatorMBS




Links
MBS Xojo PDF Plugins