## 原型

```python
ContextInfo.draw_vertline(cond, number1, number2, color='', limit='')
```

## 释义

ContextInfo.draw_vertline 是 QMT 内置 Python 中用于在数字 1 和数字 2 之间绘垂直线的接口。

研究：官方目录未明确；回测：官方目录未明确；模拟：官方目录未明确；实盘：官方目录未明确。

## 参数

| 参数 | 是否必填 | 官方原始定义 |
|---|---:|---|
| `cond` | 是 | cond |
| `number1` | 是 | number1 |
| `number2` | 是 | number2 |
| `color` | 否 | color='' |
| `limit` | 否 | limit='' |

## 返回值

以实际接口返回和下方详细说明为准。

## 示例

```python
def init(ContextInfo):

close = ContextInfo.get_market_data(['close'])

open = ContextInfo.get_market_data(['open'])

ContextInfo.draw_vertline(1 > 0, close, open, 'cyan')
```

## 详细说明

在数字1和数字2之间绘垂直线

调用方法： ContextInfo.draw_vertline(cond, number1, number2, color = '', limit = '')

### 参数详细说明

| 参数名 | 类型 | 说明 | 提示 |
| --- | --- | --- | --- |
| cond | bool | 条件 |
| number1 | number | 数字1 |
| number2 | number | 数字2 |
| color | string | 颜色（不填默认为白色） | blue：蓝色 / brown：棕 / cyan：蓝绿 / green：绿 / magenta：品红 / red：红 / white：白 / yellow：黄 |
| limit | string | 画线控制 | 'noaxis'：不影响坐标画线 / 'nodraw'：不画线 |

返回： 无
