绘图覆盖

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

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

常量

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

  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. };