Back to Lightweight Charts

Lightweight Charts™ Indicator Examples

indicator-examples/README.md

5.2.01.0 KB
Original Source

Lightweight Charts™ Indicator Examples

This directory contains implementations of indicator calculations and examples of how they can be shown on a chart.

Learning More

Running Locally

To run these examples locally follow these steps:

  1. Clone the repo to your local machine

  2. First build the library

    shell
    npm install
    npm run build:prod
    
  3. Switch to the Indicator Examples Folder, install dependencies, and start the development server

    shell
    cd indicator-examples
    npm install
    npm run dev
    
  4. Visit localhost:5173 in the browser.

Compiling the Examples

shell
npm run compile

Check the output in the compiled folder.

Using an Example

Once you have compiled the examples then simply copy that folder into your project and import the JS module in your code.

Alternatively you can copy the source directly into your project structure and compile it with your own toolchain.