绘图覆盖

以下是绘图覆盖的全部列表及默认值。 您可以使用Widget构造函数overrides参数来更改默认值。在列表的底部,您可以找到值中使用的常量和缩写的列表。

  1. linetoolicon: {
  2. singleChartOnly: true,
  3. color: 'rgba( 61, 133, 198, 1)',
  4. size: 40,
  5. icon: 0x263A,
  6. angle: Math.PI * 0.5,
  7. scale: 1.0
  8. },
  9. linetoolbezierquadro: {
  10. linecolor: 'rgba( 21, 153, 128, 1)',
  11. linewidth: 1.0,
  12. fillBackground: false,
  13. backgroundColor: 'rgba( 21, 56, 153, 0.5)',
  14. transparency: 50,
  15. linestyle: LINESTYLE_SOLID,
  16. extendLeft: false,
  17. extendRight: false,
  18. leftEnd: LINEEND_NORMAL,
  19. rightEnd: LINEEND_NORMAL
  20. },
  21. linetoolbeziercubic: {
  22. linecolor: 'rgba( 21, 153, 128, 1)',
  23. linewidth: 1.0,
  24. fillBackground: false,
  25. backgroundColor: 'rgba( 21, 56, 153, 0.5)',
  26. transparency: 50,
  27. linestyle: LINESTYLE_SOLID,
  28. extendLeft: false,
  29. extendRight: false,
  30. leftEnd: LINEEND_NORMAL,
  31. rightEnd: LINEEND_NORMAL
  32. },
  33. linetooltrendline: {
  34. linecolor: 'rgba( 21, 153, 128, 1)',
  35. linewidth: 1.0,
  36. linestyle: LINESTYLE_SOLID,
  37. extendLeft: false,
  38. extendRight: false,
  39. leftEnd: LINEEND_NORMAL,
  40. rightEnd: LINEEND_NORMAL,
  41. font: 'Verdana',
  42. textcolor: 'rgba( 21, 119, 96, 1)',
  43. fontsize: 12,
  44. bold:false,
  45. italic:false,
  46. alwaysShowStats: false,
  47. showPriceRange: false,
  48. showBarsRange: false,
  49. showDateTimeRange: false,
  50. showDistance:false,
  51. showAngle: false
  52. },
  53. linetooltimecycles: {
  54. linecolor: 'rgba(21, 153, 128, 1)',
  55. linewidth: 1.0,
  56. fillBackground: true,
  57. backgroundColor: 'rgba(106, 168, 79, 0.5)',
  58. transparency: 50,
  59. linestyle: LINESTYLE_SOLID
  60. },
  61. linetoolsineline: {
  62. linecolor: 'rgba( 21, 153, 128, 1)',
  63. linewidth: 1.0,
  64. linestyle: LINESTYLE_SOLID
  65. },
  66. linetooltrendangle: {
  67. singleChartOnly: true,
  68. linecolor: 'rgba( 21, 153, 128, 1)',
  69. linewidth: 1.0,
  70. linestyle: LINESTYLE_SOLID,
  71. font: 'Verdana',
  72. textcolor: 'rgba( 21, 119, 96, 1)',
  73. fontsize: 12,
  74. bold:true,
  75. italic:false,
  76. alwaysShowStats: false,
  77. showPriceRange: false,
  78. showBarsRange: false,
  79. extendRight: false,
  80. extendLeft: false
  81. },
  82. linetooldisjointangle: {
  83. linecolor: 'rgba( 18, 159, 92, 1)',
  84. linewidth: 2.0,
  85. linestyle: LINESTYLE_SOLID,
  86. fillBackground: true,
  87. backgroundColor: 'rgba( 106, 168, 79, 0.5)',
  88. transparency: 50,
  89. extendLeft: false,
  90. extendRight: false,
  91. leftEnd: LINEEND_NORMAL,
  92. rightEnd: LINEEND_NORMAL,
  93. font: 'Verdana',
  94. textcolor: 'rgba( 18, 159, 92, 1)',
  95. fontsize: 12,
  96. bold:false,
  97. italic:false,
  98. showPrices: false,
  99. showPriceRange: false,
  100. showDateTimeRange: false,
  101. showBarsRange: false
  102. },
  103. linetoolflatbottom: {
  104. linecolor: 'rgba( 73, 133, 231, 1)',
  105. linewidth: 2.0,
  106. linestyle: LINESTYLE_SOLID,
  107. fillBackground: true,
  108. backgroundColor: 'rgba( 21, 56, 153, 0.5)',
  109. transparency: 50,
  110. extendLeft: false,
  111. extendRight: false,
  112. leftEnd: LINEEND_NORMAL,
  113. rightEnd: LINEEND_NORMAL,
  114. font: 'Verdana',
  115. textcolor: 'rgba( 73, 133, 231, 1)',
  116. fontsize: 12,
  117. bold:false,
  118. italic:false,
  119. showPrices: false,
  120. showPriceRange: false,
  121. showDateTimeRange: false,
  122. showBarsRange: false
  123. },
  124. linetoolfibspiral: {
  125. linecolor: 'rgba( 21, 153, 128, 1)',
  126. linewidth: 1.0,
  127. linestyle: LINESTYLE_SOLID
  128. },
  129. linetooldaterange: {
  130. linecolor: 'rgba( 88, 88, 88, 1)',
  131. linewidth: 1.0,
  132. font: 'Verdana',
  133. textcolor: 'rgba( 255, 255, 255, 1)',
  134. fontsize: 12,
  135. fillLabelBackground: true,
  136. labelBackgroundColor: 'rgba( 91, 133, 191, 0.9)',
  137. labelBackgroundTransparency: 30,
  138. fillBackground: true,
  139. backgroundColor: 'rgba( 186, 218, 255, 0.4)',
  140. backgroundTransparency: 60,
  141. drawBorder: false,
  142. borderColor: 'rgba( 102, 123, 139, 1)'
  143. },
  144. linetoolpricerange: {
  145. linecolor: 'rgba( 88, 88, 88, 1)',
  146. linewidth: 1.0,
  147. font: 'Verdana',
  148. textcolor: 'rgba( 255, 255, 255, 1)',
  149. fontsize: 12,
  150. fillLabelBackground: true,
  151. labelBackgroundColor: 'rgba( 91, 133, 191, 0.9)',
  152. labelBackgroundTransparency: 30,
  153. fillBackground: true,
  154. backgroundColor: 'rgba( 186, 218, 255, 0.4)',
  155. backgroundTransparency: 60,
  156. drawBorder: false,
  157. borderColor: 'rgba( 102, 123, 139, 1)'
  158. },
  159. linetooldateandpricerange: {
  160. linecolor: 'rgba( 88, 88, 88, 1)',
  161. linewidth: 1.0,
  162. font: 'Verdana',
  163. textcolor: 'rgba( 255, 255, 255, 1)',
  164. fontsize: 12,
  165. fillLabelBackground: true,
  166. labelBackgroundColor: 'rgba( 91, 133, 191, 0.9)',
  167. labelBackgroundTransparency: 30,
  168. fillBackground: true,
  169. backgroundColor: 'rgba( 186, 218, 255, 0.4)',
  170. backgroundTransparency: 60,
  171. drawBorder: false,
  172. borderColor: 'rgba( 102, 123, 139, 1)'
  173. },
  174. linetoolriskrewardshort: {
  175. linecolor: 'rgba( 88, 88, 88, 1)',
  176. linewidth: 1.0,
  177. font: 'Verdana',
  178. textcolor: 'rgba(255, 255, 255, 1)',
  179. fontsize: 12,
  180. fillLabelBackground: true,
  181. labelBackgroundColor: 'rgba( 88, 88, 88, 1)',
  182. labelBackgroundTransparency: 0,
  183. fillBackground: true,
  184. stopBackground: 'rgba( 255, 0, 0, 0.2)',
  185. profitBackground: 'rgba( 0, 160, 0, 0.2)',
  186. stopBackgroundTransparency: 80,
  187. profitBackgroundTransparency: 80,
  188. drawBorder: false,
  189. borderColor: 'rgba( 102, 123, 139, 1)'
  190. },
  191. linetoolriskrewardlong: {
  192. linecolor: 'rgba( 88, 88, 88, 1)',
  193. linewidth: 1.0,
  194. font: 'Verdana',
  195. textcolor: 'rgba(255, 255, 255, 1)',
  196. fontsize: 12,
  197. fillLabelBackground: true,
  198. labelBackgroundColor: 'rgba( 88, 88, 88, 1)',
  199. labelBackgroundTransparency: 0,
  200. fillBackground: true,
  201. stopBackground: 'rgba( 255, 0, 0, 0.2)',
  202. profitBackground: 'rgba( 0, 160, 0, 0.2)',
  203. stopBackgroundTransparency: 80,
  204. profitBackgroundTransparency: 80,
  205. drawBorder: false,
  206. borderColor: 'rgba( 102, 123, 139, 1)'
  207. },
  208. linetoolarrow: {
  209. linecolor: 'rgba( 111, 136, 198, 1)',
  210. linewidth: 2.0,
  211. linestyle: LINESTYLE_SOLID,
  212. extendLeft: false,
  213. extendRight: false,
  214. leftEnd: LINEEND_NORMAL,
  215. rightEnd: LINEEND_ARROW,
  216. font: 'Verdana',
  217. textcolor: 'rgba( 21, 119, 96, 1)',
  218. fontsize: 12,
  219. bold:false,
  220. italic:false,
  221. alwaysShowStats: false,
  222. showPriceRange: false,
  223. showBarsRange: false,
  224. showDateTimeRange: false,
  225. showDistance:false,
  226. showAngle: false
  227. },
  228. linetoolray: {
  229. linecolor: 'rgba( 21, 153, 128, 1)',
  230. linewidth: 1.0,
  231. linestyle: LINESTYLE_SOLID,
  232. extendLeft: false,
  233. extendRight: true,
  234. leftEnd: LINEEND_NORMAL,
  235. rightEnd: LINEEND_NORMAL,
  236. font: 'Verdana',
  237. textcolor: 'rgba( 21, 119, 96, 1)',
  238. fontsize: 12,
  239. bold:false,
  240. italic:false,
  241. alwaysShowStats: false,
  242. showPriceRange: false,
  243. showBarsRange: false,
  244. showDateTimeRange: false,
  245. showDistance:false,
  246. showAngle: false
  247. },
  248. linetoolextended: {
  249. linecolor: 'rgba( 21, 153, 128, 1)',
  250. linewidth: 1.0,
  251. linestyle: LINESTYLE_SOLID,
  252. extendLeft: true,
  253. extendRight: true,
  254. leftEnd: LINEEND_NORMAL,
  255. rightEnd: LINEEND_NORMAL,
  256. font: 'Verdana',
  257. textcolor: 'rgba( 21, 119, 96, 1)',
  258. fontsize: 12,
  259. bold:false,
  260. italic:false,
  261. alwaysShowStats: false,
  262. showPriceRange: false,
  263. showBarsRange: false,
  264. showDateTimeRange: false,
  265. showDistance:false,
  266. showAngle: false
  267. },
  268. linetoolhorzline: {
  269. linecolor: 'rgba( 128, 204, 219, 1)',
  270. linewidth: 1.0,
  271. linestyle: LINESTYLE_SOLID,
  272. showPrice: true,
  273. showLabel: false,
  274. text: '',
  275. font: 'Verdana',
  276. textcolor: 'rgba( 21, 119, 96, 1)',
  277. fontsize: 12,
  278. bold:false,
  279. italic:false,
  280. horzLabelsAlign: 'center',
  281. vertLabelsAlign: 'top'
  282. },
  283. linetoolhorzray: {
  284. linecolor: 'rgba( 128, 204, 219, 1)',
  285. linewidth: 1.0,
  286. linestyle: LINESTYLE_SOLID,
  287. showPrice: true,
  288. showLabel: false,
  289. text: '',
  290. font: 'Verdana',
  291. textcolor: 'rgba( 21, 119, 96, 1)',
  292. fontsize: 12,
  293. bold:false,
  294. italic:false,
  295. horzLabelsAlign: 'center',
  296. vertLabelsAlign: 'top'
  297. },
  298. linetoolvertline: {
  299. linecolor: 'rgba( 128, 204, 219, 1)',
  300. linewidth: 1.0,
  301. linestyle: LINESTYLE_SOLID,
  302. showTime: true
  303. },
  304. linetoolcirclelines: {
  305. trendline: {
  306. visible: true,
  307. color: 'rgba( 128, 128, 128, 1)',
  308. linewidth: 1.0,
  309. linestyle: LINESTYLE_DASHED
  310. },
  311. linecolor: 'rgba( 128, 204, 219, 1)',
  312. linewidth: 1.0,
  313. linestyle: LINESTYLE_SOLID
  314. },
  315. linetoolfibtimezone: {
  316. horzLabelsAlign: 'right',
  317. vertLabelsAlign: 'bottom',
  318. baselinecolor: 'rgba( 128, 128, 128, 1)',
  319. linecolor: 'rgba( 0, 85, 219, 1)',
  320. linewidth: 1.0,
  321. linestyle: LINESTYLE_SOLID,
  322. showLabels: true,
  323. font: 'Verdana',
  324. fillBackground:false,
  325. transparency:80,
  326. trendline: {
  327. visible: true,
  328. color: 'rgba( 128, 128, 128, 1)',
  329. linewidth: 1.0,
  330. linestyle: LINESTYLE_DASHED
  331. },
  332. level1-11: LEVELS_TYPE_C
  333. },
  334. linetooltext: {
  335. color: 'rgba( 102, 123, 139, 1)',
  336. text: $.t('Text'),
  337. font: 'Verdana',
  338. fontsize: 20,
  339. fillBackground: false,
  340. backgroundColor: 'rgba( 91, 133, 191, 0.9)',
  341. backgroundTransparency: 70,
  342. drawBorder: false,
  343. borderColor: 'rgba( 102, 123, 139, 1)',
  344. bold:false,
  345. italic:false,
  346. locked: false,
  347. fixedSize: true,
  348. wordWrap: false,
  349. wordWrapWidth: 400
  350. },
  351. linetooltextabsolute: {
  352. singleChartOnly: true,
  353. color: 'rgba( 102, 123, 139, 1)',
  354. text: $.t('Text'),
  355. font: 'Verdana',
  356. fontsize: 20,
  357. fillBackground: false,
  358. backgroundColor: 'rgba( 155, 190, 213, 0.3)',
  359. backgroundTransparency: 70,
  360. drawBorder: false,
  361. borderColor: 'rgba( 102, 123, 139, 1)',
  362. bold: false,
  363. italic: false,
  364. locked: true,
  365. wordWrap: false,
  366. wordWrapWidth: 400
  367. },
  368. linetoolballoon: {
  369. color: 'rgba( 102, 123, 139, 1)',
  370. backgroundColor: 'rgba( 255, 254, 206, 0.7)',
  371. borderColor: 'rgba( 140, 140, 140, 1)',
  372. fontWeight: 'bold',
  373. fontsize: 12,
  374. font: 'Arial',
  375. transparency: 30,
  376. text: $.t('Comment')
  377. },
  378. linetoolbrush: {
  379. linecolor: 'rgba( 53, 53, 53, 1)',
  380. linewidth: 2.0,
  381. smooth:5,
  382. fillBackground: false,
  383. backgroundColor: 'rgba( 21, 56, 153, 0.5)',
  384. transparency: 50,
  385. leftEnd: LINEEND_NORMAL,
  386. rightEnd: LINEEND_NORMAL
  387. },
  388. linetoolpolyline: {
  389. linecolor: 'rgba( 53, 53, 53, 1)',
  390. linewidth: 2.0,
  391. linestyle: LINESTYLE_SOLID,
  392. fillBackground: true,
  393. backgroundColor: 'rgba( 21, 56, 153, 0.5)',
  394. transparency: 50,
  395. filled: false
  396. },
  397. linetoolarrowmark: {
  398. color: 'rgba( 120, 120, 120, 1)',
  399. text: '',
  400. fontsize: 20,
  401. font: 'Verdana'
  402. },
  403. linetoolarrowmarkleft: {
  404. color: 'rgba( 120, 120, 120, 1)',
  405. text: '',
  406. fontsize: 20,
  407. font: 'Verdana'
  408. },
  409. linetoolarrowmarkup: {
  410. color: 'rgba( 120, 120, 120, 1)',
  411. text: '',
  412. fontsize: 20,
  413. font: 'Verdana'
  414. },
  415. linetoolarrowmarkright: {
  416. color: 'rgba( 120, 120, 120, 1)',
  417. text: '',
  418. fontsize: 20,
  419. font: 'Verdana'
  420. },
  421. linetoolarrowmarkdown: {
  422. color: 'rgba( 120, 120, 120, 1)',
  423. text: '',
  424. fontsize: 20,
  425. font: 'Verdana'
  426. },
  427. linetoolflagmark: {
  428. color: 'rgba( 255, 0, 0, 1)'
  429. },
  430. linetoolnote: {
  431. markerColor: 'rgba( 46, 102, 255, 1)',
  432. textColor: 'rgba( 0, 0, 0, 1)',
  433. backgroundColor: 'rgba( 255, 255, 255, 1)',
  434. backgroundTransparency: 0,
  435. text: 'Text',
  436. font: 'Arial',
  437. fontSize: 12,
  438. bold: false,
  439. italic: false,
  440. locked: false,
  441. fixedSize: true
  442. },
  443. linetoolnoteabsolute: {
  444. singleChartOnly: true,
  445. markerColor: 'rgba( 46, 102, 255, 1)',
  446. textColor: 'rgba( 0, 0, 0, 1)',
  447. backgroundColor: 'rgba( 255, 255, 255, 1)',
  448. backgroundTransparency: 0,
  449. text: 'Text',
  450. font: 'Arial',
  451. fontSize: 12,
  452. bold: false,
  453. italic: false,
  454. locked: true,
  455. fixedSize: true
  456. },
  457. linetoolthumbup: {
  458. color: 'rgba( 0, 128, 0, 1)'
  459. },
  460. linetoolthumbdown: {
  461. color: 'rgba( 255, 0, 0, 1)'
  462. },
  463. linetoolpricelabel: {
  464. color: 'rgba( 102, 123, 139, 1)',
  465. backgroundColor: 'rgba( 255, 255, 255, 0.7)',
  466. borderColor: 'rgba( 140, 140, 140, 1)',
  467. fontWeight: 'bold',
  468. fontsize: 11,
  469. font: 'Arial',
  470. transparency: 30
  471. },
  472. linetoolrectangle: {
  473. color: 'rgba( 21, 56, 153, 1)',
  474. fillBackground: true,
  475. backgroundColor: 'rgba( 21, 56, 153, 0.5)',
  476. linewidth: 1.0,
  477. transparency: 50
  478. },
  479. linetoolrotatedrectangle: {
  480. color: 'rgba( 152, 0, 255, 1)',
  481. fillBackground: true,
  482. backgroundColor: 'rgba( 142, 124, 195, 0.5)',
  483. transparency: 50,
  484. linewidth: 1.0
  485. },
  486. linetoolellipse: {
  487. color: 'rgba( 153, 153, 21, 1)',
  488. fillBackground: true,
  489. backgroundColor: 'rgba( 153, 153, 21, 0.5)',
  490. transparency: 50,
  491. linewidth: 1.0
  492. },
  493. linetoolarc: {
  494. color: 'rgba( 153, 153, 21, 1)',
  495. fillBackground: true,
  496. backgroundColor: 'rgba( 153, 153, 21, 0.5)',
  497. transparency: 50,
  498. linewidth: 1.0
  499. },
  500. linetoolprediction: {
  501. singleChartOnly: true,
  502. linecolor: 'rgba( 28, 115, 219, 1)',
  503. linewidth: 2.0,
  504. sourceBackColor: 'rgba( 241, 241, 241, 1)',
  505. sourceTextColor: 'rgba( 110, 110, 110, 1)',
  506. sourceStrokeColor: 'rgba( 110, 110, 110, 1)',
  507. targetStrokeColor:'rgba( 47, 168, 255, 1)',
  508. targetBackColor:'rgba( 11, 111, 222, 1)',
  509. targetTextColor: 'rgba( 255, 255, 255, 1)',
  510. successBackground: 'rgba( 54, 160, 42, 0.9)',
  511. successTextColor: 'rgba( 255, 255, 255, 1)',
  512. failureBackground: 'rgba( 231, 69, 69, 0.5)',
  513. failureTextColor: 'rgba( 255, 255, 255, 1)',
  514. intermediateBackColor: 'rgba( 234, 210, 137, 1)',
  515. intermediateTextColor: 'rgba( 109, 77, 34, 1)',
  516. transparency: 10,
  517. centersColor: 'rgba( 32, 32, 32, 1)'
  518. },
  519. linetooltriangle: {
  520. color: 'rgba( 153, 21, 21, 1)',
  521. fillBackground: true,
  522. backgroundColor: 'rgba( 153, 21, 21, 0.5)',
  523. transparency: 50,
  524. linewidth: 1.0
  525. },
  526. linetoolcallout: {
  527. color: 'rgba( 255, 255, 255, 1)',
  528. backgroundColor: 'rgba( 153, 21, 21, 0.5)',
  529. transparency: 50,
  530. linewidth: 2.0,
  531. fontsize: 12,
  532. font:'Verdana',
  533. text: 'Text',
  534. bordercolor: 'rgba( 153, 21, 21, 1)',
  535. bold: false,
  536. italic: false,
  537. wordWrap: false,
  538. wordWrapWidth: 400
  539. },
  540. linetoolparallelchannel: {
  541. linecolor: 'rgba( 119, 52, 153, 1)',
  542. linewidth: 1.0,
  543. linestyle: LINESTYLE_SOLID,
  544. extendLeft: false,
  545. extendRight: false,
  546. fillBackground: true,
  547. backgroundColor: 'rgba( 180, 167, 214, 0.5)',
  548. transparency: 50,
  549. showMidline: false,
  550. midlinecolor: 'rgba( 119, 52, 153, 1)',
  551. midlinewidth: 1.0,
  552. midlinestyle: LINESTYLE_DASHED
  553. },
  554. linetoolelliottimpulse: {
  555. degree: 7,
  556. showWave:true,
  557. color: 'rgba( 61, 133, 198, 1)',
  558. linewidth: 1
  559. },
  560. linetoolelliotttriangle: {
  561. degree: 7,
  562. showWave:true,
  563. color: 'rgba( 255, 152, 0, 1)',
  564. linewidth: 1
  565. },
  566. linetoolelliotttriplecombo: {
  567. degree: 7,
  568. showWave:true,
  569. color: 'rgba( 106, 168, 79, 1)',
  570. linewidth: 1
  571. },
  572. linetoolelliottcorrection: {
  573. degree: 7,
  574. showWave:true,
  575. color: 'rgba( 61, 133, 198, 1)',
  576. linewidth: 1
  577. },
  578. linetoolelliottdoublecombo: {
  579. degree: 7,
  580. showWave:true,
  581. color: 'rgba( 106, 168, 79, 1)',
  582. linewidth: 1
  583. },
  584. linetoolbarspattern: {
  585. singleChartOnly: true,
  586. color:'rgba( 80, 145, 204, 1)',
  587. mode:BARS_MODE,
  588. mirrored:false,
  589. flipped:false
  590. },
  591. linetoolghostfeed: {
  592. singleChartOnly: true,
  593. averageHL: 20,
  594. variance: 50,
  595. candleStyle: {
  596. upColor: '#6ba583',
  597. downColor: '#d75442',
  598. drawWick: true,
  599. drawBorder: true,
  600. borderColor: '#378658',
  601. borderUpColor: '#225437',
  602. borderDownColor: '#5b1a13',
  603. wickColor: '#737375'
  604. },
  605. transparency: 50
  606. },
  607. linetoolpitchfork: {
  608. fillBackground:true,
  609. transparency:80,
  610. style:PITCHFORK_STYLE_ORIGINAL,
  611. median: {
  612. visible: true,
  613. color: 'rgba( 165, 0, 0, 1)',
  614. linewidth: 1.0,
  615. linestyle: LINESTYLE_SOLID
  616. },
  617. level0-8: LEVELS_TYPE_C
  618. },
  619. linetoolpitchfan: {
  620. fillBackground:true,
  621. transparency:80,
  622. median: {
  623. visible: true,
  624. color: 'rgba( 165, 0, 0, 1)',
  625. linewidth: 1.0,
  626. linestyle: LINESTYLE_SOLID
  627. },
  628. level0-8: LEVELS_TYPE_C
  629. },
  630. linetoolgannfan: {
  631. showLabels: true,
  632. font: 'Verdana',
  633. fillBackground:true,
  634. transparency:80,
  635. level1-9: LEVELS_TYPE_F
  636. },
  637. linetoolganncomplex: {
  638. fillBackground:false,
  639. arcsBackground: {
  640. fillBackground: true,
  641. transparency: 80
  642. },
  643. levels: [/* 6 LEVELS_TYPE_D */],
  644. fanlines: [/* 11 LEVELS_TYPE_E */],
  645. arcs: [/* 11 LEVELS_TYPE_E */]
  646. },
  647. linetoolgannsquare: {
  648. color: 'rgba( 21, 56, 153, 0.8)',
  649. linewidth: 1.0,
  650. linestyle: LINESTYLE_SOLID,
  651. font: 'Verdana',
  652. showTopLabels:true,
  653. showBottomLabels:true,
  654. showLeftLabels:true,
  655. showRightLabels:true,
  656. fillHorzBackground:true,
  657. horzTransparency:80,
  658. fillVertBackground:true,
  659. vertTransparency:80,
  660. hlevel1-7: LEVELS_TYPE_B,
  661. vlevel1-7: LEVELS_TYPE_B
  662. },
  663. linetoolfibspeedresistancefan: {
  664. fillBackground:true,
  665. transparency:80,
  666. grid: {
  667. color: 'rgba( 128, 128, 128, 1)',
  668. linewidth: 1.0,
  669. linestyle: LINESTYLE_SOLID,
  670. visible:true
  671. },
  672. linewidth: 1.0,
  673. linestyle: LINESTYLE_SOLID,
  674. font: 'Verdana',
  675. showTopLabels:true,
  676. showBottomLabels:true,
  677. showLeftLabels:true,
  678. showRightLabels:true,
  679. hlevel1-7: LEVELS_TYPE_B,
  680. vlevel1-7: LEVELS_TYPE_B
  681. },
  682. linetoolfibretracement: {
  683. showCoeffs: true,
  684. showPrices: true,
  685. font: 'Verdana',
  686. fillBackground:true,
  687. transparency:80,
  688. extendLines:false,
  689. horzLabelsAlign: 'left',
  690. vertLabelsAlign: 'middle',
  691. reverse:false,
  692. coeffsAsPercents:false,
  693. trendline: {
  694. visible: true,
  695. color: 'rgba( 128, 128, 128, 1)',
  696. linewidth: 1.0,
  697. linestyle: LINESTYLE_DASHED
  698. },
  699. levelsStyle: {
  700. linewidth: 1.0,
  701. linestyle: LINESTYLE_SOLID
  702. },
  703. level1-24: LEVELS_TYPE_B
  704. },
  705. linetoolfibchannel: {
  706. showCoeffs: true,
  707. showPrices: true,
  708. font: 'Verdana',
  709. fillBackground:true,
  710. transparency:80,
  711. extendLeft:false,
  712. extendRight:false,
  713. horzLabelsAlign: 'left',
  714. vertLabelsAlign: 'middle',
  715. coeffsAsPercents:false,
  716. levelsStyle: {
  717. linewidth: 1.0,
  718. linestyle: LINESTYLE_SOLID
  719. },
  720. level1-24: LEVELS_TYPE_B
  721. },
  722. linetoolprojection: {
  723. showCoeffs: true,
  724. font: 'Verdana',
  725. fillBackground:true,
  726. transparency:80,
  727. color1: 'rgba( 0, 128, 0, 0.2)',
  728. color2: 'rgba( 255, 0, 0, 0.2)',
  729. linewidth: 1.0,
  730. trendline: {
  731. visible: true,
  732. color: 'rgba( 128, 128, 128, 1)',
  733. linestyle: LINESTYLE_SOLID
  734. },
  735. level1: LEVELS_TYPE_C
  736. },
  737. linetool5pointspattern: {
  738. color: 'rgba( 204, 40, 149, 1)',
  739. textcolor: 'rgba( 255, 255, 255, 1)',
  740. fillBackground: true,
  741. backgroundColor: 'rgba( 204, 40, 149, 0.5)',
  742. font: 'Verdana',
  743. fontsize:12,
  744. bold:false,
  745. italic:false,
  746. transparency: 50,
  747. linewidth: 1.0
  748. },
  749. linetoolcypherpattern: {
  750. color: '#CC2895',
  751. textcolor: '#FFFFFF',
  752. fillBackground: true,
  753. backgroundColor: '#CC2895',
  754. font: 'Verdana',
  755. fontsize:12,
  756. bold:false,
  757. italic:false,
  758. transparency: 50,
  759. linewidth: 1.0
  760. },
  761. linetooltrianglepattern: {
  762. color: 'rgba( 149, 40, 255, 1)',
  763. textcolor: 'rgba( 255, 255, 255, 1)',
  764. fillBackground: true,
  765. backgroundColor: 'rgba( 149, 40, 204, 0.5)',
  766. font: 'Verdana',
  767. fontsize:12,
  768. bold:false,
  769. italic:false,
  770. transparency: 50,
  771. linewidth: 1.0
  772. },
  773. linetoolabcd: {
  774. color: 'rgba( 0, 155, 0, 1)',
  775. textcolor: 'rgba( 255, 255, 255, 1)',
  776. font: 'Verdana',
  777. fontsize:12,
  778. bold:false,
  779. italic:false,
  780. linewidth: 2.0
  781. },
  782. linetoolthreedrivers: {
  783. color: 'rgba( 149, 40, 255, 1)',
  784. textcolor: 'rgba( 255, 255, 255, 1)',
  785. fillBackground: true,
  786. backgroundColor: 'rgba( 149, 40, 204, 0.5)',
  787. font: 'Verdana',
  788. fontsize:12,
  789. bold:false,
  790. italic:false,
  791. transparency: 50,
  792. linewidth: 2.0
  793. },
  794. linetoolheadandshoulders: {
  795. color: 'rgba( 69, 104, 47, 1)',
  796. textcolor: 'rgba( 255, 255, 255, 1)',
  797. fillBackground: true,
  798. backgroundColor: 'rgba( 69, 168, 47, 0.5)',
  799. font: 'Verdana',
  800. fontsize:12,
  801. bold:false,
  802. italic:false,
  803. transparency: 50,
  804. linewidth: 2.0
  805. },
  806. linetoolfibwedge: {
  807. singleChartOnly: true,
  808. showCoeffs: true,
  809. font: 'Verdana',
  810. fillBackground:true,
  811. transparency:80,
  812. trendline: {
  813. visible: true,
  814. color: 'rgba( 128, 128, 128, 1)',
  815. linewidth: 1.0,
  816. linestyle: LINESTYLE_SOLID
  817. },
  818. level1-11: LEVELS_TYPE_C
  819. },
  820. linetoolfibcircles: {
  821. showCoeffs: true,
  822. font: 'Verdana',
  823. fillBackground:true,
  824. transparency:80,
  825. coeffsAsPercents:false,
  826. trendline: {
  827. visible: true,
  828. color: 'rgba( 128, 128, 128, 1)',
  829. linewidth: 1.0,
  830. linestyle: LINESTYLE_DASHED
  831. },
  832. level1-11: LEVELS_TYPE_C
  833. },
  834. linetoolfibspeedresistancearcs: {
  835. showCoeffs: true,
  836. font: 'Verdana',
  837. fillBackground:true,
  838. transparency:80,
  839. fullCircles: false,
  840. trendline: {
  841. visible: true,
  842. color: 'rgba( 128, 128, 128, 1)',
  843. linewidth: 1.0,
  844. linestyle: LINESTYLE_DASHED
  845. },
  846. level1-11: LEVELS_TYPE_C
  847. },
  848. linetooltrendbasedfibextension: {
  849. showCoeffs: true,
  850. showPrices: true,
  851. font: 'Verdana',
  852. fillBackground:true,
  853. transparency:80,
  854. extendLines:false,
  855. horzLabelsAlign: 'left',
  856. vertLabelsAlign: 'middle',
  857. reverse:false,
  858. coeffsAsPercents:false,
  859. trendline: {
  860. visible: true,
  861. color: 'rgba( 128, 128, 128, 1)',
  862. linewidth: 1.0,
  863. linestyle: LINESTYLE_DASHED
  864. },
  865. levelsStyle: {
  866. linewidth: 1.0,
  867. linestyle: LINESTYLE_SOLID
  868. },
  869. level1-24: LEVELS_TYPE_B
  870. },
  871. linetooltrendbasedfibtime: {
  872. showCoeffs: true,
  873. font: 'Verdana',
  874. fillBackground:true,
  875. transparency:80,
  876. horzLabelsAlign: 'right',
  877. vertLabelsAlign: 'bottom',
  878. trendline: {
  879. visible: true,
  880. color: 'rgba( 128, 128, 128, 1)',
  881. linewidth: 1.0,
  882. linestyle: LINESTYLE_DASHED
  883. },
  884. level1-11: LEVELS_TYPE_C
  885. },
  886. linetoolschiffpitchfork: {
  887. fillBackground:true,
  888. transparency:80,
  889. style:PITCHFORK_STYLE_SCHIFF,
  890. median: {
  891. visible: true,
  892. color: 'rgba( 165, 0, 0, 1)',
  893. linewidth: 1.0,
  894. linestyle: LINESTYLE_SOLID
  895. },
  896. level0-8: LEVELS_TYPE_C
  897. },
  898. linetoolschiffpitchfork2: {
  899. fillBackground:true,
  900. transparency:80,
  901. style:PITCHFORK_STYLE_SCHIFF2,
  902. median: {
  903. visible: true,
  904. color: 'rgba( 165, 0, 0, 1)',
  905. linewidth: 1.0,
  906. linestyle: LINESTYLE_SOLID
  907. },
  908. level0-8: LEVELS_TYPE_C
  909. },
  910. linetoolinsidepitchfork: {
  911. fillBackground:true,
  912. transparency:80,
  913. style:PITCHFORK_STYLE_INSIDE,
  914. median: {
  915. visible: true,
  916. color: 'rgba( 165, 0, 0, 1)',
  917. linewidth: 1.0,
  918. linestyle: LINESTYLE_SOLID
  919. },
  920. level0-8: LEVELS_TYPE_C
  921. },
  922. linetoolvisibilities: {
  923. intervalsVisibilities: {
  924. seconds:true,
  925. secondsFrom:1,
  926. secondsTo:59,
  927. minutes:true,
  928. minutesFrom:1,
  929. minutesTo:59,
  930. hours:true,
  931. hoursFrom:1,
  932. hoursTo:24,
  933. days:true,
  934. daysFrom:1,
  935. daysTo:366,
  936. weeks:true,
  937. months:true
  938. }
  939. }

常量

这些常量用于绘图的默认值。 你不能直接使用他们的名字,而是使用这些值。

  1. LINESTYLE_SOLID = 0;
  2. LINESTYLE_DOTTED = 1;
  3. LINESTYLE_DASHED = 2;
  4. LINESTYLE_LARGE_DASHED = 3;
  5. LINEEND_NORMAL = 0;
  6. LINEEND_ARROW = 1;
  7. LINEEND_CIRCLE = 2;
  8. BARS_MODE = 0;
  9. LINE_MODE = 1;
  10. OPENCLOSE_MODE = 2;
  11. LINEOPEN_MODE = 3;
  12. LINEHIGH_MODE = 4;
  13. LINELOW_MODE = 5;
  14. LINEHL2_MODE = 6;
  15. PITCHFORK_STYLE_ORIGINAL = 0;
  16. PITCHFORK_STYLE_SCHIFF = 1;
  17. PITCHFORK_STYLE_SCHIFF2 = 2;
  18. PITCHFORK_STYLE_INSIDE = 3;
  19. LEVELS_TYPE_A = {
  20. color: color,
  21. visible: visible
  22. };
  23. LEVELS_TYPE_B = {
  24. coeff: coeff,
  25. color: color,
  26. visible: visible
  27. };
  28. LEVELS_TYPE_C = {
  29. coeff: coeff,
  30. color: color,
  31. visible: visible,
  32. linestyle: linestyle,
  33. linewidth: linewidth
  34. };
  35. LEVELS_TYPE_D = {
  36. color: color,
  37. width: width,
  38. visible: visible
  39. };
  40. LEVELS_TYPE_E = {
  41. color: color,
  42. visible: visible,
  43. width: width,
  44. x: x,
  45. y: y
  46. };
  47. LEVELS_TYPE_F = {
  48. coeff1: coeff1,
  49. coeff2: coeff2,
  50. color: color,
  51. visible: visible,
  52. linestyle: linestyle,
  53. linewidth: linewidth
  54. };