Skip to content

Commit d793b83

Browse files
committed
[fix] snippets and hover contents fixed
- Minor fix
1 parent 2878129 commit d793b83

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

snippets/built-in_functions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2741,7 +2741,7 @@
27412741
"strategy.order ⇨ 𝑓": {
27422742
"prefix": "strategy.order",
27432743
"body": [
2744-
"strategy.order(id = \"${1}\", direction = ${2| ,strategy.long,strategy.short|}${3:${4:, qty = ${5| ,0.01,0.05,0.1,0.5,1,2,3,4,5,10|}}${6:,limit = ${7}}${8:, stop = ${9}}${10:,oca_name = ${11:\"${12}\"}}${13:, oca_type = ${14| ,strategy.oca.none,strategy.oca.cancel,strategy.oca.reduce|}}${15:,comment = ${16:\"${17}\"}}${18:,alert_message = ${19:\"${20}\"}}${21:, disable_alert = ${22| ,false,true|}}})"
2744+
"strategy.order(id = \"${1}\", direction = ${2| ,strategy.long,strategy.short|}${3:${4:, qty = ${5| ,0.01,0.05,0.1,0.5,1,2,3,4,5,10|}}${6:, limit = ${7}}${8:, stop = ${9}}${10:, oca_name = ${11:\"${12}\"}}${13:, oca_type = ${14| ,strategy.oca.none,strategy.oca.cancel,strategy.oca.reduce|}}${15:, comment = ${16:\"${17}\"}}${18:, alert_message = ${19:\"${20}\"}}${21:, disable_alert = ${22| ,false,true|}}})"
27452745
],
27462746
"description": "Command to place order ⇨ 𝑓 | strategy.order(id = string, direction = strategy_direction, qty = int|float, limit = int|float, stop = int|float, oca_name = string, oca_type = string, comment = string, alert_message = string, disable_alert = bool) → void"
27472747
},

snippets/words.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@
132132
"export 𝑓 ⇨ 𝑥": {
133133
"prefix": ["export", "library.function"],
134134
"body": [
135-
"export ${1/ /_/g} (${2:<series|simple>} ${3| ,int,float,bool,table,color|} ${4:<parameter_name>} = ${5:[<default_value>]}${6:, ${7:[𝑥]}}) =>",
136-
" ${8:<function_code>}"
135+
"export ${1:method }${2:<function_name>}(${3|<type>,int,float,bool,color,string,box,label,line,linefill,table,polyline,chart.point|} ${4:<parameter_name>}${5: = ${6:<default_value>}}${7:, ${8:<parameter_name>}})=>",
136+
" ${9:<function_code>}"
137137
],
138138
"description": "export function_name() => \\n\\t "
139139
},

src/hover_built-in_variables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@
947947
"id": 118,
948948
"pattern": "(?<![\\.]\\s*)\\b(timeframe\\.period)\\b(?!\\s*[\\.\\(])",
949949
"codeblock": "timeframe.period",
950-
"markdown": "A string representation of the chart's timeframe. The returned string's format is '[<quantity>][<units>]', where <quantity> and <units> are in some cases absent. <quantity> is the number of units, but it is absent if that number is 1. <unit> is 'S' for seconds, 'D' for days, 'W' for weeks, 'M' for months, but it is absent for minutes. No <unit> exists for hours. The variable will return: '10S' for 10 seconds, '60' for 60 minutes, 'D' for one day, '2W' for two weeks, '3M' for one quarter. Can be used as an argument with any function containing a `timeframe` parameter.",
950+
"markdown": "A string representation of the chart's timeframe. The returned string's format is `[<quantity>][<units>]`, where `<quantity>` and `<units>` are in some cases absent. `<quantity>` is the number of units, but it is absent if that number is 1. `<unit>` is 'S' for seconds, 'D' for days, 'W' for weeks, 'M' for months, but it is absent for minutes. No `<unit>` exists for hours. The variable will return: '10S' for 10 seconds, '60' for 60 minutes, 'D' for one day, '2W' for two weeks, '3M' for one quarter. Can be used as an argument with any function containing a `timeframe` parameter.",
951951
"type": "simple string",
952952
"manual": "https://www.tradingview.com/pine-script-reference/v5/#var_timeframe.period"
953953
},

0 commit comments

Comments
 (0)