Home  >  Article  >  How to use stickline function

How to use stickline function

小老鼠
小老鼠Original
2023-11-03 17:58:233886browse

The stickline function is a drawing function in Tongdaxin stock software, which is used to draw columnar lines on charts. The usage of the stickline function is as follows:

stickline(cond,  price1,  price2,  width,  empty)

Parameter description:

  • cond: conditional expression, used to determine whether to draw a columnar line. For example, close > open means that a bar line is drawn when the closing price is greater than the opening price.
  • price1: The first price, which can be the opening price, closing price, highest price or lowest price.
  • price2: The second price, which can be the opening price, closing price, highest price or lowest price.
  • width: The width of the columnar line, in pixels. The larger the width, the thicker the bar line.
  • empty: Hollow column parameter, the value range is 0, 1 and -1. 0 represents a solid column, 1 represents a hollow column, and -1 represents a dotted hollow column.

Example:

stickline(close  >  open,  close,  open,  0.8,  1)  //  当收盘价大于开盘价时,在收盘价和开盘价之间绘制宽度为0.8像素的空心柱。

Note: The stickline function is only applicable to Tongdaxin stock software and may not be used in other stock software.

The above is the detailed content of How to use stickline function. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn