# 指標API
## 指標API
### isUserEditEnabled()
如果用戶能夠刪除/更改/隱藏研究,則返回`true`。
### setUserEditEnabled(enabled)
1. `enabled` - `true` or `false`
Enables or disables removing/changing/hiding a study by the user.
### getInputsInfo()
Returns the information about all the inputs - an array of [StudyInputInfo](#studyinputinfo) objects.
### getInputValues()
Returns values of study inputs - an array of [StudyInputValueItem](#studyinputvalueitem) objects.
### setInputValues(inputs)
1. `inputs` should be an array of [StudyInputValueItem](#studyinputvalueitem) objects.
Sets input values for a study. It may contain only some of the inputs that you wish to change.
### mergeUp()
Merges the study up (if possible).
### mergeDown()
Merges the study down (if possible).
### unmergeUp()
Unmerges the study up (if possible).
### unmergeDown()
Unmerges the study down (if possible).
### changePriceScale(priceScale)
1. `priceScale` should be a string with one of the following values:
- `left` - attach the study to the left price scale
- `right` - attach the study to the right price scale
- `no-scale` - do not attach the study to any price scale. The study will be added in 'No Scale' mode
- `as-series` - attach the study to the price scale where the main series is attached (it is only applicable if the study and the main series are located on the same pane)
Changes the price scale of the study
### isVisible()
Returns `true` if the study is visible.
### setVisible(value)
1. `value` - `true` or `false`
Shows/hides the study.
### bringToFront()
Places the study on top of all other chart objects.
### sendToBack()
Places the study behind all other chart objects.
### applyOverrides(overrides)
1. `overrides` - new [overrides](Studies-Overrides) for the study
Applies `overrides` to the study.
Note: `overrides` object keys don’t need to start with the study name. The key is applied to a particular study. For example, you should use `style` instead of `Overlay.style` to override the current style of the Overlay study.
## Primitive types
### StudyInputInfo
An object with the following keys:
- `id` - input ID of the study
- `name` - name of the input
- `type` - type of the input
- `localizedName` - name of the input translated to the current language
### StudyInputValueItem
An object with the following keys:
- `id` - input ID of the study
- `value` - value of the input
- 序言
- 更新日志
- 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