Skip to content

Commit

Permalink
docs: Add imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Jan 13, 2025
1 parent 1be58d9 commit 410723b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,28 @@ The main focus of this library is on the accuracy of calculations, but using the

All indicators can be updated over time by streaming data (prices or candles) to the `update` method. Some indicators also provide `static` batch methods for further performance improvements when providing data up-front during a backtest or historical data import.

## Installation

```bash
npm install trading-signals
```

## Usage

**CommonJS:**

```ts
const {Big, SMA} = require('trading-signals');
```

**ESM:**

```ts
import {Big, SMA} from 'trading-signals';
```

**Example:**

```typescript
import {Big, SMA} from 'trading-signals';

Expand Down

0 comments on commit 410723b

Please sign in to comment.