PINE LIBRARY
LunarTick

Library "LunarTick"
LunarTick shared library
is_bullish(bars_ago)
Determines if a bar is bullish
Parameters:
bars_ago (int): Specifies which bar to be used
Returns: True if specified bar is bullish, otherwise false
is_bearish(bars_ago)
Determines if a bar is bearish
Parameters:
bars_ago (int): Specifies which bar to be used
Returns: True if specified bar is bearish, otherwise false
format_timeframe_period(period)
Formats a timeframe period for display
Parameters:
period (string): Timeframe period
Returns: Display representation of timeframe period
pad_leading_zeroes(value, length)
Pads an integer with leading zeroes until desired length is reached
Parameters:
value (int): The integer value to be padded
length (int): The required length
Returns: String containing value padded with leading zeroes
time_add_minutes(value, minutes)
Adds minutes to an integer time value (HHMM)
Parameters:
value (int): The integer time value (HHMM)
minutes (int): The number of minutes to add
Returns: Integer time value (HHMM)
get_body_percent(bars_ago)
Gets a bar's body as percentage of bar range
Parameters:
bars_ago (int): Specifies which bar to be used
Returns: Bar's body as percentage of bar range
get_leading_wick_percent(bars_ago)
Gets a bar's leading wick as percentage of bar range
Parameters:
bars_ago (int): Specifies which bar to be used
Returns: Bar's leading wick as percentage of bar range
pluralize(count, word, pluralized)
Pluralize a specified word
Parameters:
count (int): Count value used to determine singular/plural
word (string): The word to be pluralized
pluralized (string): Custom pluralized version of word, if required
Returns: Pluralized version of word
LunarTick shared library
is_bullish(bars_ago)
Determines if a bar is bullish
Parameters:
bars_ago (int): Specifies which bar to be used
Returns: True if specified bar is bullish, otherwise false
is_bearish(bars_ago)
Determines if a bar is bearish
Parameters:
bars_ago (int): Specifies which bar to be used
Returns: True if specified bar is bearish, otherwise false
format_timeframe_period(period)
Formats a timeframe period for display
Parameters:
period (string): Timeframe period
Returns: Display representation of timeframe period
pad_leading_zeroes(value, length)
Pads an integer with leading zeroes until desired length is reached
Parameters:
value (int): The integer value to be padded
length (int): The required length
Returns: String containing value padded with leading zeroes
time_add_minutes(value, minutes)
Adds minutes to an integer time value (HHMM)
Parameters:
value (int): The integer time value (HHMM)
minutes (int): The number of minutes to add
Returns: Integer time value (HHMM)
get_body_percent(bars_ago)
Gets a bar's body as percentage of bar range
Parameters:
bars_ago (int): Specifies which bar to be used
Returns: Bar's body as percentage of bar range
get_leading_wick_percent(bars_ago)
Gets a bar's leading wick as percentage of bar range
Parameters:
bars_ago (int): Specifies which bar to be used
Returns: Bar's leading wick as percentage of bar range
pluralize(count, word, pluralized)
Pluralize a specified word
Parameters:
count (int): Count value used to determine singular/plural
word (string): The word to be pluralized
pluralized (string): Custom pluralized version of word, if required
Returns: Pluralized version of word
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน