PINE LIBRARY
ที่อัปเดต: MathExtension

Library "MathExtension"
Math Extension.
log2(_value) calculate log base 2
Parameters:
Returns: float, base 2 logarithm of value.
fmod(numerator, denominator) float remainder of x divided by y.
Parameters:
Returns: float
fractional(value) computes the fractional part of the argument value.
Parameters:
Returns: float, fractional part.
integral(value) Find the integral of value.
Parameters:
Returns: float.
atan2(value_x, value_y) Approximation to atan2 calculation, arc tangent of y/ x in the range (-pi,pi) radians.
Parameters:
Returns: float, value with angle in radians. (negative if quadrante 3 or 4)
hypotenuse(value_x, value_y) Multidimensional euclidean distance from the origin to a point.
Parameters:
Returns: float
near_equal(value_a, value_b, relative_tolerance, absolute_tolerance) Determine whether two floating point numbers are near in value.
Parameters:
Returns: bool
factorize(value) Factorize a number.
Parameters:
Returns: int
permutations(options_size, combo_size) Number of ways to choose k items from n items without repetition and with order.
Parameters:
Returns: int
combinations(options_size, combo_size) Find the total number of possibilities to choose k things from n items
Parameters:
Returns: int
Math Extension.
log2(_value) calculate log base 2
Parameters:
- _value: float, number.
Returns: float, base 2 logarithm of value.
fmod(numerator, denominator) float remainder of x divided by y.
Parameters:
- numerator: float, division numerator.
- denominator: float, division denuminator.
Returns: float
fractional(value) computes the fractional part of the argument value.
Parameters:
- value: float, value to compute.
Returns: float, fractional part.
integral(value) Find the integral of value.
Parameters:
- value: float, value.
Returns: float.
atan2(value_x, value_y) Approximation to atan2 calculation, arc tangent of y/ x in the range (-pi,pi) radians.
Parameters:
- value_x: float, value x.
- value_y: float, value y.
Returns: float, value with angle in radians. (negative if quadrante 3 or 4)
hypotenuse(value_x, value_y) Multidimensional euclidean distance from the origin to a point.
Parameters:
- value_x: float, value x.
- value_y: float, value y.
Returns: float
near_equal(value_a, value_b, relative_tolerance, absolute_tolerance) Determine whether two floating point numbers are near in value.
Parameters:
- value_a: float, value to compare with.
- value_b: float, value to be compared against.
- relative_tolerance: float, default (1.0e-09).
- absolute_tolerance: float, default (0.0).
Returns: bool
factorize(value) Factorize a number.
Parameters:
- value: int, positive number.
Returns: int
permutations(options_size, combo_size) Number of ways to choose k items from n items without repetition and with order.
Parameters:
- options_size: int, number of items to pool from
- combo_size: int, number of items to be chosen
Returns: int
combinations(options_size, combo_size) Find the total number of possibilities to choose k things from n items
Parameters:
- options_size: int, number of items to pool from
- combo_size: int, number of items to be chosen
Returns: int
เอกสารเผยแพร่
v2Added:
ndigit() Find the number of digits in a int, float, valid number string.
Parameters:
- *value (int, float or string), value.
Returns: int, number of digits.
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน