Skip to content

Commit

Permalink
[pre-release] v3.4.3-beta-4
Browse files Browse the repository at this point in the history
- 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`.
  • Loading branch information
salbert11 committed Nov 9, 2024
1 parent 4d5c39a commit fb78253
Show file tree
Hide file tree
Showing 23 changed files with 1,525 additions and 184 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Change Log
#### **3.4.3**

*09.11.2024 **Update***
- 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`.

---
#### **3.4.2**

*18.10.2024 **Update***
Expand Down
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,11 @@
## Language support for Pine Script V5 with Syntax Highlighting & Snippets

## Release Notes
#### **3.4.2**

*18.10.2024 **Update***
- Snippets for built-in variables, functions and constants updated to Pinescript release August 2024.
- Hover pop-up for functions refactored. Now started to include reference links for parameters.
- New parameter `force_overlay` added to built-in object functions.
- New variable `timeframe.isticks` added.
- New properties for functions `ticker.new()` and `ticker.modify()` added.
- Property `dynamic_requests` added to functions `indicator()`, `library()` and `strategy()`.
- Parameter list of `log.*` namespaces were fixed.
- Syntax of variable declaration were fixed.
- popup for `indicator()`, `strategy()`, `library()` fixed.
- Reference links added for some hover functions.
- Descriptions updated for some hover functions.
- Change color of editorOverviewRuler to a yellowish color for some themes.
- Breadcrumb menu in some themes fixed.
#### **3.4.3**

*09.11.2024 **Update***
- 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`.

---

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

---

*Version 3.4.2*
*Version 3.4.3*
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"icon": "images/pineicon.png",
"publisher": "salbert11",
"license": "MIT",
"version": "3.4.2",
"version": "3.4.3-beta-4",
"engines": {
"vscode": "^1.62.0"
},
Expand Down Expand Up @@ -127,6 +127,11 @@
"uiTheme": "vs-dark",
"path": "./themes/pine-original-dark.json"
},
{
"label": "Pine Theme Original Dark Extend",
"uiTheme": "vs-dark",
"path": "./themes/pine-original-dark-extend.json"
},
{
"label": "Pine Theme Dark Pro Bold",
"uiTheme": "vs-dark",
Expand Down
15 changes: 9 additions & 6 deletions snippets/principals.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@
" max_boxes_count = ${25| ,5,10,50,100,200,300,500|}}${26:,",
" calc_bars_count = ${27| ,0,5,10,50,100,200,300,500|}}${28:,",
" max_polylines_count = ${29| ,5,10,50,100|}}${30:,",
" dynamic_requests = ${31| ,false,true|}}",
" dynamic_requests = ${31| ,false,true|}}${32:,",
" behind_chart = ${33| ,true,false|}}",
" )",
"// # ========================================================================= #",
"// # | $1 Indicator |",
"// # ========================================================================= #",
"",
"$0"
],
"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"
"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"
},

"Indicator ⇨ 𝑓": {
Expand Down Expand Up @@ -76,15 +77,16 @@
" max_boxes_count = ${26| ,5,10,50,100,200,300,500|}}${27:,",
" calc_bars_count = ${28| ,0,5,10,50,100,200,300,500|}}${29:,",
" max_polylines_count = ${30| ,5,10,50,100|}}${31:,",
" dynamic_requests = ${32| ,false,true|}}",
" dynamic_requests = ${32| ,false,true|}}${33:,",
" behind_chart = ${34| ,true,false|}}",
" )",
"// # ========================================================================= #",
"// # | $2 Indicator |",
"// # ========================================================================= #",
"",
"$0"
],
"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"
"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"
},

"New Library ⇨ 𝑓": {
Expand Down Expand Up @@ -149,15 +151,16 @@
" use_bar_magnifier = ${57| ,false,true|}}${58:,",
" fill_orders_on_standard_ohlc = ${59| ,false,true|}}${60:,",
" max_polylines_count = ${61| ,5,10,50,100|}}${62:,",
" dynamic_requests = ${63| ,false,true|}}",
" dynamic_requests = ${63| ,false,true|}}${64:,",
" behind_chart = ${65| ,true,false|}}",
" )",
"// # ========================================================================= #",
"// # | $1 STRATEGY |",
"// # ========================================================================= #",
"",
"$0"
],
"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"
"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"
},

"Strategy ⇨ 𝑓": {
Expand Down
14 changes: 12 additions & 2 deletions src/hover_built-in_functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2611,7 +2611,7 @@
"uuid": 108,
"pattern": "(?<![\\.]\\s*)\\b(indicator)(?=\\s*\\()",
"codeblock": [
"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"
"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"
],
"markdown": "This declaration statement designates the script as an indicator and sets a number of indicator-related properties.",
"returns": "void",
Expand Down Expand Up @@ -2696,6 +2696,11 @@
"field": "dynamic_requests (const bool)",
"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.",
"linkCount": 4
},
{
"field": "behind_chart (const bool)",
"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}.",
"linkCount": 3
}
]
},
Expand Down Expand Up @@ -8045,7 +8050,7 @@
"uuid": 304,
"pattern": "(?<![\\.]\\s*)\\b(strategy)(?=\\s*\\()",
"codeblock": [
"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"
"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"
],
"markdown": "This declaration statement designates the script as a strategy and sets a number of strategy-related properties.",
"returns": "void",
Expand Down Expand Up @@ -8210,6 +8215,11 @@
"field": "dynamic_requests (const bool)",
"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.",
"linkCount": 4
},
{
"field": "behind_chart (const bool)",
"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}.",
"linkCount": 3
}
]
},
Expand Down
18 changes: 18 additions & 0 deletions src/hover_func_links.json
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,15 @@
"https://www.tradingview.com/pine-script-reference/v5/#const_false",
"https://www.tradingview.com/pine-script-docs/concepts/other-timeframes-and-data/#dynamic-requests"
]
},
{
"fno": 16,
"linkCount": 3,
"dlink": [
"https://www.tradingview.com/pine-script-reference/v5/#const_true",
"https://www.tradingview.com/pine-script-reference/v5/#const_false",
"https://www.tradingview.com/pine-script-reference/v5/#const_true"
]
}
]
},
Expand Down Expand Up @@ -5604,6 +5613,15 @@
"https://www.tradingview.com/pine-script-reference/v5/#const_false",
"https://www.tradingview.com/pine-script-docs/concepts/other-timeframes-and-data/#dynamic-requests"
]
},
{
"fno": 32,
"linkCount": 3,
"dlink": [
"https://www.tradingview.com/pine-script-reference/v5/#const_true",
"https://www.tradingview.com/pine-script-reference/v5/#const_false",
"https://www.tradingview.com/pine-script-reference/v5/#const_true"
]
}
]
},
Expand Down
Loading

0 comments on commit fb78253

Please sign in to comment.