AlphaViz

ZigZag Library

This is yet another ZigZag library.

🔵 Key Features

1. Lightning-Fast Performance: Optimized code ensures minimal lag and swift chart updates.
2. Real-Time Swing Detection: No more waiting for swings to finalize! This library continuously identifies the latest swing formation.
3. Amplitude-Aware: Discover significant swings earlier, even if they haven't reached the standard bar length.
4. Customizable Visualization: Draw ZigZag on-demand using polylines for a tailored analysis experience.

Stay tuned for more features as this library is being continuously enhanced. For the latest updates, please refer to the release information.

🔵 API

// Import this library. Remember to check the latest version of this library and replace the version number below.
import algotraderdev/zigzag/1 as zz

// Initialize the ZigZag instance.
var zz.ZigZag zig = zz.ZigZag.new().init(
  zz.Settings.new(
    swingLen = 5,
    lineColor = color.blue,
    lineStyle = line.style_solid,
    lineWidth = 1))

// Analyze the ZigZag using the latest bar's data.
zig.tick()

// Draw the ZigZag.
if barstate.islast
  zig.draw()

专业缠论指标: alphaviz.pro/chanlun
Email: contact@alphaviz.pro
Discord: discord.gg/w2fFtNega4
مكتبة باين

كمثال للقيم التي تتبناها TradingView، نشر المؤلف شيفرة باين كمكتبة مفتوحة المصدر بحيث يمكن لمبرمجي باين الآخرين من مجتمعنا استخدامه بحرية. تحياتنا للمؤلف! يمكنك استخدام هذه المكتبة بشكل خاص أو في منشورات أخرى مفتوحة المصدر، ولكن إعادة استخدام هذا الرمز في المنشور تحكمه قواعد الموقع.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذه المكتبة؟

انسخ النص إلى الحافظة وألصقه في النص البرمجي الخاص بك.