Skip to main content
100%

MACD

✓ Published0🌍 Public
CColinEberhardt
Last edited May 28, 2019
Created on Sep 5, 2017

This example visualizes Apple stock price data using the Moving Average Convergence Divergence (MACD) technical indicator. The chart renders three synchronized components: a bar series showing the MACD divergence, a red signal line, and a blue MACD line, all within a d3fc Cartesian chart that uses a discontinuous time scale to skip weekends. The MACD calculation employs the `fc.indicatorMacd` algorithm with custom fast, slow, and signal periods on closing prices loaded from a local CSV file. The code uses d3fc series components including `seriesSvgBar`, `seriesSvgLine`, and `seriesSvgMulti` to compose the visualization.

AI-generated description

A MACD indicator example.

Built with blockbuilder.org

mit Licensed

Similar vizzes