There was a problem loading the comments.

ChartIQ Developer Guide

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
This article describes how to integrate Autochartist into ChartIQ


Sample Code Download

Autochartist ChartIQ Demo
Overview

This project contains a simple demonstration of drawing Autochartist patterns using the ChartIQ library.

Demo data feeds

The demo uses static data for the candles and patterns.
The data is located in the ‘src/example-data’ folder.
Building and running the demo

Build the demo
This demo uses webpack (https://webpack.js.org/) to create an ES6-compatible bundle of the Autochartist pattern drawing module.
Prerequisites From the project root directory:
– Install webpack and jquery:
npm install –save-dev webpack webpack-cli jquery
– Install the ChartIQ library
  • Obtain a copy of the library, and extract the archive (.zip file)
  • Copy the tarball (chartiq-x.x.x.tgz) to your project folder
Note: The folder must contain a package.json file.
Install the library from the tarball using npm, for example:
npm install ./chartiq-x.x.x.tgz
This will install all the required dependencies in the node_modules folder.
– Package the Autochartist pattern drawing module
npx webpack –config webpack.config.js
Run the demo

Change to ‘src’ folder: bash cd src
Run the HTTP server: bash npx http-server
Using your web browser, navigate to:
Simple AC Pattern
ce75bd45664e6ec618abba67376b994e90e261b08789a41a2e5d185955b247b56dda410ce5932900?t=74f31c53de5166fa2b9a220e3859c507



Key Level AC Pattern
76bfbc6ae2bd75d607c1d35c862eb9f9117220ce9e2ecad57d950860b7a7dc43decec281d33e7207?t=6b9555603cd534476374295aa258600f



Share via

Related Articles

© Autochartist