PINE LIBRARY
已更新 Utilities

Library "Utilities"
My utility functions library.
toPips(_v)
Convert price to pips.
Parameters:
_v: Price
Returns: Pips
toPrice(_p)
Convert pips to price.
Parameters:
_p
Returns: Price
price_range(_a, _b)
The difference will be returned.
Parameters:
_a
_b: return Price as positive number
get_day(_n, _lang)
Get the day of the week
Parameters:
_n: Number of day of week
_lang: en or ja
source(_name)
TODO: add function description here
Parameters:
_name
Returns: TODO: add what function returns
clear_lines(_arr, _min)
Deletes the lines included in the array.
Parameters:
_arr: Array of lines
_min: Deletes the lines included in the array.
clear_labels(_arr, _min)
Deletes the labels included in the array.
Parameters:
_arr: Array of labels
_min: Deletes the labels included in the array.
clear_boxes(_arr, _min)
Deletes the boxes included in the array.
Parameters:
_arr: Array of boxes
_min: Deletes the boxes included in the array.
My utility functions library.
toPips(_v)
Convert price to pips.
Parameters:
_v: Price
Returns: Pips
toPrice(_p)
Convert pips to price.
Parameters:
_p
Returns: Price
price_range(_a, _b)
The difference will be returned.
Parameters:
_a
_b: return Price as positive number
get_day(_n, _lang)
Get the day of the week
Parameters:
_n: Number of day of week
_lang: en or ja
source(_name)
TODO: add function description here
Parameters:
_name
Returns: TODO: add what function returns
clear_lines(_arr, _min)
Deletes the lines included in the array.
Parameters:
_arr: Array of lines
_min: Deletes the lines included in the array.
clear_labels(_arr, _min)
Deletes the labels included in the array.
Parameters:
_arr: Array of labels
_min: Deletes the labels included in the array.
clear_boxes(_arr, _min)
Deletes the boxes included in the array.
Parameters:
_arr: Array of boxes
_min: Deletes the boxes included in the array.
發行說明
v2Added:
auto_htf()
return
發行說明
v3 fixed bug發行說明
v4 minor fixes發行說明
v5Added:
to_pips(_v)
Parameters:
_v: Price
Returns: Pips
to_price(_p)
Parameters:
_p
Returns: Price
remove_lines(_arr, _max, _start, _step)
Parameters:
_arr: Array of line
_max: Max
_start: Start
_step: Step number
remove_linefills(_arr, _max, _start, _step)
Parameters:
_arr: Array of linefill
_max: Max
_start: Start
_step: Step number
remove_boxes(_arr, _max, _start, _step)
Parameters:
_arr: Array of box
_max: Max
_start: Start
_step: Step number
remove_labels(_arr, _max, _start, _step)
Parameters:
_arr: Array of label
_max: Max
_start: Start
_step: Step number
Updated:
price_range(_a, _b)
The difference will be returned.
Parameters:
_a: begin
_b: end
return Price as positive number
發行說明
v6Added:
qqe_func(_src, _period, _s_factor, _f_factor, _threshold)
Parameters:
_src (float): Source
_period (simple int): Period
_s_factor (simple int): Smoothing
_f_factor (float): Fast Factor
_threshold (float): Threshold
return [QQE, QQE MOD, QQE Line]
Updated:
to_pips(_v)
Convert price to pips.
Parameters:
_v (float): Price
Returns: Pips
toPips(_v)
Parameters:
_v (float)
to_price(_p)
Convert pips to price.
Parameters:
_p (float)
Returns: Price
toPrice(_p)
Parameters:
_p (float)
發行說明
v7Added:
round(_x, _type)
Parameters:
_x (float)
_type (string)
rounded_price(_price, _unit, _type)
Round price
Parameters:
_price (float): Price
_unit (float): Number of Round
_type (string): Method type 'ceil' or 'floor'
QQE(_src, _period, _s_factor, _f_factor, _threshold)
qqe_func's sugar
Parameters:
_src (float)
_period (simple int)
_s_factor (simple int)
_f_factor (float)
_threshold (float)
發行說明
v8Updated:
rounded_price(_price, _unit, _type, is_up, _index)
Round price
Parameters:
_price (float): Price
_unit (float): Number of Round
_type (string): Method type 'ceil' or 'floor'
is_up (bool)
_index (int): Index to get
發行說明
v9 Bug fixed發行說明
v11 - Minimum value to clear in `clear_**()` changed to 0Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。