• 覆盖
    • LineStyles
  • 自定义覆盖商品

    覆盖

    本主题包含图表属性说明。 这些属性被处理作为可定制的。 其他属性自定义则不被支持。

    文件的格式:

    1. <property_path>: <default Charting Library value>
    1. // 支持的值: large, medium, small, tiny
    2. volumePaneSize: "large"
    3. // 在文本编辑器中可用的字体(即,在"文本"绘图工具属性对话框中)
    4. editorFontsList: ['Verdana', 'Courier New', 'Times New Roman', 'Arial']
    5. paneProperties.background: "#ffffff"
    6. paneProperties.vertGridProperties.color: "#E6E6E6"
    7. paneProperties.vertGridProperties.style: LINESTYLE_SOLID
    8. paneProperties.horzGridProperties.color: "#E6E6E6"
    9. paneProperties.horzGridProperties.style: LINESTYLE_SOLID
    10. paneProperties.crossHairProperties.color: "#989898"
    11. // 边际(百分比)。 用于自动缩放。
    12. paneProperties.topMargin: 5
    13. paneProperties.bottomMargin: 5
    14. // leftAxisProperties & rightAxisProperties
    15. paneProperties.leftAxisProperties.autoScale:true (see #749)
    16. paneProperties.leftAxisProperties.autoScaleDisabled:false (see #749)
    17. paneProperties.leftAxisProperties.percentage:false
    18. paneProperties.leftAxisProperties.percentageDisabled:false
    19. paneProperties.leftAxisProperties.log:false
    20. paneProperties.leftAxisProperties.logDisabled:false
    21. paneProperties.leftAxisProperties.alignLabels:true
    22. paneProperties.legendProperties.showStudyArguments: true
    23. paneProperties.legendProperties.showStudyTitles: true
    24. paneProperties.legendProperties.showStudyValues: true
    25. paneProperties.legendProperties.showSeriesTitle: true
    26. paneProperties.legendProperties.showSeriesOHLC: true
    27. scalesProperties.showLeftScale : false
    28. scalesProperties.showRightScale : true
    29. scalesProperties.backgroundColor : "#ffffff"
    30. scalesProperties.lineColor : "#555"
    31. scalesProperties.textColor : "#555"
    32. scalesProperties.scaleSeriesOnly : false
    33. timeScale.rightOffset: 5
    34. timezone: "Etc/UTC" # 查看支持的时区列表(在Symbology#时区页面)查看可用值
    35. // 系列风格。 请参阅下面的支持的值
    36. // Bars = 0
    37. // Candles = 1
    38. // Line = 2
    39. // Area = 3
    40. // Heiken Ashi = 8
    41. // Hollow Candles = 9
    42. // Renko = 4
    43. // Kagi = 5
    44. // Point&Figure = 6
    45. // Line Break = 7
    46. mainSeriesProperties.style: 1
    47. mainSeriesProperties.showCountdown: true
    48. mainSeriesProperties.showLastValue:true
    49. mainSeriesProperties.visible:true
    50. mainSeriesProperties.showPriceLine: true
    51. mainSeriesProperties.priceLineWidth: 1
    52. mainSeriesProperties.lockScale: false
    53. mainSeriesProperties.minTick: "default"
    54. mainSeriesProperties.extendedHours: false
    55. mainSeriesProperties.priceAxisProperties.autoScale:true (see #749)
    56. mainSeriesProperties.priceAxisProperties.autoScaleDisabled:false (see #749)
    57. mainSeriesProperties.priceAxisProperties.percentage:false
    58. mainSeriesProperties.priceAxisProperties.percentageDisabled:false
    59. mainSeriesProperties.priceAxisProperties.log:false
    60. mainSeriesProperties.priceAxisProperties.logDisabled:false
    61. symbolWatermarkProperties.color : "rgba(0, 0, 0, 0.00)"
    62. // 不同的图表类型默认
    63. // 蜡烛样式
    64. mainSeriesProperties.candleStyle.upColor: "#6ba583"
    65. mainSeriesProperties.candleStyle.downColor: "#d75442"
    66. mainSeriesProperties.candleStyle.drawWick: true
    67. mainSeriesProperties.candleStyle.drawBorder: true
    68. mainSeriesProperties.candleStyle.borderColor: "#378658"
    69. mainSeriesProperties.candleStyle.borderUpColor: "#225437"
    70. mainSeriesProperties.candleStyle.borderDownColor: "#5b1a13"
    71. mainSeriesProperties.candleStyle.wickUpColor: 'rgba( 115, 115, 117, 1)'
    72. mainSeriesProperties.candleStyle.wickDownColor: 'rgba( 115, 115, 117, 1)'
    73. mainSeriesProperties.candleStyle.barColorsOnPrevClose: false
    74. // Hollow Candles styles
    75. mainSeriesProperties.hollowCandleStyle.upColor: "#6ba583"
    76. mainSeriesProperties.hollowCandleStyle.downColor: "#d75442"
    77. mainSeriesProperties.hollowCandleStyle.drawWick: true
    78. mainSeriesProperties.hollowCandleStyle.drawBorder: true
    79. mainSeriesProperties.hollowCandleStyle.borderColor: "#378658"
    80. mainSeriesProperties.hollowCandleStyle.borderUpColor: "#225437"
    81. mainSeriesProperties.hollowCandleStyle.borderDownColor: "#5b1a13"
    82. mainSeriesProperties.hollowCandleStyle.wickColor: "#737375"
    83. // Heiken Ashi styles
    84. mainSeriesProperties.haStyle.upColor: "#6ba583"
    85. mainSeriesProperties.haStyle.downColor: "#d75442"
    86. mainSeriesProperties.haStyle.drawWick: true
    87. mainSeriesProperties.haStyle.drawBorder: true
    88. mainSeriesProperties.haStyle.borderColor: "#378658"
    89. mainSeriesProperties.haStyle.borderUpColor: "#225437"
    90. mainSeriesProperties.haStyle.borderDownColor: "#5b1a13"
    91. mainSeriesProperties.haStyle.wickColor: "#737375"
    92. mainSeriesProperties.haStyle.barColorsOnPrevClose: false
    93. // Bars styles
    94. mainSeriesProperties.barStyle.upColor: "#6ba583"
    95. mainSeriesProperties.barStyle.downColor: "#d75442"
    96. mainSeriesProperties.barStyle.barColorsOnPrevClose: false
    97. mainSeriesProperties.barStyle.dontDrawOpen: false
    98. // Line styles
    99. mainSeriesProperties.lineStyle.color: "#0303F7"
    100. mainSeriesProperties.lineStyle.linestyle: LINESTYLE_SOLID
    101. mainSeriesProperties.lineStyle.linewidth: 1
    102. mainSeriesProperties.lineStyle.priceSource: "close"
    103. // Area styles
    104. mainSeriesProperties.areaStyle.color1: "#606090"
    105. mainSeriesProperties.areaStyle.color2: "#01F6F5"
    106. mainSeriesProperties.areaStyle.linecolor: "#0094FF"
    107. mainSeriesProperties.areaStyle.linestyle: LINESTYLE_SOLID
    108. mainSeriesProperties.areaStyle.linewidth: 1
    109. mainSeriesProperties.areaStyle.priceSource: "close"
    LineStyles

    LINESTYLE_SOLID = 0

    LINESTYLE_DOTTED = 1

    LINESTYLE_DASHED = 2

    LINESTYLE_LARGE_DASHED = 3

    自定义覆盖商品

    1. study_Overlay@tv-basicstudies.style: (bars = 0, candles = 1, line = 2, area = 3, heiken ashi = 8, hollow candles = 9)
    2. study_Overlay@tv-basicstudies.showPriceLine: boolean
    3. study_Overlay@tv-basicstudies.candleStyle.upColor: color
    4. study_Overlay@tv-basicstudies.candleStyle.downColor: color
    5. study_Overlay@tv-basicstudies.candleStyle.drawWick: boolean
    6. study_Overlay@tv-basicstudies.candleStyle.drawBorder: boolean
    7. study_Overlay@tv-basicstudies.candleStyle.borderColor: color
    8. study_Overlay@tv-basicstudies.candleStyle.borderUpColor: color
    9. study_Overlay@tv-basicstudies.candleStyle.borderDownColor: color
    10. study_Overlay@tv-basicstudies.candleStyle.wickColor: color
    11. study_Overlay@tv-basicstudies.candleStyle.barColorsOnPrevClose: boolean
    12. study_Overlay@tv-basicstudies.hollowCandleStyle.upColor: color
    13. study_Overlay@tv-basicstudies.hollowCandleStyle.downColor: color
    14. study_Overlay@tv-basicstudies.hollowCandleStyle.drawWick: boolean
    15. study_Overlay@tv-basicstudies.hollowCandleStyle.drawBorder: boolean
    16. study_Overlay@tv-basicstudies.hollowCandleStyle.borderColor: color
    17. study_Overlay@tv-basicstudies.hollowCandleStyle.borderUpColor: color
    18. study_Overlay@tv-basicstudies.hollowCandleStyle.borderDownColor: color
    19. study_Overlay@tv-basicstudies.hollowCandleStyle.wickColor: color
    20. study_Overlay@tv-basicstudies.hollowCandleStyle.barColorsOnPrevClose: boolean
    21. study_Overlay@tv-basicstudies.barStyle.upColor: color
    22. study_Overlay@tv-basicstudies.barStyle.downColor: color
    23. study_Overlay@tv-basicstudies.barStyle.barColorsOnPrevClose: boolean
    24. study_Overlay@tv-basicstudies.barStyle.dontDrawOpen: boolean
    25. study_Overlay@tv-basicstudies.lineStyle.color: color
    26. study_Overlay@tv-basicstudies.lineStyle.linestyle: (solid = 0; dotted = 1; dashed = 2; large dashed = 3)
    27. study_Overlay@tv-basicstudies.lineStyle.linewidth: integer
    28. study_Overlay@tv-basicstudies.lineStyle.priceSource: open/high/low/close
    29. study_Overlay@tv-basicstudies.lineStyle.styleType: (bars = 0, candles = 1, line = 2, area = 3, heiken ashi = 8, hollow candles = 9)
    30. study_Overlay@tv-basicstudies.areaStyle.color1: color
    31. study_Overlay@tv-basicstudies.areaStyle.color2: color
    32. study_Overlay@tv-basicstudies.areaStyle.linecolor: color
    33. study_Overlay@tv-basicstudies.areaStyle.linestyle: (solid = 0; dotted = 1; dashed = 2; large dashed = 3)
    34. study_Overlay@tv-basicstudies.areaStyle.linewidth: integer
    35. study_Overlay@tv-basicstudies.areaStyle.priceSource: open/high/low/close