Skip to content

Commit 7a6c03d

Browse files
committed
docs update
1 parent b694885 commit 7a6c03d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

docs/demos.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ A basic demo with static data
1212

1313
[View Demo](demos/basic-01.html){: .btn .btn-primary }
1414

15+
## Pine Script Demo
16+
17+
This example shows how to load and run a native PineScript code using PineTS and QFChart
18+
[View Demo](demos/pinescript.html){: .btn .btn-primary }
19+
1520
## Full Chart
1621

1722
Full featured chart : This demo uses PineTS to load market data from binance and calculate multiple indicators

docs/demos/pinescript.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727
</nav>
2828
<div id="container">
2929
<h1>PineScript Demo</h1>
30+
3031
<p>
31-
This demo uses the
32-
<a href="https://github.com/QuantForgeOrg/PineTS" target="_blank">PineTS</a> library to load the market data and calculate multiple
33-
indicators.
32+
This demo loads and execute native pine script from this file
33+
<a href="../data/cross-signal.pine" target="_blank">cross-signal.pine</a>, then uses
34+
<a href="https://github.com/QuantForgeOrg/PineTS" target="_blank">PineTS</a> to execute it and get the results.<br />
35+
The results are then used by QFChart to render the chart.
3436
</p>
3537
<hr />
3638
<div id="main-chart"><center>Loading...</center></div>
@@ -80,7 +82,7 @@ <h1>PineScript Demo</h1>
8082
const chartContainer = document.getElementById('main-chart');
8183
window.chart = new QFChart.QFChart(chartContainer, {
8284
title: 'BTC/USDT', // Custom title
83-
height: '700px',
85+
height: '600px',
8486
padding: 0.2,
8587
databox: {
8688
position: isMobileDevice ? 'floating' : 'right',

0 commit comments

Comments
 (0)