fitfatq

Taiwan Stock Limit Up/Down Calculator[fitfatq]

fitfatq Cập nhật   
1.Description:

This script is designed to calculate the limit up and limit down prices for Taiwan stock market securities based on the previous day's closing prices. It incorporates the specific tick size rules used in the Taiwan stock market to ensure accurate and compliant price adjustments.

2.Key Features:

Tick Size Rules:

The script applies different tick sizes depending on the price range of the stock, adhering to Taiwan stock market regulations. For example:
Price < 10: Tick size = 0.01
Price < 50: Tick size = 0.05
Price < 100: Tick size = 0.1
Price < 500: Tick size = 0.5
Price < 1000: Tick size = 1
Price >= 1000: Tick size = 5
Calculation Methodology:

Previous Close: The script retrieves the previous day's closing price.
Initial Limit Prices: It calculates the initial limit up and limit down prices by multiplying the previous close by 1.1 and 0.9, respectively.
Adjustments for Tick Size: The script adjusts these initial prices to the nearest valid price based on the defined tick size rules, ensuring that the adjusted prices do not cross tick size boundaries.
Adjustments to Prevent Crossing Tick Size Boundaries:

If the adjusted limit prices fall into a different tick size range, further adjustments are made to align with the appropriate tick size.

3.Usage:

This script is useful for traders and investors in the Taiwan stock market to quickly determine the limit up and limit down prices for any given security.
It is particularly beneficial for day traders and scalpers who need to know these critical price levels for their trading strategies.

4.How It Works:

The script uses the request.security function to get the previous day's close price.
It defines a function getTickSize to determine the appropriate tick size based on the stock price.
The adjustPrice function then adjusts the initial limit prices to conform to the tick size rules, ensuring accurate and regulatory-compliant limit prices.
Note: This script is closed-source, but it provides transparency in its methodology to help users understand the underlying calculations and how to utilize it effectively in their trading decisions.
Phát hành các Ghi chú:
1. Description:

This script is designed to calculate the limit up and limit down prices for Taiwan stock market securities based on the previous day's closing prices. It incorporates the specific tick size rules used in the Taiwan stock market to ensure accurate and compliant price adjustments. Additionally, it provides options to display the flat price (previous day's close) and the projected limit prices for the next day.

2. Key Features:

Tick Size Rules:

The script applies different tick sizes depending on the price range of the stock, adhering to Taiwan stock market regulations. For example:

Price < 10: Tick size = 0.01
Price < 50: Tick size = 0.05
Price < 100: Tick size = 0.1
Price < 500: Tick size = 0.5
Price < 1000: Tick size = 1
Price >= 1000: Tick size = 5
Calculation Methodology:

Previous Close: The script retrieves the previous day's closing price.
Initial Limit Prices (Today): It calculates the initial limit up and limit down prices by multiplying the previous close by 1.1 and 0.9, respectively.
Initial Limit Prices (Tomorrow): It calculates the initial limit up and limit down prices for the next day using today's close.
Adjustments for Tick Size: The script adjusts these initial prices to the nearest valid price based on the defined tick size rules, ensuring that the adjusted prices do not cross tick size boundaries.
Display Options:

Flat Price Line: Displays the flat price (previous day's close) as a horizontal line.
Limit Up/Down Lines: Displays the limit up and limit down prices as horizontal lines.
Full Day Lines: Option to display the limit up, limit down, and flat prices for the entire current day.
Next Day Projection: Option to display the projected limit up, limit down, and flat prices for the next day.
3. Usage:

This script is useful for traders and investors in the Taiwan stock market to quickly determine the limit up, limit down, and flat prices for any given security. It is particularly beneficial for day traders and scalpers who need to know these critical price levels for their trading strategies.

4. How It Works:

The script uses the request.security function to get the previous day's and today's close prices.
It defines a function getTickSize to determine the appropriate tick size based on the stock price.
The script adjusts the initial limit prices to conform to the tick size rules, ensuring accurate and regulatory-compliant limit prices.
It provides options to display horizontal lines for flat prices and limit prices for both the current and next day.
Mã được bảo vệ
Tập lệnh này được xuất bản mã nguồn đóng và bạn có thể sử dụng một cách tự do. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ. Bạn không thể xem hoặc sửa đổi mã nguồn.
Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?