File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff 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
1722Full featured chart : This demo uses PineTS to load market data from binance and calculate multiple indicators
Original file line number Diff line number Diff line change 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' ,
You can’t perform that action at this time.
0 commit comments