TPCharts

TPCTime_Public

TPCharts ที่อัปเดต:   
Library "TPCTime_Public"
Helpers for calculating time

getTimeOffset(interval, amount) Returns the length in ms for the given amount of the given interval.
  Parameters:
    interval: Interval to calculate, for example "D" or "60".
    amount: Number of intervals for which to calculate the time range in ms.
  Returns: The number of ms in the amount of the given interval.

isInTimeRange()
เอกสารเผยแพร่:
v2

Added:
getPeriodAsMs()

isChildPeriod()

Updated:
getTimeOffset()

isInTimeRange()
เอกสารเผยแพร่:
v3
เอกสารเผยแพร่:
v4

Added:
getHumanDayOfWeek(timestamp, isShort, isWrap, startWrap, endWrap)
  Returns the human-readable day of week for the given time.
  Parameters:
    timestamp: The UNIX timestamp for which to return the day of the week.
    isShort: Whether to return a short date, e.g. "Mo" instead of "Monday"
    isWrap: Whether to wrap the date, e.g. placing it inside characters such as brackets to result in
    startWrap: Start wrap character, e.g. an opening bracket.
    endWrap: End wrap character, e.g. a closing bracket.
  Returns: The number of ms in the given period.
เอกสารเผยแพร่:
v5

Added:
isInTimeRangeFromCurrentTime(period, periodCount)
  Returns true if the current time is greater than or equal to the given periodCount of periods, else returns false.
  Parameters:
    period (string): Period to calculate with, for example "D" or "60".
    periodCount (int): Amount of given periods to test.
  Returns: True if the current time is greater than or equal to the given periodCount of periods, else returns false.

ไลบรารีไพน์

จิตวิญญาณที่แท้จริงของ TradingView ผู้เขียนได้ตีพิมพ์รหัส Pine นี้เป็นไลบรารีโอเพนซอร์ซเพื่อให้โปรแกรมเมอร์คนอื่น ๆ จากชุมชนของเราสามารถนำไปใช้ซ้ำได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ไลบรารีนี้เป็นการส่วนตัวหรือในสิ่งพิมพ์โอเพนซอร์สอื่น ๆ แต่นำรหัสนี้มาใช้ซ้ำในสิ่งพิมพ์จะถูกควบคุมโดย กฎระเบียบการใช้งาน

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการใช้ไลบรารีนี้หรือไม่?

คัดลอกข้อความไปยังคลิปบอร์ดแล้ววางลงในสคริปต์ของคุณ