oakscriptjs 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/README.md +25 -1
  2. package/bin/oakscript.mjs +10 -3
  3. package/dist/cjs/box/index.d.ts +348 -289
  4. package/dist/cjs/box/index.d.ts.map +1 -1
  5. package/dist/cjs/box/index.js.map +2 -2
  6. package/dist/cjs/check/node.d.ts.map +1 -1
  7. package/dist/cjs/check/node.js +1 -0
  8. package/dist/cjs/check/node.js.map +2 -2
  9. package/dist/cjs/check/preview.d.ts +31 -0
  10. package/dist/cjs/check/preview.d.ts.map +1 -0
  11. package/dist/cjs/check/preview.js +303 -0
  12. package/dist/cjs/check/preview.js.map +7 -0
  13. package/dist/cjs/color/index.d.ts +11 -11
  14. package/dist/cjs/color/index.js.map +1 -1
  15. package/dist/cjs/color/parse.d.ts +2 -0
  16. package/dist/cjs/color/parse.d.ts.map +1 -1
  17. package/dist/cjs/color/parse.js +6 -0
  18. package/dist/cjs/color/parse.js.map +2 -2
  19. package/dist/cjs/compare/index.d.ts +76 -12
  20. package/dist/cjs/compare/index.d.ts.map +1 -1
  21. package/dist/cjs/compare/index.js.map +2 -2
  22. package/dist/cjs/drawing/registry.d.ts +28 -5
  23. package/dist/cjs/drawing/registry.d.ts.map +1 -1
  24. package/dist/cjs/drawing/registry.js +14 -0
  25. package/dist/cjs/drawing/registry.js.map +2 -2
  26. package/dist/cjs/index.d.ts +1 -1
  27. package/dist/cjs/index.js +1 -1
  28. package/dist/cjs/index.js.map +1 -1
  29. package/dist/cjs/label/index.d.ts +265 -187
  30. package/dist/cjs/label/index.d.ts.map +1 -1
  31. package/dist/cjs/label/index.js +1 -1
  32. package/dist/cjs/label/index.js.map +2 -2
  33. package/dist/cjs/line/index.d.ts +247 -207
  34. package/dist/cjs/line/index.d.ts.map +1 -1
  35. package/dist/cjs/line/index.js.map +2 -2
  36. package/dist/cjs/linefill/index.d.ts +61 -89
  37. package/dist/cjs/linefill/index.d.ts.map +1 -1
  38. package/dist/cjs/linefill/index.js.map +2 -2
  39. package/dist/cjs/math/index.d.ts +49 -40
  40. package/dist/cjs/math/index.d.ts.map +1 -1
  41. package/dist/cjs/math/index.js.map +2 -2
  42. package/dist/cjs/polyline/index.d.ts +57 -78
  43. package/dist/cjs/polyline/index.d.ts.map +1 -1
  44. package/dist/cjs/polyline/index.js.map +2 -2
  45. package/dist/cjs/runtime/input-active.d.ts +2 -2
  46. package/dist/cjs/runtime/input-active.js.map +1 -1
  47. package/dist/cjs/runtime/series.d.ts +241 -161
  48. package/dist/cjs/runtime/series.d.ts.map +1 -1
  49. package/dist/cjs/runtime/series.js +223 -127
  50. package/dist/cjs/runtime/series.js.map +2 -2
  51. package/dist/cjs/script/api/alert.d.ts +37 -0
  52. package/dist/cjs/script/api/alert.d.ts.map +1 -0
  53. package/dist/cjs/script/api/alert.js +17 -0
  54. package/dist/cjs/script/api/alert.js.map +7 -0
  55. package/dist/cjs/script/api/calc.d.ts +232 -0
  56. package/dist/cjs/script/api/calc.d.ts.map +1 -0
  57. package/dist/cjs/script/api/calc.js +17 -0
  58. package/dist/cjs/script/api/calc.js.map +7 -0
  59. package/dist/cjs/script/api/color.d.ts +213 -0
  60. package/dist/cjs/script/api/color.d.ts.map +1 -0
  61. package/dist/cjs/script/api/color.js +17 -0
  62. package/dist/cjs/script/api/color.js.map +7 -0
  63. package/dist/cjs/script/api/context.d.ts +764 -0
  64. package/dist/cjs/script/api/context.d.ts.map +1 -0
  65. package/dist/cjs/script/api/context.js +17 -0
  66. package/dist/cjs/script/api/context.js.map +7 -0
  67. package/dist/cjs/script/api/log.d.ts +58 -0
  68. package/dist/cjs/script/api/log.d.ts.map +1 -0
  69. package/dist/cjs/script/api/log.js +17 -0
  70. package/dist/cjs/script/api/log.js.map +7 -0
  71. package/dist/cjs/script/api/strategy.d.ts +391 -0
  72. package/dist/cjs/script/api/strategy.d.ts.map +1 -0
  73. package/dist/cjs/script/api/strategy.js +17 -0
  74. package/dist/cjs/script/api/strategy.js.map +7 -0
  75. package/dist/cjs/script/api/ta.d.ts +1012 -0
  76. package/dist/cjs/script/api/ta.d.ts.map +1 -0
  77. package/dist/cjs/script/api/ta.js +17 -0
  78. package/dist/cjs/script/api/ta.js.map +7 -0
  79. package/dist/cjs/script/api/table.d.ts +479 -0
  80. package/dist/cjs/script/api/table.d.ts.map +1 -0
  81. package/dist/cjs/script/api/table.js +17 -0
  82. package/dist/cjs/script/api/table.js.map +7 -0
  83. package/dist/cjs/script/constants.d.ts +228 -83
  84. package/dist/cjs/script/constants.d.ts.map +1 -1
  85. package/dist/cjs/script/constants.js +87 -0
  86. package/dist/cjs/script/constants.js.map +2 -2
  87. package/dist/cjs/script/define.d.ts +94 -0
  88. package/dist/cjs/script/define.d.ts.map +1 -0
  89. package/dist/cjs/script/define.js +127 -0
  90. package/dist/cjs/script/define.js.map +7 -0
  91. package/dist/cjs/script/drawing-args.d.ts.map +1 -1
  92. package/dist/cjs/script/drawing-args.js +1 -1
  93. package/dist/cjs/script/drawing-args.js.map +2 -2
  94. package/dist/cjs/script/formula.d.ts +53 -0
  95. package/dist/cjs/script/formula.d.ts.map +1 -0
  96. package/dist/cjs/script/formula.js +402 -0
  97. package/dist/cjs/script/formula.js.map +7 -0
  98. package/dist/cjs/script/globals.d.ts +10 -0
  99. package/dist/cjs/script/globals.d.ts.map +1 -1
  100. package/dist/cjs/script/globals.js.map +1 -1
  101. package/dist/cjs/script/index.d.ts +1065 -1006
  102. package/dist/cjs/script/index.d.ts.map +1 -1
  103. package/dist/cjs/script/index.js +530 -60
  104. package/dist/cjs/script/index.js.map +3 -3
  105. package/dist/cjs/script/json.d.ts +117 -0
  106. package/dist/cjs/script/json.d.ts.map +1 -0
  107. package/dist/cjs/script/json.js +321 -0
  108. package/dist/cjs/script/json.js.map +7 -0
  109. package/dist/cjs/str/index.d.ts +50 -75
  110. package/dist/cjs/str/index.d.ts.map +1 -1
  111. package/dist/cjs/str/index.js +2 -2
  112. package/dist/cjs/str/index.js.map +2 -2
  113. package/dist/cjs/strategy/index.d.ts +102 -1
  114. package/dist/cjs/strategy/index.d.ts.map +1 -1
  115. package/dist/cjs/strategy/index.js.map +2 -2
  116. package/dist/cjs/table/index.d.ts +330 -49
  117. package/dist/cjs/table/index.d.ts.map +1 -1
  118. package/dist/cjs/table/index.js +55 -27
  119. package/dist/cjs/table/index.js.map +2 -2
  120. package/dist/cjs/text/index.d.ts +12 -14
  121. package/dist/cjs/text/index.d.ts.map +1 -1
  122. package/dist/cjs/text/index.js.map +2 -2
  123. package/dist/cjs/types/index.d.ts +15 -8
  124. package/dist/cjs/types/index.d.ts.map +1 -1
  125. package/dist/cjs/types/index.js +12 -3
  126. package/dist/cjs/types/index.js.map +2 -2
  127. package/dist/esm/box/index.d.ts +348 -289
  128. package/dist/esm/box/index.d.ts.map +1 -1
  129. package/dist/esm/box/index.js +276 -276
  130. package/dist/esm/box/index.js.map +1 -1
  131. package/dist/esm/check/node.d.ts.map +1 -1
  132. package/dist/esm/check/node.js +1 -0
  133. package/dist/esm/check/node.js.map +1 -1
  134. package/dist/esm/check/preview.d.ts +31 -0
  135. package/dist/esm/check/preview.d.ts.map +1 -0
  136. package/dist/esm/check/preview.js +296 -0
  137. package/dist/esm/check/preview.js.map +1 -0
  138. package/dist/esm/color/index.d.ts +11 -11
  139. package/dist/esm/color/index.js +11 -11
  140. package/dist/esm/color/parse.d.ts +2 -0
  141. package/dist/esm/color/parse.d.ts.map +1 -1
  142. package/dist/esm/color/parse.js +7 -0
  143. package/dist/esm/color/parse.js.map +1 -1
  144. package/dist/esm/compare/index.d.ts +76 -12
  145. package/dist/esm/compare/index.d.ts.map +1 -1
  146. package/dist/esm/compare/index.js +76 -12
  147. package/dist/esm/compare/index.js.map +1 -1
  148. package/dist/esm/drawing/registry.d.ts +28 -5
  149. package/dist/esm/drawing/registry.d.ts.map +1 -1
  150. package/dist/esm/drawing/registry.js +39 -3
  151. package/dist/esm/drawing/registry.js.map +1 -1
  152. package/dist/esm/index.d.ts +1 -1
  153. package/dist/esm/index.js +1 -1
  154. package/dist/esm/label/index.d.ts +265 -187
  155. package/dist/esm/label/index.d.ts.map +1 -1
  156. package/dist/esm/label/index.js +207 -177
  157. package/dist/esm/label/index.js.map +1 -1
  158. package/dist/esm/line/index.d.ts +247 -207
  159. package/dist/esm/line/index.d.ts.map +1 -1
  160. package/dist/esm/line/index.js +202 -194
  161. package/dist/esm/line/index.js.map +1 -1
  162. package/dist/esm/linefill/index.d.ts +61 -89
  163. package/dist/esm/linefill/index.d.ts.map +1 -1
  164. package/dist/esm/linefill/index.js +61 -89
  165. package/dist/esm/linefill/index.js.map +1 -1
  166. package/dist/esm/math/index.d.ts +49 -40
  167. package/dist/esm/math/index.d.ts.map +1 -1
  168. package/dist/esm/math/index.js +22 -9
  169. package/dist/esm/math/index.js.map +1 -1
  170. package/dist/esm/polyline/index.d.ts +57 -78
  171. package/dist/esm/polyline/index.d.ts.map +1 -1
  172. package/dist/esm/polyline/index.js +57 -78
  173. package/dist/esm/polyline/index.js.map +1 -1
  174. package/dist/esm/runtime/input-active.d.ts +2 -2
  175. package/dist/esm/runtime/input-active.js +2 -2
  176. package/dist/esm/runtime/series.d.ts +241 -161
  177. package/dist/esm/runtime/series.d.ts.map +1 -1
  178. package/dist/esm/runtime/series.js +241 -161
  179. package/dist/esm/runtime/series.js.map +1 -1
  180. package/dist/esm/script/api/alert.d.ts +37 -0
  181. package/dist/esm/script/api/alert.d.ts.map +1 -0
  182. package/dist/esm/script/api/alert.js +7 -0
  183. package/dist/esm/script/api/alert.js.map +1 -0
  184. package/dist/esm/script/api/calc.d.ts +232 -0
  185. package/dist/esm/script/api/calc.d.ts.map +1 -0
  186. package/dist/esm/script/api/calc.js +6 -0
  187. package/dist/esm/script/api/calc.js.map +1 -0
  188. package/dist/esm/script/api/color.d.ts +213 -0
  189. package/dist/esm/script/api/color.d.ts.map +1 -0
  190. package/dist/esm/script/api/color.js +6 -0
  191. package/dist/esm/script/api/color.js.map +1 -0
  192. package/dist/esm/script/api/context.d.ts +764 -0
  193. package/dist/esm/script/api/context.d.ts.map +1 -0
  194. package/dist/esm/script/api/context.js +7 -0
  195. package/dist/esm/script/api/context.js.map +1 -0
  196. package/dist/esm/script/api/log.d.ts +58 -0
  197. package/dist/esm/script/api/log.d.ts.map +1 -0
  198. package/dist/esm/script/api/log.js +6 -0
  199. package/dist/esm/script/api/log.js.map +1 -0
  200. package/dist/esm/script/api/strategy.d.ts +391 -0
  201. package/dist/esm/script/api/strategy.d.ts.map +1 -0
  202. package/dist/esm/script/api/strategy.js +7 -0
  203. package/dist/esm/script/api/strategy.js.map +1 -0
  204. package/dist/esm/script/api/ta.d.ts +1012 -0
  205. package/dist/esm/script/api/ta.d.ts.map +1 -0
  206. package/dist/esm/script/api/ta.js +6 -0
  207. package/dist/esm/script/api/ta.js.map +1 -0
  208. package/dist/esm/script/api/table.d.ts +479 -0
  209. package/dist/esm/script/api/table.d.ts.map +1 -0
  210. package/dist/esm/script/api/table.js +7 -0
  211. package/dist/esm/script/api/table.js.map +1 -0
  212. package/dist/esm/script/constants.d.ts +228 -83
  213. package/dist/esm/script/constants.d.ts.map +1 -1
  214. package/dist/esm/script/constants.js +110 -24
  215. package/dist/esm/script/constants.js.map +1 -1
  216. package/dist/esm/script/define.d.ts +94 -0
  217. package/dist/esm/script/define.d.ts.map +1 -0
  218. package/dist/esm/script/define.js +136 -0
  219. package/dist/esm/script/define.js.map +1 -0
  220. package/dist/esm/script/drawing-args.d.ts.map +1 -1
  221. package/dist/esm/script/drawing-args.js +2 -1
  222. package/dist/esm/script/drawing-args.js.map +1 -1
  223. package/dist/esm/script/formula.d.ts +53 -0
  224. package/dist/esm/script/formula.d.ts.map +1 -0
  225. package/dist/esm/script/formula.js +408 -0
  226. package/dist/esm/script/formula.js.map +1 -0
  227. package/dist/esm/script/globals.d.ts +10 -0
  228. package/dist/esm/script/globals.d.ts.map +1 -1
  229. package/dist/esm/script/globals.js.map +1 -1
  230. package/dist/esm/script/index.d.ts +1065 -1006
  231. package/dist/esm/script/index.d.ts.map +1 -1
  232. package/dist/esm/script/index.js +1096 -151
  233. package/dist/esm/script/index.js.map +1 -1
  234. package/dist/esm/script/json.d.ts +117 -0
  235. package/dist/esm/script/json.d.ts.map +1 -0
  236. package/dist/esm/script/json.js +375 -0
  237. package/dist/esm/script/json.js.map +1 -0
  238. package/dist/esm/str/index.d.ts +50 -75
  239. package/dist/esm/str/index.d.ts.map +1 -1
  240. package/dist/esm/str/index.js +51 -76
  241. package/dist/esm/str/index.js.map +1 -1
  242. package/dist/esm/strategy/index.d.ts +102 -1
  243. package/dist/esm/strategy/index.d.ts.map +1 -1
  244. package/dist/esm/strategy/index.js +1 -1
  245. package/dist/esm/strategy/index.js.map +1 -1
  246. package/dist/esm/table/index.d.ts +330 -49
  247. package/dist/esm/table/index.d.ts.map +1 -1
  248. package/dist/esm/table/index.js +372 -61
  249. package/dist/esm/table/index.js.map +1 -1
  250. package/dist/esm/text/index.d.ts +12 -14
  251. package/dist/esm/text/index.d.ts.map +1 -1
  252. package/dist/esm/text/index.js +12 -14
  253. package/dist/esm/text/index.js.map +1 -1
  254. package/dist/esm/types/index.d.ts +15 -8
  255. package/dist/esm/types/index.d.ts.map +1 -1
  256. package/dist/esm/types/index.js +15 -8
  257. package/dist/esm/types/index.js.map +1 -1
  258. package/docs/first-indicator.md +152 -0
  259. package/docs/guide.md +1185 -0
  260. package/docs/inventory.md +772 -0
  261. package/docs/no-code.md +207 -0
  262. package/docs/recipes.md +202 -0
  263. package/package.json +2 -1
  264. package/skills/oakscript/SKILL.md +8 -0
  265. package/skills/oakscript/reference/errors.md +3 -2
  266. package/src/box/index.ts +348 -289
  267. package/src/check/node.ts +1 -0
  268. package/src/check/preview.ts +307 -0
  269. package/src/color/index.ts +11 -11
  270. package/src/color/parse.ts +7 -0
  271. package/src/compare/index.ts +76 -12
  272. package/src/drawing/registry.ts +44 -5
  273. package/src/index.ts +1 -1
  274. package/src/label/index.ts +267 -189
  275. package/src/line/index.ts +248 -208
  276. package/src/linefill/index.ts +61 -89
  277. package/src/math/index.ts +51 -42
  278. package/src/polyline/index.ts +57 -78
  279. package/src/runtime/input-active.ts +2 -2
  280. package/src/runtime/series.ts +243 -163
  281. package/src/script/api/alert.ts +43 -0
  282. package/src/script/api/calc.ts +250 -0
  283. package/src/script/api/color.ts +245 -0
  284. package/src/script/api/context.ts +944 -0
  285. package/src/script/api/log.ts +60 -0
  286. package/src/script/api/strategy.ts +410 -0
  287. package/src/script/api/ta.ts +1115 -0
  288. package/src/script/api/table.ts +538 -0
  289. package/src/script/constants.ts +229 -25
  290. package/src/script/define.ts +221 -0
  291. package/src/script/drawing-args.ts +2 -1
  292. package/src/script/formula.ts +438 -0
  293. package/src/script/globals.ts +10 -0
  294. package/src/script/index.ts +1517 -239
  295. package/src/script/json.ts +457 -0
  296. package/src/str/index.ts +51 -76
  297. package/src/strategy/index.ts +102 -1
  298. package/src/table/index.ts +388 -62
  299. package/src/text/index.ts +12 -14
  300. package/src/types/index.ts +15 -8
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var table_exports = {};
16
+ module.exports = __toCommonJS(table_exports);
17
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/script/api/table.ts"],
4
+ "sourcesContent": ["/**\n * @fileoverview Documented type of the `table` script global: tables fixed at a place of the pane, their cells and\n * their look. Inside a bar loop a Series given for a number is read on the current bar.\n * @module script/api/table\n */\n\nimport type { Series } from '../../runtime/series.js';\nimport type { Table } from '../../types/index.js';\nimport type { TableCellArgs, TableNewArgs } from '../index.js';\n\n/** A number, or a Series read on the current bar (inside a bar loop). */\ntype Numeric = number | Series;\n/** A colour: `color.red`, `\"#FF0000\"`, `color.new(color.red, 50)`... */\ntype Colour = string;\n/** Where a table sits in the pane (`position.*`). */\ntype TablePosition = Table['position'];\ntype HAlign = 'left' | 'center' | 'right';\ntype VAlign = 'top' | 'center' | 'bottom';\ntype FontFamily = 'default' | 'monospace';\n\n/**\n * The `table` global: tables fixed at a place of the pane (they do not scroll with the bars), to show values,\n * statistics or a dashboard. Create one with `table.new()`, fill it with `table.cell()`. A column or row outside the\n * table is an error; on a deleted table the functions do nothing.\n */\nexport interface TableNamespace {\n /**\n * Creates a table fixed at a place of the pane (it does not scroll with the bars) and returns its handle; fill its\n * cells with `table.cell()`. A pane holds one table per position: a live table at the same position (with the same\n * `force_overlay`) is deleted. The arguments after `rows` can also be given by name in an object.\n * @param position - Where the table sits: `position.top_left`, `position.top_center`, `position.top_right`,\n * `position.middle_left`, `position.middle_center`, `position.middle_right`, `position.bottom_left`,\n * `position.bottom_center` or `position.bottom_right`.\n * @param columns - Number of columns.\n * @param rows - Number of rows.\n * @param bgcolor - Background colour of the whole table. Default: none (transparent).\n * @param frame_color - Colour of the outer frame. Default: none.\n * @param frame_width - Width of the outer frame in pixels. Default: 0 (no frame).\n * @param border_color - Colour of the lines between the cells. Default: none.\n * @param border_width - Width of the lines between the cells in pixels. Default: 0 (no lines).\n * @param force_overlay - When true, the table is drawn on the price pane even if the script has its own pane.\n * Default: false.\n * @returns The new table.\n * @example\n * ```js\n * const t = table.new(position.top_right, 2, 1, color.new(color.black, 20));\n * eachBar((c) => {\n * if (c.i === c.n - 1) table.cell(t, 0, 0, \"Close\", 0, 0, color.white);\n * });\n * ```\n */\n 'new'(\n position: TablePosition,\n columns: Numeric,\n rows: Numeric,\n bgcolor?: Colour,\n frame_color?: Colour,\n frame_width?: Numeric,\n border_color?: Colour,\n border_width?: Numeric,\n force_overlay?: boolean\n ): Table;\n /**\n * Creates a table, with the arguments after `rows` given by name (see the first form).\n * @param position - Where the table sits (`position.top_right`, `position.bottom_left`...).\n * @param columns - Number of columns.\n * @param rows - Number of rows.\n * @param args - The other arguments by name: `bgcolor`, `frame_color`, `frame_width`, `border_color`,\n * `border_width`, `force_overlay`.\n * @returns The new table.\n * @example\n * ```js\n * const t = table.new(position.bottom_left, 2, 3, { bgcolor: color.new(color.black, 20), border_width: 1 });\n * ```\n */\n 'new'(position: TablePosition, columns: Numeric, rows: Numeric, args: TableNewArgs): Table;\n /**\n * Creates a table, with every argument given by name (see the first form).\n * @param args - `position`, `columns`, `rows`, and optionally `bgcolor`, `frame_color`, `frame_width`,\n * `border_color`, `border_width`, `force_overlay`.\n * @returns The new table.\n * @example\n * ```js\n * const t = table.new({ position: position.top_center, columns: 3, rows: 1 });\n * ```\n */\n 'new'(args: TableNewArgs): Table;\n /**\n * Creates a table, with its arguments by position only (`table.new()` also takes them by name).\n * @param position - Where the table sits (`position.top_right`, `position.bottom_left`...).\n * @param columns - Number of columns.\n * @param rows - Number of rows.\n * @param bgcolor - Background colour of the whole table. Default: none.\n * @param frame_color - Colour of the outer frame. Default: none.\n * @param frame_width - Width of the outer frame in pixels. Default: 0.\n * @param border_color - Colour of the lines between the cells. Default: none.\n * @param border_width - Width of the lines between the cells in pixels. Default: 0.\n * @param force_overlay - When true, the table is drawn on the price pane. Default: false.\n * @returns The new table.\n * @example\n * ```js\n * const t = table.new_table(position.top_right, 1, 1, color.gray);\n * ```\n */\n new_table(\n position: TablePosition,\n columns: Numeric,\n rows: Numeric,\n bgcolor?: Colour,\n frame_color?: Colour,\n frame_width?: Numeric,\n border_color?: Colour,\n border_width?: Numeric,\n force_overlay?: boolean\n ): Table;\n\n /**\n * Writes a cell of a table: its text and look. The properties not given get their default, so calling it again\n * replaces the whole cell; use `table.cell_set_*()` to change one property. A column or row outside the table is an\n * error; on a deleted table it does nothing. The arguments after `row` can also be given by name in an object.\n * @param table_id - The table (from `table.new()`).\n * @param column - Column of the cell, from 0 (left).\n * @param row - Row of the cell, from 0 (top).\n * @param text - Text of the cell; `\\n` starts a new line. Default: \"\".\n * @param width - Width of the cell in percent of the pane's width; 0 fits the text. Default: 0.\n * @param height - Height of the cell in percent of the pane's height; 0 fits the text. Default: 0.\n * @param text_color - Text colour. Default: dark gray (#363A45).\n * @param text_halign - `text.align_left`, `text.align_center` or `text.align_right`. Default: `text.align_center`.\n * @param text_valign - `text.align_top`, `text.align_center` or `text.align_bottom`. Default: `text.align_center`.\n * @param text_size - `size.tiny`, `size.small`, `size.normal`, `size.large`, `size.huge`, `size.auto`, or a size in\n * points. Default: `size.auto`.\n * @param bgcolor - Background colour of the cell. Default: none (the table's background shows).\n * @param tooltip - Text shown when the pointer is over the cell. Default: none.\n * @param text_font_family - `font.family_default` or `font.family_monospace`. Default: `font.family_default`.\n * @param text_formatting - `text.format_bold`, `text.format_italic`, their sum, or `text.format_none`.\n * Default: `text.format_none`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.bottom_right, 2, 1);\n * eachBar((c) => {\n * if (c.i === c.n - 1) table.cell(t, 1, 0, str.tostring(c.close, \"#.##\"), 0, 0, color.white, text.align_right);\n * });\n * ```\n */\n cell(\n table_id: Table,\n column: Numeric,\n row: Numeric,\n text?: string,\n width?: Numeric,\n height?: Numeric,\n text_color?: Colour,\n text_halign?: HAlign,\n text_valign?: VAlign,\n text_size?: string | number,\n bgcolor?: Colour,\n tooltip?: string,\n text_font_family?: FontFamily,\n text_formatting?: number\n ): void;\n /**\n * Writes a cell, with the arguments after `row` given by name (see the first form).\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param args - The other arguments by name: `text`, `width`, `height`, `text_color`, `text_halign`, `text_valign`,\n * `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, { text: \"Trend\", bgcolor: color.teal, text_color: color.white });\n * ```\n */\n cell(table_id: Table, column: Numeric, row: Numeric, args: TableCellArgs): void;\n /**\n * Writes a cell, with its text by position and the arguments after it by name (see the first form).\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param text - Text of the cell; `\\n` starts a new line.\n * @param args - The other arguments by name: `width`, `height`, `text_color`, `text_halign`, `text_valign`,\n * `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"Trend\", { text_size: size.small, tooltip: \"50-bar trend\" });\n * ```\n */\n cell(table_id: Table, column: Numeric, row: Numeric, text: string, args: TableCellArgs): void;\n /**\n * Writes a cell, with every argument given by name (see the first form).\n * @param args - `table_id`, `column`, `row`, and optionally `text`, `width`, `height`, `text_color`,\n * `text_halign`, `text_valign`, `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell({ table_id: t, column: 0, row: 0, text: \"Trend\" });\n * ```\n */\n cell(args: TableCellArgs): void;\n\n /**\n * Changes the text of a cell and keeps its other properties. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - New text; `\\n` starts a new line.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * eachBar((c) => {\n * if (c.i === c.n - 1) table.cell_set_text(t, 0, 0, \"Close \" + str.tostring(c.close, \"#.##\"));\n * });\n * ```\n */\n cell_set_text(table_id: Table, column: Numeric, row: Numeric, value: string): void;\n /**\n * Changes the width of a cell. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - Width in percent of the pane's width; 0 fits the text.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"Trend\");\n * table.cell_set_width(t, 0, 0, 10);\n * ```\n */\n cell_set_width(table_id: Table, column: Numeric, row: Numeric, value: Numeric): void;\n /**\n * Changes the height of a cell. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - Height in percent of the pane's height; 0 fits the text.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"Trend\");\n * table.cell_set_height(t, 0, 0, 5);\n * ```\n */\n cell_set_height(table_id: Table, column: Numeric, row: Numeric, value: Numeric): void;\n /**\n * Changes the text colour of a cell. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - New text colour.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * eachBar((c) => {\n * if (c.i === c.n - 1) table.cell_set_text_color(t, 0, 0, c.close > c.open ? color.green : color.red);\n * });\n * ```\n */\n cell_set_text_color(table_id: Table, column: Numeric, row: Numeric, value: Colour): void;\n /**\n * Changes the horizontal alignment of the text of a cell. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - `text.align_left`, `text.align_center` or `text.align_right`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"Volume\", { width: 15 });\n * table.cell_set_text_halign(t, 0, 0, text.align_left);\n * ```\n */\n cell_set_text_halign(table_id: Table, column: Numeric, row: Numeric, value: HAlign): void;\n /**\n * Changes the vertical alignment of the text of a cell. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - `text.align_top`, `text.align_center` or `text.align_bottom`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"Volume\", { height: 8 });\n * table.cell_set_text_valign(t, 0, 0, text.align_bottom);\n * ```\n */\n cell_set_text_valign(table_id: Table, column: Numeric, row: Numeric, value: VAlign): void;\n /**\n * Changes the text size of a cell. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - `size.tiny`, `size.small`, `size.normal`, `size.large`, `size.huge`, `size.auto`, or a size in\n * points.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"Signal\");\n * table.cell_set_text_size(t, 0, 0, size.large);\n * ```\n */\n cell_set_text_size(table_id: Table, column: Numeric, row: Numeric, value: string | number): void;\n /**\n * Changes the background colour of a cell. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - New background colour.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * eachBar((c) => {\n * if (c.i === c.n - 1) table.cell_set_bgcolor(t, 0, 0, c.close > c.open ? color.teal : color.maroon);\n * });\n * ```\n */\n cell_set_bgcolor(table_id: Table, column: Numeric, row: Numeric, value: Colour): void;\n /**\n * Changes the tooltip of a cell: the text shown when the pointer is over it. A cell that was not written yet is\n * created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - Tooltip text.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"ATR\");\n * table.cell_set_tooltip(t, 0, 0, \"Average true range over 14 bars\");\n * ```\n */\n cell_set_tooltip(table_id: Table, column: Numeric, row: Numeric, value: string): void;\n /**\n * Changes the font of a cell's text. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - `font.family_default` or `font.family_monospace`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"123.45\");\n * table.cell_set_text_font_family(t, 0, 0, font.family_monospace);\n * ```\n */\n cell_set_text_font_family(\n table_id: Table,\n column: Numeric,\n row: Numeric,\n value: FontFamily\n ): void;\n /**\n * Makes a cell's text bold, italic, both or plain. A cell that was not written yet is created.\n * @param table_id - The table.\n * @param column - Column of the cell, from 0.\n * @param row - Row of the cell, from 0.\n * @param value - `text.format_bold`, `text.format_italic`, their sum, or `text.format_none`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.cell(t, 0, 0, \"Summary\");\n * table.cell_set_text_formatting(t, 0, 0, text.format_bold + text.format_italic);\n * ```\n */\n cell_set_text_formatting(table_id: Table, column: Numeric, row: Numeric, value: number): void;\n\n /**\n * Joins a block of cells into one cell, for a title over several columns for example. The merged cell shows the\n * content and look of its start (top-left) cell. Merging the same block again does nothing. A cell outside the\n * table, or an end before the start, is an error.\n * @param table_id - The table.\n * @param start_column - Column of the top-left cell of the block, from 0.\n * @param start_row - Row of the top-left cell of the block, from 0.\n * @param end_column - Column of the bottom-right cell of the block (not before `start_column`).\n * @param end_row - Row of the bottom-right cell of the block (not before `start_row`).\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 2, 2);\n * table.cell(t, 0, 0, \"Daily stats\");\n * table.merge_cells(t, 0, 0, 1, 0); // the title spans both columns\n * ```\n */\n merge_cells(\n table_id: Table,\n start_column: Numeric,\n start_row: Numeric,\n end_column: Numeric,\n end_row: Numeric\n ): void;\n /**\n * Empties a block of cells (text and look), and removes the merges that start inside it. Without an end, only the\n * start cell is cleared. A cell outside the table is an error.\n * @param table_id - The table.\n * @param start_column - Column of the top-left cell of the block, from 0.\n * @param start_row - Row of the top-left cell of the block, from 0.\n * @param end_column - Column of the bottom-right cell of the block. Default: `start_column`.\n * @param end_row - Row of the bottom-right cell of the block. Default: `start_row`.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 3, 3);\n * eachBar((c) => {\n * if (c.i === c.n - 1) table.clear(t, 0, 0, 2, 2); // empty all nine cells\n * });\n * ```\n */\n clear(\n table_id: Table,\n start_column: Numeric,\n start_row: Numeric,\n end_column?: Numeric,\n end_row?: Numeric\n ): void;\n\n /**\n * Moves the table to another place of the pane. A live table already at that position (with the same\n * `force_overlay`) is deleted. Does nothing on a deleted table.\n * @param table_id - The table.\n * @param position - New place: `position.top_left`, `position.top_center`, `position.top_right`,\n * `position.middle_left`, `position.middle_center`, `position.middle_right`, `position.bottom_left`,\n * `position.bottom_center` or `position.bottom_right`.\n * @returns Nothing.\n * @example\n * ```js\n * const where = input.string(\"Top right\", \"Table\", { options: [\"Top right\", \"Bottom left\"] });\n * const t = table.new(position.top_right, 1, 1);\n * if (where === \"Bottom left\") table.set_position(t, position.bottom_left);\n * ```\n */\n set_position(table_id: Table, position: TablePosition): void;\n /**\n * Changes the background colour of the whole table (cells with their own background keep it). Does nothing on a\n * deleted table.\n * @param table_id - The table.\n * @param value - New background colour.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * eachBar((c) => {\n * if (c.i === c.n - 1) table.set_bgcolor(t, c.close > c.open ? color.new(color.green, 80) : color.new(color.red, 80));\n * });\n * ```\n */\n set_bgcolor(table_id: Table, value: Colour): void;\n /**\n * Changes the colour of the outer frame of the table. Does nothing on a deleted table.\n * @param table_id - The table.\n * @param value - New frame colour.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1, { frame_width: 1 });\n * table.set_frame_color(t, color.gray);\n * ```\n */\n set_frame_color(table_id: Table, value: Colour): void;\n /**\n * Changes the width of the outer frame of the table. Does nothing on a deleted table.\n * @param table_id - The table.\n * @param value - New frame width in pixels; 0 hides the frame.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1, { frame_color: color.gray });\n * table.set_frame_width(t, 2);\n * ```\n */\n set_frame_width(table_id: Table, value: Numeric): void;\n /**\n * Changes the colour of the lines between the cells. Does nothing on a deleted table.\n * @param table_id - The table.\n * @param value - New border colour.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 2, 2, { border_width: 1 });\n * table.set_border_color(t, color.silver);\n * ```\n */\n set_border_color(table_id: Table, value: Colour): void;\n /**\n * Changes the width of the lines between the cells. Does nothing on a deleted table.\n * @param table_id - The table.\n * @param value - New border width in pixels; 0 hides the lines.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 2, 2, { border_color: color.silver });\n * table.set_border_width(t, 1);\n * ```\n */\n set_border_width(table_id: Table, value: Numeric): void;\n\n /**\n * Removes the table from the pane and from `table.all`. Afterwards the table functions do nothing on it; deleting\n * it again does nothing.\n * @param table_id - The table to delete.\n * @returns Nothing.\n * @example\n * ```js\n * const show = input.bool(true, \"Show table\");\n * const t = table.new(position.top_right, 1, 1);\n * if (!show) table.delete(t);\n * ```\n */\n delete(table_id: Table): void;\n /**\n * Removes the table from the pane and from `table.all` (the same as `table.delete()`).\n * @param table_id - The table to delete.\n * @returns Nothing.\n * @example\n * ```js\n * const t = table.new(position.top_right, 1, 1);\n * table.delete_table(t);\n * ```\n */\n delete_table(table_id: Table): void;\n\n /** The tables still on the pane, oldest first (a new array on each read). */\n readonly all: Table[];\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,205 +1,350 @@
1
1
  /**
2
- * @fileoverview PineScript constant namespaces of the script API: `shape.*`, `location.*`, `size.*`, `xloc.*`,
3
- * `yloc.*`, `extend.*`, `display.*`, `format.*`, `font.*`, `scale.*`, `order.*`, `currency.*`, `adjustment.*`, and the
4
- * `label.style_*`, `line.style_*`, `dayofweek.*` members. Each constant is the string (or number) the functions take,
5
- * so `plotshape(cond, "Buy", { style: shape.triangleup })` and `{ style: "triangleup" }` are the same.
2
+ * @fileoverview Constant groups of the script API: `shape.*`, `location.*`, `size.*`, `xloc.*`, `yloc.*`, `extend.*`,
3
+ * `display.*`, `format.*`, `font.*`, `scale.*`, `order.*`, `currency.*`, `adjustment.*`, and the `label.style_*`,
4
+ * `line.style_*`, `dayofweek.*` members. Each constant is the string (or number) the functions take, so
5
+ * `plotshape(cond, "Buy", { style: shape.triangleup })` and `{ style: "triangleup" }` are the same.
6
6
  *
7
7
  * @module script/constants
8
8
  */
9
- /** PineScript `shape.*`: the shapes of plotshape(). */
9
+ /** Shapes of `plotshape()` (`style` option): `plotshape(cond, "Buy", { style: shape.triangleup })`. */
10
10
  export declare const shape: {
11
+ /** A diagonal cross (x). */
11
12
  readonly xcross: "xcross";
13
+ /** An upright cross (+). */
12
14
  readonly cross: "cross";
15
+ /** A triangle pointing up. */
13
16
  readonly triangleup: "triangleup";
17
+ /** A triangle pointing down. */
14
18
  readonly triangledown: "triangledown";
19
+ /** A small flag. */
15
20
  readonly flag: "flag";
21
+ /** A filled circle. */
16
22
  readonly circle: "circle";
23
+ /** An arrow pointing up. */
17
24
  readonly arrowup: "arrowup";
25
+ /** An arrow pointing down. */
18
26
  readonly arrowdown: "arrowdown";
27
+ /** A label box pointing up (its tip at the value): put it below the bar. */
19
28
  readonly labelup: "labelup";
29
+ /** A label box pointing down (its tip at the value): put it above the bar. */
20
30
  readonly labeldown: "labeldown";
31
+ /** A filled square. */
21
32
  readonly square: "square";
33
+ /** A filled diamond. */
22
34
  readonly diamond: "diamond";
23
35
  };
24
- /** PineScript `location.*`: where plotshape() / plotchar() draw. */
36
+ /** Where `plotshape()` and `plotchar()` draw their marker (`location` option). */
25
37
  export declare const location: {
38
+ /** Above the high of the bar (the default of `plotshape()` and `plotchar()`). */
26
39
  readonly abovebar: "abovebar";
40
+ /** Below the low of the bar. */
27
41
  readonly belowbar: "belowbar";
42
+ /** At the top edge of the pane. */
28
43
  readonly top: "top";
44
+ /** At the bottom edge of the pane. */
29
45
  readonly bottom: "bottom";
46
+ /** At the value of the series itself, read as a price (bars where it is na or 0 get no marker). */
30
47
  readonly absolute: "absolute";
31
48
  };
32
- /** PineScript `size.*`: sizes of shapes, characters, labels and table texts. */
49
+ /** Sizes of shapes, characters, labels and table texts (`size` / `text_size` options). */
33
50
  export declare const size: {
51
+ /** Size chosen by the chart to fit the space. */
34
52
  readonly auto: "auto";
53
+ /** The smallest size. */
35
54
  readonly tiny: "tiny";
55
+ /** Small size. */
36
56
  readonly small: "small";
57
+ /** Normal size. */
37
58
  readonly normal: "normal";
59
+ /** Large size. */
38
60
  readonly large: "large";
61
+ /** The largest size. */
39
62
  readonly huge: "huge";
40
63
  };
41
- /**
42
- * PineScript `xloc.*`: the x coordinate of drawings (bar index or UNIX time in ms). `xloc.pane` is not a Pine value: the x
43
- * coordinates are percents of the pane's width (0 left edge, 100 right edge), so the drawing stays in place while the
44
- * user scrolls and zooms.
45
- */
64
+ /** What the x coordinates of a drawing (label, line, box, polyline) are (`xloc` option). */
46
65
  export declare const xloc: {
66
+ /** Bar indexes: 0 is the first bar, `bar_index` the current one (the default). */
47
67
  readonly bar_index: "bar_index";
68
+ /** UNIX times in milliseconds, such as `time` or `time_close`. */
48
69
  readonly bar_time: "bar_time";
70
+ /** Percents of the pane's width (0 left edge, 100 right edge): the drawing stays in place while the user scrolls and zooms. */
49
71
  readonly pane: "pane";
50
72
  };
51
- /** PineScript `yloc.*`: the y position of labels. */
73
+ /** Vertical placement of a label (`label.new(..., { yloc })`). */
52
74
  export declare const yloc: {
75
+ /** At the y value given to the label (the default). */
53
76
  readonly price: "price";
77
+ /** Above the high of the bar at the label's x; the y value is not used. */
54
78
  readonly abovebar: "abovebar";
79
+ /** Below the low of the bar at the label's x; the y value is not used. */
55
80
  readonly belowbar: "belowbar";
56
81
  };
57
- /** PineScript `extend.*`: line extension. */
82
+ /** How far a line (or a box's top and bottom) is drawn past its two points (`extend` option). */
58
83
  export declare const extend: {
84
+ /** Not extended: drawn between its two points only (the default). */
59
85
  readonly none: "none";
86
+ /** Extended to the left edge of the chart, past the first point. */
60
87
  readonly left: "left";
88
+ /** Extended to the right edge of the chart, past the second point. */
61
89
  readonly right: "right";
90
+ /** Extended in both directions. */
62
91
  readonly both: "both";
63
92
  };
64
- /** PineScript `display.*`: where a plot or input is shown. */
93
+ /** Where a plot or an input value is shown (`display` option). */
65
94
  export declare const display: {
95
+ /** Not shown anywhere; the values still exist for alerts and other scripts. */
66
96
  readonly none: "none";
97
+ /** Shown everywhere: on the pane, in the status line and in the data window. */
67
98
  readonly all: "all";
99
+ /** Shown only in the data window. */
68
100
  readonly data_window: "data_window";
101
+ /** Shown only in the status line of the script. */
69
102
  readonly status_line: "status_line";
103
+ /** Drawn only on the pane, not in the status line or the data window. */
70
104
  readonly pane: "pane";
71
105
  };
72
- /** PineScript `format.*`: the number format of indicator() and str.tostring(). */
106
+ /** Number formats: the `format` option of `indicator()` and the format of `str.tostring()`. */
73
107
  export declare const format: {
108
+ /** The same format as the chart symbol. */
74
109
  readonly inherit: "inherit";
110
+ /** A price, with the precision of the script or of the symbol. */
75
111
  readonly price: "price";
112
+ /** A volume, shortened with K, M, B, T (12345 shows as "12.345K"). */
76
113
  readonly volume: "volume";
114
+ /** A percentage: two decimals and a "%" sign; the value is not multiplied by 100. */
77
115
  readonly percent: "percent";
116
+ /** Rounded to the tick size of the symbol (`syminfo.mintick`). */
78
117
  readonly mintick: "mintick";
79
118
  };
80
- /** PineScript `font.*`: font families of labels, boxes and table cells. */
119
+ /** Font families of labels, boxes and table cells (`text_font_family` option). */
81
120
  export declare const font: {
121
+ /** The default font of the chart. */
82
122
  readonly family_default: "default";
123
+ /** A monospace font: every character has the same width. */
83
124
  readonly family_monospace: "monospace";
84
125
  };
85
- /** PineScript `scale.*`: the price scale of indicator() (`scale` option). */
126
+ /** Price scale a script is attached to (`indicator(..., { scale })`). */
86
127
  export declare const scale: {
128
+ /** The right price scale. */
87
129
  readonly right: "right";
130
+ /** The left price scale. */
88
131
  readonly left: "left";
132
+ /** No price scale of its own (for overlay scripts). */
89
133
  readonly none: "none";
90
134
  };
91
- /** PineScript `order.*`: sort order of array.sort() / array.sort_indices() / matrix.sort(). */
135
+ /** Sort order of `array.sort()`, `array.sort_indices()` and `matrix.sort()`. */
92
136
  export declare const order: {
137
+ /** Smallest value first (the default). */
93
138
  readonly ascending: "ascending";
139
+ /** Largest value first. */
94
140
  readonly descending: "descending";
95
141
  };
96
- /** PineScript `adjustment.*`: price adjustment of a ticker. */
142
+ /** Price adjustment of a ticker. Kept for compatibility: no function of the library reads it yet. */
97
143
  export declare const adjustment: {
144
+ /** Prices not adjusted. */
98
145
  readonly none: "none";
146
+ /** Prices adjusted for splits. */
99
147
  readonly splits: "splits";
148
+ /** Prices adjusted for dividends. */
100
149
  readonly dividends: "dividends";
101
150
  };
102
- /** PineScript `currency.*`: currency codes (`strategy(..., { currency })`, `syminfo.currency`); `currency.NONE` is na. */
103
- export declare const currency: {
104
- readonly NONE: "NONE";
105
- readonly AED: "AED";
106
- readonly ARS: "ARS";
107
- readonly AUD: "AUD";
108
- readonly BDT: "BDT";
109
- readonly BHD: "BHD";
110
- readonly BRL: "BRL";
111
- readonly BTC: "BTC";
112
- readonly CAD: "CAD";
113
- readonly CHF: "CHF";
114
- readonly CLP: "CLP";
115
- readonly CNY: "CNY";
116
- readonly COP: "COP";
117
- readonly CZK: "CZK";
118
- readonly DKK: "DKK";
119
- readonly EGP: "EGP";
120
- readonly ETH: "ETH";
121
- readonly EUR: "EUR";
122
- readonly GBP: "GBP";
123
- readonly GEL: "GEL";
124
- readonly HKD: "HKD";
125
- readonly HUF: "HUF";
126
- readonly IDR: "IDR";
127
- readonly ILS: "ILS";
128
- readonly INR: "INR";
129
- readonly ISK: "ISK";
130
- readonly JPY: "JPY";
131
- readonly KES: "KES";
132
- readonly KRW: "KRW";
133
- readonly KWD: "KWD";
134
- readonly LKR: "LKR";
135
- readonly MAD: "MAD";
136
- readonly MXN: "MXN";
137
- readonly MYR: "MYR";
138
- readonly NGN: "NGN";
139
- readonly NOK: "NOK";
140
- readonly NZD: "NZD";
141
- readonly PEN: "PEN";
142
- readonly PHP: "PHP";
143
- readonly PKR: "PKR";
144
- readonly PLN: "PLN";
145
- readonly QAR: "QAR";
146
- readonly RON: "RON";
147
- readonly RSD: "RSD";
148
- readonly RUB: "RUB";
149
- readonly SAR: "SAR";
150
- readonly SEK: "SEK";
151
- readonly SGD: "SGD";
152
- readonly THB: "THB";
153
- readonly TND: "TND";
154
- readonly TRY: "TRY";
155
- readonly TWD: "TWD";
156
- readonly USD: "USD";
157
- readonly USDT: "USDT";
158
- readonly VES: "VES";
159
- readonly VND: "VND";
160
- readonly ZAR: "ZAR";
161
- };
162
- /** PineScript `label.style_*`. */
151
+ /** The members of `currency`: one constant per currency code, its value the code itself. */
152
+ export interface CurrencyConstants {
153
+ /** United Arab Emirates dirham. */
154
+ readonly AED: 'AED';
155
+ /** Argentine peso. */
156
+ readonly ARS: 'ARS';
157
+ /** Australian dollar. */
158
+ readonly AUD: 'AUD';
159
+ /** Bangladeshi taka. */
160
+ readonly BDT: 'BDT';
161
+ /** Bahraini dinar. */
162
+ readonly BHD: 'BHD';
163
+ /** Brazilian real. */
164
+ readonly BRL: 'BRL';
165
+ /** Bitcoin. */
166
+ readonly BTC: 'BTC';
167
+ /** Canadian dollar. */
168
+ readonly CAD: 'CAD';
169
+ /** Swiss franc. */
170
+ readonly CHF: 'CHF';
171
+ /** Chilean peso. */
172
+ readonly CLP: 'CLP';
173
+ /** Chinese yuan. */
174
+ readonly CNY: 'CNY';
175
+ /** Colombian peso. */
176
+ readonly COP: 'COP';
177
+ /** Czech koruna. */
178
+ readonly CZK: 'CZK';
179
+ /** Danish krone. */
180
+ readonly DKK: 'DKK';
181
+ /** Egyptian pound. */
182
+ readonly EGP: 'EGP';
183
+ /** Ether. */
184
+ readonly ETH: 'ETH';
185
+ /** Euro. */
186
+ readonly EUR: 'EUR';
187
+ /** Pound sterling. */
188
+ readonly GBP: 'GBP';
189
+ /** Georgian lari. */
190
+ readonly GEL: 'GEL';
191
+ /** Hong Kong dollar. */
192
+ readonly HKD: 'HKD';
193
+ /** Hungarian forint. */
194
+ readonly HUF: 'HUF';
195
+ /** Indonesian rupiah. */
196
+ readonly IDR: 'IDR';
197
+ /** Israeli new shekel. */
198
+ readonly ILS: 'ILS';
199
+ /** Indian rupee. */
200
+ readonly INR: 'INR';
201
+ /** Icelandic krona. */
202
+ readonly ISK: 'ISK';
203
+ /** Japanese yen. */
204
+ readonly JPY: 'JPY';
205
+ /** Kenyan shilling. */
206
+ readonly KES: 'KES';
207
+ /** South Korean won. */
208
+ readonly KRW: 'KRW';
209
+ /** Kuwaiti dinar. */
210
+ readonly KWD: 'KWD';
211
+ /** Sri Lankan rupee. */
212
+ readonly LKR: 'LKR';
213
+ /** Moroccan dirham. */
214
+ readonly MAD: 'MAD';
215
+ /** Mexican peso. */
216
+ readonly MXN: 'MXN';
217
+ /** Malaysian ringgit. */
218
+ readonly MYR: 'MYR';
219
+ /** Nigerian naira. */
220
+ readonly NGN: 'NGN';
221
+ /** Norwegian krone. */
222
+ readonly NOK: 'NOK';
223
+ /** New Zealand dollar. */
224
+ readonly NZD: 'NZD';
225
+ /** Peruvian sol. */
226
+ readonly PEN: 'PEN';
227
+ /** Philippine peso. */
228
+ readonly PHP: 'PHP';
229
+ /** Pakistani rupee. */
230
+ readonly PKR: 'PKR';
231
+ /** Polish zloty. */
232
+ readonly PLN: 'PLN';
233
+ /** Qatari riyal. */
234
+ readonly QAR: 'QAR';
235
+ /** Romanian leu. */
236
+ readonly RON: 'RON';
237
+ /** Serbian dinar. */
238
+ readonly RSD: 'RSD';
239
+ /** Russian ruble. */
240
+ readonly RUB: 'RUB';
241
+ /** Saudi riyal. */
242
+ readonly SAR: 'SAR';
243
+ /** Swedish krona. */
244
+ readonly SEK: 'SEK';
245
+ /** Singapore dollar. */
246
+ readonly SGD: 'SGD';
247
+ /** Thai baht. */
248
+ readonly THB: 'THB';
249
+ /** Tunisian dinar. */
250
+ readonly TND: 'TND';
251
+ /** Turkish lira. */
252
+ readonly TRY: 'TRY';
253
+ /** New Taiwan dollar. */
254
+ readonly TWD: 'TWD';
255
+ /** United States dollar. */
256
+ readonly USD: 'USD';
257
+ /** Tether (USDT). */
258
+ readonly USDT: 'USDT';
259
+ /** Venezuelan bolivar. */
260
+ readonly VES: 'VES';
261
+ /** Vietnamese dong. */
262
+ readonly VND: 'VND';
263
+ /** South African rand. */
264
+ readonly ZAR: 'ZAR';
265
+ /** No currency (na). */
266
+ readonly NONE: 'NONE';
267
+ }
268
+ /**
269
+ * Currency codes, such as the `currency` option of `strategy()` or the value of `syminfo.currency`
270
+ * (`currency.USD` is "USD"). `currency.NONE` means no currency (na).
271
+ */
272
+ export declare const currency: CurrencyConstants;
273
+ /** Label styles, available as `label.style_*` (`label.new(..., { style })`). */
163
274
  export declare const labelStyles: {
275
+ /** No shape: the text only. */
164
276
  readonly style_none: "none";
277
+ /** A diagonal cross (x) on the point. */
165
278
  readonly style_xcross: "xcross";
279
+ /** An upright cross (+) on the point. */
166
280
  readonly style_cross: "cross";
281
+ /** A triangle pointing up. */
167
282
  readonly style_triangleup: "triangleup";
283
+ /** A triangle pointing down. */
168
284
  readonly style_triangledown: "triangledown";
285
+ /** A small flag. */
169
286
  readonly style_flag: "flag";
287
+ /** A filled circle. */
170
288
  readonly style_circle: "circle";
289
+ /** An arrow pointing up. */
171
290
  readonly style_arrowup: "arrowup";
291
+ /** An arrow pointing down. */
172
292
  readonly style_arrowdown: "arrowdown";
293
+ /** A text box pointing up: its tip on the point, the box below it. */
173
294
  readonly style_label_up: "label_up";
295
+ /** A text box pointing down: its tip on the point, the box above it. */
174
296
  readonly style_label_down: "label_down";
297
+ /** A text box pointing left: its tip on the point, the box to the right. */
175
298
  readonly style_label_left: "label_left";
299
+ /** A text box pointing right: its tip on the point, the box to the left. */
176
300
  readonly style_label_right: "label_right";
301
+ /** A text box whose lower-left corner is on the point (the box above and to the right). */
177
302
  readonly style_label_lower_left: "label_lower_left";
303
+ /** A text box whose lower-right corner is on the point (the box above and to the left). */
178
304
  readonly style_label_lower_right: "label_lower_right";
305
+ /** A text box whose upper-left corner is on the point (the box below and to the right). */
179
306
  readonly style_label_upper_left: "label_upper_left";
307
+ /** A text box whose upper-right corner is on the point (the box below and to the left). */
180
308
  readonly style_label_upper_right: "label_upper_right";
309
+ /** A text box centred on the point, without a tip. */
181
310
  readonly style_label_center: "label_center";
311
+ /** A filled square. */
182
312
  readonly style_square: "square";
313
+ /** A filled diamond. */
183
314
  readonly style_diamond: "diamond";
315
+ /** The text only, with an outline in the label colour. */
184
316
  readonly style_text_outline: "text_outline";
185
317
  };
186
- /** PineScript `line.style_*` (lines, boxes, polylines). */
318
+ /** Line styles, available as `line.style_*` (lines, boxes and polylines). */
187
319
  export declare const lineStyles: {
320
+ /** A solid line (the default). */
188
321
  readonly style_solid: "solid";
322
+ /** A dotted line. */
189
323
  readonly style_dotted: "dotted";
324
+ /** A dashed line. */
190
325
  readonly style_dashed: "dashed";
326
+ /** A solid line with an arrowhead at its first point. */
191
327
  readonly style_arrow_left: "arrow_left";
328
+ /** A solid line with an arrowhead at its second point. */
192
329
  readonly style_arrow_right: "arrow_right";
330
+ /** A solid line with an arrowhead at both ends. */
193
331
  readonly style_arrow_both: "arrow_both";
194
332
  };
195
- /** PineScript `dayofweek.*`: the values of `dayofweek` (1 = Sunday ... 7 = Saturday). */
333
+ /** Days of the week as `dayofweek()` gives them, available as `dayofweek.*` (1 = Sunday ... 7 = Saturday). */
196
334
  export declare const daysOfWeek: {
335
+ /** Sunday (1). */
197
336
  readonly sunday: 1;
337
+ /** Monday (2). */
198
338
  readonly monday: 2;
339
+ /** Tuesday (3). */
199
340
  readonly tuesday: 3;
341
+ /** Wednesday (4). */
200
342
  readonly wednesday: 4;
343
+ /** Thursday (5). */
201
344
  readonly thursday: 5;
345
+ /** Friday (6). */
202
346
  readonly friday: 6;
347
+ /** Saturday (7). */
203
348
  readonly saturday: 7;
204
349
  };
205
350
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/script/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,uDAAuD;AACvD,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAaR,CAAC;AAEX,oEAAoE;AACpE,eAAO,MAAM,QAAQ;;;;;;CAMX,CAAC;AAEX,gFAAgF;AAChF,eAAO,MAAM,IAAI;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;CAIP,CAAC;AAEX,qDAAqD;AACrD,eAAO,MAAM,IAAI;;;;CAIP,CAAC;AAEX,6CAA6C;AAC7C,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AAEX,8DAA8D;AAC9D,eAAO,MAAM,OAAO;;;;;;CAMV,CAAC;AAEX,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AAEX,2EAA2E;AAC3E,eAAO,MAAM,IAAI;;;CAGP,CAAC;AAEX,6EAA6E;AAC7E,eAAO,MAAM,KAAK;;;;CAIR,CAAC;AAEX,+FAA+F;AAC/F,eAAO,MAAM,KAAK;;;CAGR,CAAC;AAEX,+DAA+D;AAC/D,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AAWX,0HAA0H;AAC1H,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGX,CAAC;AAEX,kCAAkC;AAClC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;CAsBd,CAAC;AAEX,2DAA2D;AAC3D,eAAO,MAA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