Skip to content

Commit fb78253

Browse files
committed
[pre-release] v3.4.3-beta-4
- Snippets for built-in variables, functions and constants updated to Pinescript release October 2024. - `Pine Theme Original Dark` now better match with TradingView default theme. - The previous `Pine Theme Original Dark` changed to `Pine Theme Original Dark Extend`.
1 parent 4d5c39a commit fb78253

23 files changed

+1525
-184
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# Change Log
2+
#### **3.4.3**
3+
4+
*09.11.2024 **Update***
5+
- Snippets for built-in variables, functions and constants updated to Pinescript release October 2024.
6+
- `Pine Theme Original Dark` now better match with TradingView default theme. The previous `Pine Theme Original Dark` changed to `Pine Theme Original Dark Extend`.
7+
8+
---
29
#### **3.4.2**
310

411
*18.10.2024 **Update***

README.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,11 @@
44
## Language support for Pine Script V5 with Syntax Highlighting & Snippets
55

66
## Release Notes
7-
#### **3.4.2**
8-
9-
*18.10.2024 **Update***
10-
- Snippets for built-in variables, functions and constants updated to Pinescript release August 2024.
11-
- Hover pop-up for functions refactored. Now started to include reference links for parameters.
12-
- New parameter `force_overlay` added to built-in object functions.
13-
- New variable `timeframe.isticks` added.
14-
- New properties for functions `ticker.new()` and `ticker.modify()` added.
15-
- Property `dynamic_requests` added to functions `indicator()`, `library()` and `strategy()`.
16-
- Parameter list of `log.*` namespaces were fixed.
17-
- Syntax of variable declaration were fixed.
18-
- popup for `indicator()`, `strategy()`, `library()` fixed.
19-
- Reference links added for some hover functions.
20-
- Descriptions updated for some hover functions.
21-
- Change color of editorOverviewRuler to a yellowish color for some themes.
22-
- Breadcrumb menu in some themes fixed.
7+
#### **3.4.3**
8+
9+
*09.11.2024 **Update***
10+
- Snippets for built-in variables, functions and constants updated to Pinescript release October 2024.
11+
- `Pine Theme Original Dark` now better match with TradingView default theme. The previous `Pine Theme Original Dark` changed to `Pine Theme Original Dark Extend`.
2312

2413
---
2514

@@ -157,4 +146,4 @@ This extension is released under the [MIT License](./LICENSE.md).
157146

158147
---
159148

160-
*Version 3.4.2*
149+
*Version 3.4.3*

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"icon": "images/pineicon.png",
66
"publisher": "salbert11",
77
"license": "MIT",
8-
"version": "3.4.2",
8+
"version": "3.4.3-beta-4",
99
"engines": {
1010
"vscode": "^1.62.0"
1111
},
@@ -127,6 +127,11 @@
127127
"uiTheme": "vs-dark",
128128
"path": "./themes/pine-original-dark.json"
129129
},
130+
{
131+
"label": "Pine Theme Original Dark Extend",
132+
"uiTheme": "vs-dark",
133+
"path": "./themes/pine-original-dark-extend.json"
134+
},
130135
{
131136
"label": "Pine Theme Dark Pro Bold",
132137
"uiTheme": "vs-dark",

snippets/principals.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@
2222
" max_boxes_count = ${25| ,5,10,50,100,200,300,500|}}${26:,",
2323
" calc_bars_count = ${27| ,0,5,10,50,100,200,300,500|}}${28:,",
2424
" max_polylines_count = ${29| ,5,10,50,100|}}${30:,",
25-
" dynamic_requests = ${31| ,false,true|}}",
25+
" dynamic_requests = ${31| ,false,true|}}${32:,",
26+
" behind_chart = ${33| ,true,false|}}",
2627
" )",
2728
"// # ========================================================================= #",
2829
"// # | $1 Indicator |",
2930
"// # ========================================================================= #",
3031
"",
3132
"$0"
3233
],
33-
"description": "indicator(title, shorttitle, overlay, format, precision, scale, max_bars_back, timeframe, timeframe_gaps, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, max_polylines_count, dynamic_requests) → void"
34+
"description": "indicator(title, shorttitle, overlay, format, precision, scale, max_bars_back, timeframe, timeframe_gaps, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, max_polylines_count, dynamic_requests, behind_chart) → void"
3435
},
3536

3637
"Indicator ⇨ 𝑓": {
@@ -76,15 +77,16 @@
7677
" max_boxes_count = ${26| ,5,10,50,100,200,300,500|}}${27:,",
7778
" calc_bars_count = ${28| ,0,5,10,50,100,200,300,500|}}${29:,",
7879
" max_polylines_count = ${30| ,5,10,50,100|}}${31:,",
79-
" dynamic_requests = ${32| ,false,true|}}",
80+
" dynamic_requests = ${32| ,false,true|}}${33:,",
81+
" behind_chart = ${34| ,true,false|}}",
8082
" )",
8183
"// # ========================================================================= #",
8284
"// # | $2 Indicator |",
8385
"// # ========================================================================= #",
8486
"",
8587
"$0"
8688
],
87-
"description": "indicator(title, shorttitle, overlay, format, precision, scale, max_bars_back, timeframe, timeframe_gaps, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, max_polylines_count, dynamic_requests) → void"
89+
"description": "indicator(title, shorttitle, overlay, format, precision, scale, max_bars_back, timeframe, timeframe_gaps, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, max_polylines_count, dynamic_requests, behind_chart) → void"
8890
},
8991

9092
"New Library ⇨ 𝑓": {
@@ -149,15 +151,16 @@
149151
" use_bar_magnifier = ${57| ,false,true|}}${58:,",
150152
" fill_orders_on_standard_ohlc = ${59| ,false,true|}}${60:,",
151153
" max_polylines_count = ${61| ,5,10,50,100|}}${62:,",
152-
" dynamic_requests = ${63| ,false,true|}}",
154+
" dynamic_requests = ${63| ,false,true|}}${64:,",
155+
" behind_chart = ${65| ,true,false|}}",
153156
" )",
154157
"// # ========================================================================= #",
155158
"// # | $1 STRATEGY |",
156159
"// # ========================================================================= #",
157160
"",
158161
"$0"
159162
],
160-
"description": "strategy(title, shorttitle, overlay, format, precision, scale, pyramiding, calc_on_order_fills, calc_on_every_tick, max_bars_back, backtest_fill_limits_assumption, default_qty_type, default_qty_value, initial_capital, currency, slippage, commission_type, commission_value, process_orders_on_close, close_entries_rule, margin_long, margin_short, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, risk_free_rate, use_bar_magnifier, fill_orders_on_standard_ohlc, max_polylines_count, dynamic_requests) → void"
163+
"description": "strategy(title, shorttitle, overlay, format, precision, scale, pyramiding, calc_on_order_fills, calc_on_every_tick, max_bars_back, backtest_fill_limits_assumption, default_qty_type, default_qty_value, initial_capital, currency, slippage, commission_type, commission_value, process_orders_on_close, close_entries_rule, margin_long, margin_short, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, risk_free_rate, use_bar_magnifier, fill_orders_on_standard_ohlc, max_polylines_count, dynamic_requests, behind_chart) → void"
161164
},
162165

163166
"Strategy ⇨ 𝑓": {

src/hover_built-in_functions.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,7 @@
26112611
"uuid": 108,
26122612
"pattern": "(?<![\\.]\\s*)\\b(indicator)(?=\\s*\\()",
26132613
"codeblock": [
2614-
"indicator(title, shorttitle, overlay, format, precision, scale, max_bars_back, timeframe, timeframe_gaps, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, max_polylines_count, dynamic_requests) → void"
2614+
"indicator(title, shorttitle, overlay, format, precision, scale, max_bars_back, timeframe, timeframe_gaps, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, max_polylines_count, dynamic_requests, behind_chart) → void"
26152615
],
26162616
"markdown": "This declaration statement designates the script as an indicator and sets a number of indicator-related properties.",
26172617
"returns": "void",
@@ -2696,6 +2696,11 @@
26962696
"field": "dynamic_requests (const bool)",
26972697
"desc": "Specifies whether the script can dynamically call functions from the `request.*()` namespace. Dynamic `request.*()` calls are allowed within the local scopes of conditional structures (e.g., [if]{0}), loops (e.g., [for]{1}), and exported functions. Additionally, such calls allow \"series\" arguments for many of their parameters. Optional. The default is [false]{2}. See the User Manual's [Dynamic requests]{3} section for more information.",
26982698
"linkCount": 4
2699+
},
2700+
{
2701+
"field": "behind_chart (const bool)",
2702+
"desc": "Controls whether the script's plots and drawings in the main chart pane appear behind the chart display (if [true]{0}), or in front of it (if [false]{1}). Optional. The default is [true]{1}.",
2703+
"linkCount": 3
26992704
}
27002705
]
27012706
},
@@ -8045,7 +8050,7 @@
80458050
"uuid": 304,
80468051
"pattern": "(?<![\\.]\\s*)\\b(strategy)(?=\\s*\\()",
80478052
"codeblock": [
8048-
"strategy(title, shorttitle, overlay, format, precision, scale, pyramiding, calc_on_order_fills, calc_on_every_tick, max_bars_back, backtest_fill_limits_assumption, default_qty_type, default_qty_value, initial_capital, currency, slippage, commission_type, commission_value, process_orders_on_close, close_entries_rule, margin_long, margin_short, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, risk_free_rate, use_bar_magnifier, fill_orders_on_standard_ohlc, max_polylines_count, dynamic_requests) → void"
8053+
"strategy(title, shorttitle, overlay, format, precision, scale, pyramiding, calc_on_order_fills, calc_on_every_tick, max_bars_back, backtest_fill_limits_assumption, default_qty_type, default_qty_value, initial_capital, currency, slippage, commission_type, commission_value, process_orders_on_close, close_entries_rule, margin_long, margin_short, explicit_plot_zorder, max_lines_count, max_labels_count, max_boxes_count, calc_bars_count, risk_free_rate, use_bar_magnifier, fill_orders_on_standard_ohlc, max_polylines_count, dynamic_requests, behind_chart) → void"
80498054
],
80508055
"markdown": "This declaration statement designates the script as a strategy and sets a number of strategy-related properties.",
80518056
"returns": "void",
@@ -8210,6 +8215,11 @@
82108215
"field": "dynamic_requests (const bool)",
82118216
"desc": "Specifies whether the script can dynamically call functions from the `request.*()` namespace. Dynamic `request.*()` calls are allowed within the local scopes of conditional structures (e.g., [if]{0}), loops (e.g., [for]{1}), and exported functions. Additionally, such calls allow \"series\" arguments for many of their parameters. Optional. The default is [false]{2}. See the User Manual's [Dynamic requests]{3} section for more information.",
82128217
"linkCount": 4
8218+
},
8219+
{
8220+
"field": "behind_chart (const bool)",
8221+
"desc": "Controls whether the script's plots and drawings in the main chart pane appear behind the chart display (if [true]{0}), or in front of it (if [false]{1}). Optional. The default is [true]{2}.",
8222+
"linkCount": 3
82138223
}
82148224
]
82158225
},

src/hover_func_links.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,6 +1709,15 @@
17091709
"https://www.tradingview.com/pine-script-reference/v5/#const_false",
17101710
"https://www.tradingview.com/pine-script-docs/concepts/other-timeframes-and-data/#dynamic-requests"
17111711
]
1712+
},
1713+
{
1714+
"fno": 16,
1715+
"linkCount": 3,
1716+
"dlink": [
1717+
"https://www.tradingview.com/pine-script-reference/v5/#const_true",
1718+
"https://www.tradingview.com/pine-script-reference/v5/#const_false",
1719+
"https://www.tradingview.com/pine-script-reference/v5/#const_true"
1720+
]
17121721
}
17131722
]
17141723
},
@@ -5604,6 +5613,15 @@
56045613
"https://www.tradingview.com/pine-script-reference/v5/#const_false",
56055614
"https://www.tradingview.com/pine-script-docs/concepts/other-timeframes-and-data/#dynamic-requests"
56065615
]
5616+
},
5617+
{
5618+
"fno": 32,
5619+
"linkCount": 3,
5620+
"dlink": [
5621+
"https://www.tradingview.com/pine-script-reference/v5/#const_true",
5622+
"https://www.tradingview.com/pine-script-reference/v5/#const_false",
5623+
"https://www.tradingview.com/pine-script-reference/v5/#const_true"
5624+
]
56075625
}
56085626
]
56095627
},

0 commit comments

Comments
 (0)