@pipsend/charts 0.0.13 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +191 -5
- package/dist/pipsend-charts.development.mjs +6864 -18
- package/dist/pipsend-charts.production.mjs +2 -2
- package/dist/pipsend-charts.standalone.development.js +6905 -17
- package/dist/pipsend-charts.standalone.development.mjs +6864 -18
- package/dist/pipsend-charts.standalone.production.js +2 -2
- package/dist/pipsend-charts.standalone.production.mjs +2 -2
- package/dist/typings.d.ts +1279 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
7
|
[](https://bundlephobia.com/package/@pipsend/charts)
|
|
8
8
|
|
|
9
|
-
**Professional Financial Charting Library with
|
|
9
|
+
**Professional Financial Charting Library with 12 Technical Indicators & 14 Interactive Drawing Tools**
|
|
10
10
|
|
|
11
|
-
Simple • Powerful • Framework-Agnostic • TypeScript
|
|
11
|
+
Simple • Powerful • Framework-Agnostic • TypeScript • Production-Ready
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -39,13 +39,15 @@ Simple • Powerful • Framework-Agnostic • TypeScript
|
|
|
39
39
|
|
|
40
40
|
**Pipsend Charts** is a high-performance financial charting library designed for professional trading applications. Built on TradingView's Lightweight Charts™, enhanced with:
|
|
41
41
|
|
|
42
|
-
✅ **
|
|
43
|
-
✅ **Interactive
|
|
44
|
-
✅ **
|
|
42
|
+
✅ **12 Technical Indicators** - SMA, EMA, WMA, Bollinger Bands, RSI, MACD, Stochastic, ATR, Volume, OBV, Trading Sessions, Volume Profile
|
|
43
|
+
✅ **14 Interactive Drawing Tools** - Position, Ruler, Fibonacci (3 types), Lines (4 types), Shapes (3 types), Annotations (3 types)
|
|
44
|
+
✅ **Full Visual Rendering** - All tools render on canvas with drag & drop support
|
|
45
|
+
✅ **Functional API** - One function call per indicator/tool, auto-updating
|
|
45
46
|
✅ **Framework Agnostic** - Works with React, Vue, Angular, Svelte, or vanilla JS
|
|
46
47
|
✅ **Lightweight** - ~49KB gzipped, minimal dependencies
|
|
47
48
|
✅ **TypeScript Native** - Full type safety and autocomplete
|
|
48
49
|
✅ **High Performance** - 60 FPS on thousands of data points
|
|
50
|
+
✅ **Production Ready** - Battle-tested with comprehensive documentation
|
|
49
51
|
|
|
50
52
|
---
|
|
51
53
|
|
|
@@ -340,6 +342,190 @@ applyOBV(series, chart, {
|
|
|
340
342
|
});
|
|
341
343
|
```
|
|
342
344
|
|
|
345
|
+
#### 11. Forex Trading Sessions
|
|
346
|
+
```javascript
|
|
347
|
+
import { createTradingSessionsIndicator, DEFAULT_SESSIONS } from '@pipsend/charts';
|
|
348
|
+
|
|
349
|
+
const sessions = createTradingSessionsIndicator(chart, series, {
|
|
350
|
+
sessions: DEFAULT_SESSIONS,
|
|
351
|
+
showOverlaps: true,
|
|
352
|
+
enabled: true
|
|
353
|
+
});
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
#### 12. Volume Profile
|
|
357
|
+
```javascript
|
|
358
|
+
import { createVolumeProfileIndicator, setVolumeProfileData } from '@pipsend/charts';
|
|
359
|
+
|
|
360
|
+
const volumeProfile = createVolumeProfileIndicator(chart, series, {
|
|
361
|
+
numberOfBins: 24,
|
|
362
|
+
valueAreaPercentage: 0.7,
|
|
363
|
+
showPOC: true,
|
|
364
|
+
showValueArea: true
|
|
365
|
+
});
|
|
366
|
+
|
|
367
|
+
setVolumeProfileData(volumeProfile, chartData);
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
## 🎨 Interactive Drawing Tools (14 Total)
|
|
373
|
+
|
|
374
|
+
### Trading Analysis Tools
|
|
375
|
+
|
|
376
|
+
#### 1. Position Tool
|
|
377
|
+
Mark trading positions with entry, stop loss, and take profit levels.
|
|
378
|
+
```javascript
|
|
379
|
+
import { createPositionTool } from '@pipsend/charts';
|
|
380
|
+
|
|
381
|
+
const position = createPositionTool({ chart, series }, {
|
|
382
|
+
entryPrice: 1.1000,
|
|
383
|
+
stopLoss: 1.0950,
|
|
384
|
+
takeProfit: 1.1100,
|
|
385
|
+
symbol: 'EURUSD'
|
|
386
|
+
});
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
#### 2. Ruler Tool
|
|
390
|
+
Measure distance, percentage change, and time between two points.
|
|
391
|
+
```javascript
|
|
392
|
+
import { createRulerTool } from '@pipsend/charts';
|
|
393
|
+
|
|
394
|
+
const ruler = createRulerTool({ chart, series }, {
|
|
395
|
+
interactive: true,
|
|
396
|
+
symbol: 'EURUSD'
|
|
397
|
+
});
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
### Fibonacci Tools
|
|
401
|
+
|
|
402
|
+
#### 3. Fibonacci Retracement
|
|
403
|
+
```javascript
|
|
404
|
+
import { createFibonacciTool } from '@pipsend/charts';
|
|
405
|
+
|
|
406
|
+
const fib = createFibonacciTool({ chart, series }, {
|
|
407
|
+
point1: { time: startTime, price: lowPrice },
|
|
408
|
+
point2: { time: endTime, price: highPrice }
|
|
409
|
+
});
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
#### 4. Fibonacci Extension
|
|
413
|
+
```javascript
|
|
414
|
+
import { createFibonacciExtensionTool } from '@pipsend/charts';
|
|
415
|
+
|
|
416
|
+
const fibExt = createFibonacciExtensionTool({ chart, series }, {
|
|
417
|
+
interactive: true
|
|
418
|
+
});
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
#### 5. Fibonacci Fan
|
|
422
|
+
```javascript
|
|
423
|
+
import { createFibonacciFanTool } from '@pipsend/charts';
|
|
424
|
+
|
|
425
|
+
const fibFan = createFibonacciFanTool({ chart, series }, {
|
|
426
|
+
interactive: true
|
|
427
|
+
});
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
### Line Tools
|
|
431
|
+
|
|
432
|
+
#### 6. Trend Line
|
|
433
|
+
```javascript
|
|
434
|
+
import { createTrendLineTool } from '@pipsend/charts';
|
|
435
|
+
|
|
436
|
+
const trendLine = createTrendLineTool({ chart, series }, {
|
|
437
|
+
interactive: true,
|
|
438
|
+
extendRight: true
|
|
439
|
+
});
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
#### 7. Horizontal Line
|
|
443
|
+
```javascript
|
|
444
|
+
import { createHorizontalLineTool } from '@pipsend/charts';
|
|
445
|
+
|
|
446
|
+
const hLine = createHorizontalLineTool({ chart, series }, {
|
|
447
|
+
price: 1.1050,
|
|
448
|
+
labelText: 'Resistance'
|
|
449
|
+
});
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
#### 8. Vertical Line
|
|
453
|
+
```javascript
|
|
454
|
+
import { createVerticalLineTool } from '@pipsend/charts';
|
|
455
|
+
|
|
456
|
+
const vLine = createVerticalLineTool({ chart, series }, {
|
|
457
|
+
time: eventTime,
|
|
458
|
+
labelText: 'News Event'
|
|
459
|
+
});
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
#### 9. Arrow Tool
|
|
463
|
+
```javascript
|
|
464
|
+
import { createArrowTool } from '@pipsend/charts';
|
|
465
|
+
|
|
466
|
+
const arrow = createArrowTool({ chart, series }, {
|
|
467
|
+
interactive: true,
|
|
468
|
+
showArrowHead: true
|
|
469
|
+
});
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
### Shape Tools
|
|
473
|
+
|
|
474
|
+
#### 10. Rectangle Tool
|
|
475
|
+
```javascript
|
|
476
|
+
import { createRectangleTool } from '@pipsend/charts';
|
|
477
|
+
|
|
478
|
+
const rectangle = createRectangleTool({ chart, series }, {
|
|
479
|
+
interactive: true,
|
|
480
|
+
labelText: 'Order Block'
|
|
481
|
+
});
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
#### 11. Circle/Ellipse Tool
|
|
485
|
+
```javascript
|
|
486
|
+
import { createCircleTool } from '@pipsend/charts';
|
|
487
|
+
|
|
488
|
+
const circle = createCircleTool({ chart, series }, {
|
|
489
|
+
interactive: true
|
|
490
|
+
});
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
#### 12. Gantt/Timeline Tool
|
|
494
|
+
```javascript
|
|
495
|
+
import { createGanttTool } from '@pipsend/charts';
|
|
496
|
+
|
|
497
|
+
const gantt = createGanttTool({ chart, series }, {
|
|
498
|
+
segments: [/* timeline segments */]
|
|
499
|
+
});
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
### Annotation Tools
|
|
503
|
+
|
|
504
|
+
#### 13. Brush Tool
|
|
505
|
+
```javascript
|
|
506
|
+
import { createBrushTool } from '@pipsend/charts';
|
|
507
|
+
|
|
508
|
+
const brush = createBrushTool({ chart, series }, {
|
|
509
|
+
color: '#2962FF',
|
|
510
|
+
smoothing: true
|
|
511
|
+
});
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
#### 14. Text/Annotations Tool
|
|
515
|
+
```javascript
|
|
516
|
+
import { createTextTool } from '@pipsend/charts';
|
|
517
|
+
|
|
518
|
+
const text = createTextTool({ chart, series }, {
|
|
519
|
+
text: 'Important Level',
|
|
520
|
+
time: annotationTime,
|
|
521
|
+
price: annotationPrice
|
|
522
|
+
});
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
**📚 Full Documentation:**
|
|
526
|
+
- [Complete Indicators Guide](./docs/INDICATORS.md)
|
|
527
|
+
- [Complete Drawing Tools Guide](./docs/DRAWING_TOOLS.md)
|
|
528
|
+
|
|
343
529
|
---
|
|
344
530
|
|
|
345
531
|
## 🎯 Interactive Trading Lines API
|