• 绘图覆盖
    • 常量

    绘图覆盖

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

    常量

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

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