# 覆蓋
# 覆蓋
本主題包含圖表屬性說明。 這些屬性被處理作為可定制的。 其他屬性的自定義則不被支持。
文件的格式:
```
<property_path>: <default Charting Library value>
```
```
// 支持的值: large, medium, small, tiny
volumePaneSize: "large"
// 在文本編輯器中可用的字體(即,在`文本`繪圖工具屬性對話框中)
editorFontsList: ['Verdana', 'Courier New', 'Times New Roman', 'Arial']
paneProperties.background: "#ffffff"
paneProperties.vertGridProperties.color: "#E6E6E6"
paneProperties.vertGridProperties.style: LINESTYLE_SOLID
paneProperties.horzGridProperties.color: "#E6E6E6"
paneProperties.horzGridProperties.style: LINESTYLE_SOLID
paneProperties.crossHairProperties.color: "#989898"
paneProperties.crossHairProperties.width: 1
paneProperties.crossHairProperties.style: LINESTYLE_DASHED
// 邊際(百分比)。 用于自動縮放。
paneProperties.topMargin: 5
paneProperties.bottomMargin: 5
// leftAxisProperties & rightAxisProperties
paneProperties.leftAxisProperties.autoScale:true (see #749)
paneProperties.leftAxisProperties.autoScaleDisabled:false (see #749)
paneProperties.leftAxisProperties.percentage:false
paneProperties.leftAxisProperties.percentageDisabled:false
paneProperties.leftAxisProperties.log:false
paneProperties.leftAxisProperties.logDisabled:false
paneProperties.leftAxisProperties.alignLabels:true
paneProperties.legendProperties.showStudyArguments: true
paneProperties.legendProperties.showStudyTitles: true
paneProperties.legendProperties.showStudyValues: true
paneProperties.legendProperties.showSeriesTitle: true
paneProperties.legendProperties.showSeriesOHLC: true
paneProperties.legendProperties.showLegend: true
scalesProperties.showLeftScale : false
scalesProperties.showRightScale : true
scalesProperties.backgroundColor : "#ffffff"
scalesProperties.fontSize: 11
scalesProperties.lineColor : "#555"
scalesProperties.textColor : "#555"
scalesProperties.scaleSeriesOnly : false
scalesProperties.showSeriesLastValue: true
scalesProperties.showSeriesPrevCloseValue: false
scalesProperties.showStudyLastValue: false
scalesProperties.showStudyPlotLabels: false
scalesProperties.showSymbolLabels: false
timeScale.rightOffset: 5
timezone: "Etc/UTC" #查看支持的時區列表(在Symbology#時區頁面)的可用值
// 數據列風格。 請參閱下面的支持的值
// Bars = 0 #美國線
// Candles = 1 #K線圖
// Line = 2 #線形圖
// Area = 3 #面積圖
// Heiken Ashi = 8 #平均K線圖
// Hollow Candles = 9 #空心K線圖
// Renko = 4 #轉形圖
// Kagi = 5 #卡吉圖
// Point&Figure = 6 #點數圖
// Line Break = 7 #新價圖
mainSeriesProperties.style: 1
mainSeriesProperties.showCountdown: true
mainSeriesProperties.visible:true
mainSeriesProperties.showPriceLine: true
mainSeriesProperties.priceLineWidth: 1
mainSeriesProperties.priceLineColor: ''
mainSeriesProperties.showPrevClosePriceLine: false
mainSeriesProperties.prevClosePriceLineWidth: 1
mainSeriesProperties.prevClosePriceLineColor: 'rgba( 85, 85, 85, 1)'
mainSeriesProperties.lockScale: false
mainSeriesProperties.minTick: "default"
mainSeriesProperties.priceAxisProperties.autoScale:true (see #749)
mainSeriesProperties.priceAxisProperties.autoScaleDisabled:false (see #749)
mainSeriesProperties.priceAxisProperties.percentage:false
mainSeriesProperties.priceAxisProperties.percentageDisabled:false
mainSeriesProperties.priceAxisProperties.log:false
mainSeriesProperties.priceAxisProperties.logDisabled:false
symbolWatermarkProperties.color : "rgba(0, 0, 0, 0.00)"
// 不同的圖表類型默認值
// K線圖樣式
mainSeriesProperties.candleStyle.upColor: "#6ba583"
mainSeriesProperties.candleStyle.downColor: "#d75442"
mainSeriesProperties.candleStyle.drawWick: true
mainSeriesProperties.candleStyle.drawBorder: true
mainSeriesProperties.candleStyle.borderColor: "#378658"
mainSeriesProperties.candleStyle.borderUpColor: "#225437"
mainSeriesProperties.candleStyle.borderDownColor: "#5b1a13"
mainSeriesProperties.candleStyle.wickUpColor: 'rgba( 115, 115, 117, 1)'
mainSeriesProperties.candleStyle.wickDownColor: 'rgba( 115, 115, 117, 1)'
mainSeriesProperties.candleStyle.barColorsOnPrevClose: false
// 空心K線圖樣式
mainSeriesProperties.hollowCandleStyle.upColor: "#6ba583"
mainSeriesProperties.hollowCandleStyle.downColor: "#d75442"
mainSeriesProperties.hollowCandleStyle.drawWick: true
mainSeriesProperties.hollowCandleStyle.drawBorder: true
mainSeriesProperties.hollowCandleStyle.borderColor: "#378658"
mainSeriesProperties.hollowCandleStyle.borderUpColor: "#225437"
mainSeriesProperties.hollowCandleStyle.borderDownColor: "#5b1a13"
mainSeriesProperties.hollowCandleStyle.wickColor: "#737375"
// 平均K線圖樣式
mainSeriesProperties.haStyle.upColor: "#6ba583"
mainSeriesProperties.haStyle.downColor: "#d75442"
mainSeriesProperties.haStyle.drawWick: true
mainSeriesProperties.haStyle.drawBorder: true
mainSeriesProperties.haStyle.borderColor: "#378658"
mainSeriesProperties.haStyle.borderUpColor: "#225437"
mainSeriesProperties.haStyle.borderDownColor: "#5b1a13"
mainSeriesProperties.haStyle.wickColor: "#737375"
mainSeriesProperties.haStyle.barColorsOnPrevClose: false
// 美國線樣式
mainSeriesProperties.barStyle.upColor: "#6ba583"
mainSeriesProperties.barStyle.downColor: "#d75442"
mainSeriesProperties.barStyle.barColorsOnPrevClose: false
mainSeriesProperties.barStyle.dontDrawOpen: false
// 線形圖樣式
mainSeriesProperties.lineStyle.color: "#0303F7"
mainSeriesProperties.lineStyle.linestyle: LINESTYLE_SOLID
mainSeriesProperties.lineStyle.linewidth: 1
mainSeriesProperties.lineStyle.priceSource: "close"
// 面積圖樣式
mainSeriesProperties.areaStyle.color1: "#606090"
mainSeriesProperties.areaStyle.color2: "#01F6F5"
mainSeriesProperties.areaStyle.linecolor: "#0094FF"
mainSeriesProperties.areaStyle.linestyle: LINESTYLE_SOLID
mainSeriesProperties.areaStyle.linewidth: 1
mainSeriesProperties.areaStyle.priceSource: "close"
// 基準線樣式
mainSeriesProperties.baselineStyle.baselineColor: "rgba( 117, 134, 150, 1)"
mainSeriesProperties.baselineStyle.topFillColor1: "rgba( 83, 185, 135, 0.1)"
mainSeriesProperties.baselineStyle.topFillColor2: "rgba( 83, 185, 135, 0.1)"
mainSeriesProperties.baselineStyle.bottomFillColor1: "rgba( 235, 77, 92, 0.1)"
mainSeriesProperties.baselineStyle.bottomFillColor2: "rgba( 235, 77, 92, 0.1)"
mainSeriesProperties.baselineStyle.topLineColor: "rgba( 83, 185, 135, 1)"
mainSeriesProperties.baselineStyle.bottomLineColor: "rgba( 235, 77, 92, 1)"
mainSeriesProperties.baselineStyle.topLineWidth: 1
mainSeriesProperties.baselineStyle.bottomLineWidth: 1
mainSeriesProperties.baselineStyle.priceSource: "close"
mainSeriesProperties.baselineStyle.transparency: 50
mainSeriesProperties.baselineStyle.baseLevelPercentage: 50
```
##### LineStyles
```
LINESTYLE_SOLID = 0
LINESTYLE_DOTTED = 1
LINESTYLE_DASHED = 2
LINESTYLE_LARGE_DASHED = 3
```
#### 自定義覆蓋商品
```
study_Overlay@tv-basicstudies.style: (bars = 0, candles = 1, line = 2, area = 3, heiken ashi = 8, hollow candles = 9)
study_Overlay@tv-basicstudies.showPriceLine: boolean
study_Overlay@tv-basicstudies.candleStyle.upColor: color
study_Overlay@tv-basicstudies.candleStyle.downColor: color
study_Overlay@tv-basicstudies.candleStyle.drawWick: boolean
study_Overlay@tv-basicstudies.candleStyle.drawBorder: boolean
study_Overlay@tv-basicstudies.candleStyle.borderColor: color
study_Overlay@tv-basicstudies.candleStyle.borderUpColor: color
study_Overlay@tv-basicstudies.candleStyle.borderDownColor: color
study_Overlay@tv-basicstudies.candleStyle.wickColor: color
study_Overlay@tv-basicstudies.candleStyle.barColorsOnPrevClose: boolean
study_Overlay@tv-basicstudies.hollowCandleStyle.upColor: color
study_Overlay@tv-basicstudies.hollowCandleStyle.downColor: color
study_Overlay@tv-basicstudies.hollowCandleStyle.drawWick: boolean
study_Overlay@tv-basicstudies.hollowCandleStyle.drawBorder: boolean
study_Overlay@tv-basicstudies.hollowCandleStyle.borderColor: color
study_Overlay@tv-basicstudies.hollowCandleStyle.borderUpColor: color
study_Overlay@tv-basicstudies.hollowCandleStyle.borderDownColor: color
study_Overlay@tv-basicstudies.hollowCandleStyle.wickColor: color
study_Overlay@tv-basicstudies.hollowCandleStyle.barColorsOnPrevClose: boolean
study_Overlay@tv-basicstudies.barStyle.upColor: color
study_Overlay@tv-basicstudies.barStyle.downColor: color
study_Overlay@tv-basicstudies.barStyle.barColorsOnPrevClose: boolean
study_Overlay@tv-basicstudies.barStyle.dontDrawOpen: boolean
study_Overlay@tv-basicstudies.lineStyle.color: color
study_Overlay@tv-basicstudies.lineStyle.linestyle: (solid = 0; dotted = 1; dashed = 2; large dashed = 3)
study_Overlay@tv-basicstudies.lineStyle.linewidth: integer
study_Overlay@tv-basicstudies.lineStyle.priceSource: open/high/low/close
study_Overlay@tv-basicstudies.lineStyle.styleType: (bars = 0, candles = 1, line = 2, area = 3, heiken ashi = 8, hollow candles = 9)
study_Overlay@tv-basicstudies.areaStyle.color1: color
study_Overlay@tv-basicstudies.areaStyle.color2: color
study_Overlay@tv-basicstudies.areaStyle.linecolor: color
study_Overlay@tv-basicstudies.areaStyle.linestyle: (solid = 0; dotted = 1; dashed = 2; large dashed = 3)
study_Overlay@tv-basicstudies.areaStyle.linewidth: integer
study_Overlay@tv-basicstudies.areaStyle.priceSource: open/high/low/close
```
- 序言
- 更新日志
- 1、Charting Library是什么
- 2-1、圖表庫內容
- 2-2、運行圖表庫
- 3-1、如何連接我的數據
- 3-2、JS Api
- 3-3、UDF
- 3-4、Symbology
- 3-5、交易時段
- 3-6、報價
- 4-1、定制概述
- 4-2、Widget構造器
- 4-3、Widget方法
- 4-4、圖表方法
- 4-5、功能集
- 4-7、定制的使用案例
- 5-1、交易終端簡介
- 5-2、交易控制器
- 5-3、經紀商API
- 5-4、交易主機
- 5-5、賬戶管理器
- 5-6、交易對象和常量
- 6、儲存和載入圖表
- 7、創建自定義指標
- 7、最佳做法
- 9、經常被問到的問題
- 10、版本變更點
- 周期
- 時間范圍
- 本地化
- 覆蓋
- 繪圖覆蓋
- 指標覆蓋
- 形狀與覆蓋
- 訂閱
- 交易元語
- 在K線上做標記
- 委托
- WatchedValue
- 指標API
- 形狀API
- 容器API
- 價格坐標Api