PINE LIBRARY
업데이트됨 Mad_Standardparts

Library "Mad_Standardparts"
This are my Standardparts used in upcoming scipts
roundTo(_value, _decimals)
Round a floating point value to a specified number of decimal places.
description This function takes a floating point value and rounds it to a specified number of decimal places.
Parameters:
_value (float): The floating point value to be rounded.
_decimals (int): The number of decimal places to round to. Must be a non-negative integer.
Returns: The rounded value, as a floating point number.
clear_all()
Delete all drawings on the chart.
description This function deletes all drawings on the chart, including lines, boxes, and labels.
Returns: None.
shifting(_value)
Create a string of spaces to shift text over by a specified amount.
description This function takes an integer value and returns a string consisting of that many spaces, which can be used to shift text over in a PineScript chart.
Parameters:
_value (int): The number of spaces to create in the output string.
Returns: A string consisting of the specified number of spaces.
fromLog(_value)
Convert a linear value to a logarithmic value.
description This function takes a linear value and converts it to a logarithmic value, using the formula specified in the code.
Parameters:
_value (float)
Returns: The corresponding logarithmic value, as a floating point number.
toLog(_value)
Convert a logarithmic value to a linear value.
description This function takes a logarithmic value and converts it to a linear value, using the formula specified in the code.
Parameters:
_value (float)
Returns: The corresponding linear value, as a floating point number.
f_getbartime()
Calculate the time per bar on the chart.
description This function calculates the time per bar on the chart based on the first 100 bars.
Returns: The time per bar, as an integer value.
This are my Standardparts used in upcoming scipts
roundTo(_value, _decimals)
Round a floating point value to a specified number of decimal places.
description This function takes a floating point value and rounds it to a specified number of decimal places.
Parameters:
_value (float): The floating point value to be rounded.
_decimals (int): The number of decimal places to round to. Must be a non-negative integer.
Returns: The rounded value, as a floating point number.
clear_all()
Delete all drawings on the chart.
description This function deletes all drawings on the chart, including lines, boxes, and labels.
Returns: None.
shifting(_value)
Create a string of spaces to shift text over by a specified amount.
description This function takes an integer value and returns a string consisting of that many spaces, which can be used to shift text over in a PineScript chart.
Parameters:
_value (int): The number of spaces to create in the output string.
Returns: A string consisting of the specified number of spaces.
fromLog(_value)
Convert a linear value to a logarithmic value.
description This function takes a linear value and converts it to a logarithmic value, using the formula specified in the code.
Parameters:
_value (float)
Returns: The corresponding logarithmic value, as a floating point number.
toLog(_value)
Convert a logarithmic value to a linear value.
description This function takes a logarithmic value and converts it to a linear value, using the formula specified in the code.
Parameters:
_value (float)
Returns: The corresponding linear value, as a floating point number.
f_getbartime()
Calculate the time per bar on the chart.
description This function calculates the time per bar on the chart based on the first 100 bars.
Returns: The time per bar, as an integer value.
릴리즈 노트
v2Added an overload to roundTo to send a format as string
roundTo(_value, _decimals)
Round a floating point value to a specified number of decimal places.
description This function takes a floating point value and rounds it to a specified number of decimal places.
릴리즈 노트
v3Added:
roundTo(_value, i_decimals_s)
Parameters:
_value (float)
i_decimals_s (string)i_decimals (int)
릴리즈 노트
v4 Bughunting릴리즈 노트
v5Added:
round_to_Str(_value, _decimals /_decimals_s)
Parameters:
_value (float)
_decimals_s (string)
Removed:
roundTo(_value, i_decimals_s)
릴리즈 노트
v6Added:
f_fib_calc(_Fibonacci_box)
fibonacci calc.
description This function block uses the levels and paramters set into the type_fibonacci_box(levels) and fills the corresponding array of prices.
Parameters:
_Fibonacci_box (type_Fibonacci_box)
Returns: returns a type_Fibonacci_box with the filled data
f_fib_draw(_Fibonacci_box)
fibonacci draw.
description This function block uses the levels, prices and paramters set into the type_fibonacci_box(levels) and draws the fib on the chart
Parameters:
_Fibonacci_box (type_Fibonacci_box)
Returns: returns lines labels and fills on the chart, no data returns
type_fill
s for defining a fill group with corresponding color
Fields:
partner_A (series int)
partner_B (series int)
fill_color (series color)
type_Fibonacci_box
s for defining a fibonacci box
Fields:
bottom_price (series float)
top_price (series float)
StartBar (series int)
StopBar (series int)
levels (float[])
prices (float[])
fills (type_fill[])
ChartisLog (series bool)
fibreverse (series bool)
fiblinecolor (series color)
fibtextcolor (series color)
fibtextsize (series string)
decimals_price (series int)
decimals_percent (series int)
Updated:
clear_all()
Delete all drawings on the chart.
description This function deletes all drawings on the chart, including lines, boxes, fills and labels.
Returns: None.
릴리즈 노트
v7Updated:
type_Fibonacci_box
s for defining a fibonacci box
Fields:
bottom_price (series float)
top_price (series float)
StartBar (series int)
StopBar (series int)
levels (float[])
prices (float[])
fills (type_fill[])
ChartisLog (series bool)
fibreverse (series bool)
fiblinecolor (series color)
fibtextcolor (series color)
fibtextsize (series string)
decimals_price (series int)
decimals_percent (series int)
transp (series int)
릴리즈 노트
v8f_fib_draw()
removed the bar_index from the calculation, better to have control from outside via direct calling the fibo box
릴리즈 노트
v9Added:
overload method removeDeleteAll(ln)
Namespace types: box[], line[], line_fill[] or label[],
Parameters:
ln (box[], line[], line_fill[] or label[])
Updated:
type_Fibonacci_box
s for defining a fibonacci box
Fields:
bottom_price (series float)
top_price (series float)
StartBar (series int)
StopBar (series int)
levels (float[])
prices (float[])
fills (type_fill[])
ChartisLog (series bool)
fibreverse (series bool)
fiblinecolor (series color)
fibtextcolor (series color)
fibtextsize (series string)
decimals_price (series int)
decimals_percent (series int)
transp (series int)
drawlines (series bool)
drawlabels (series bool)
drawfills (series bool)
릴리즈 노트
v10Removed:
f_fib_calc(_Fibonacci_box)
fibonacci calc.
description This function block uses the levels and paramters set into the type_fibonacci_box(levels) and fills the corresponding array of prices.
f_fib_draw(_Fibonacci_box)
fibonacci draw.
description This function block uses the levels, prices and paramters set into the type_fibonacci_box(levels) and draws the fib on the chart
type_fill
s for defining a fill group with corresponding color
type_Fibonacci_box
s for defining a fibonacci box
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.