fitfatq

Taiwan Stock Limit Up/Down Calculator[fitfatq]

fitfatq 업데이트됨   
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.
릴리즈 노트:
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.
보호된 스크립트입니다
이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.
면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?