jason5480

series_collection

jason5480 ที่อัปเดต:   
Library "series_collection"
A personal collection of commonly used series types like moving averages that are supported directly by
the pinescript library ('ALMA', 'DEMA', 'EMA', 'HMA', 'RMA', 'SMA', 'SWMA', 'VWMA', 'WMA'), highest and lowest source,
median and pivots. One single function (with overloads) that can be configured easily by the user input and can be
used as a core piece of functionality for many user cases. This library was created to abstract away and re-use this
commonly used functionality in my "Two MA Signal Indicator" script and the "Template Trailing Strategy" script. Both
of them use the "two_ma_logic" for defining entry and exit signals. While this piece of work does not contain any
novel mathematical expressions and just adds a convinient (and configurable) way to do things, I hope that might add
value to other scripts as well and future projects.

cust_series(length, seriesType, source)
  cust_series - Calculate the custom series of the given source for the given length and type
  Parameters:
    length (simple int): - The length of the custom series
    seriesType (simple string): - The type of the custom series
    source (float): - The source of the values
  Returns: - The resulting value of the calculations of the custom series

cust_series(length, seriesType, source)
  cust_series - Calculate the custom series of the given source for the given length and type
  Parameters:
    length (simple float): - The length of the custom series (ceiled)
    seriesType (simple string): - The type of the custom series
    source (float): - The source of the values
  Returns: - The resulting value of the calculations of the custom series
เอกสารเผยแพร่:
v2
Four new implementations of ALMA, DEMA, EMA, HMA, RMA, SMA, SWMA, VWMA, WMA, HIGHEST, LOWEST, HILOESTAVG, MEDIAN, MEDIANHIGHEST, MEDIANLOWEST, LINREG in different data structures that can be used on demand.
  1. Array Front, where the values are pushed front (unshift) and the most recent value in index 0
  2. Array Back, where the values are pushed back (push) and the most recent value is at the largest index
  3. Cyclic Buffer, where the values are just placed (set) in a counter-clockwise manner.
  4. Clock Buffer, where the values are just placed (set) in a clockwise manner.

If you're interested in exploring and discovering other high quality free strategies come join us in Discord: discord.gg/2wkm9QqSuY
ไลบรารีไพน์

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

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

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

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

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