fitfatq

Taiwan Stock Limit Up/Down Calculator[fitfatq]

fitfatq Aktualisiert   
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.
Versionshinweise:
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.
Geschütztes Skript
Dieses Skript wird als Closed-Source veröffentlicht und Sie können es frei verwenden. Sie können es favorisieren, um es auf dem Chart zu verwenden. Sie können den Quellcode nicht einsehen oder verändern.
Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?