Trendoscope

ZigZag (Using Line Array)

Trendoscope Wizard 已更新   
This is standard zigzag indicator. I just coded them using lines array feature of pine - so that it can be done in least number of lines of code.

Few possible improvements:

  • Use label array to mark HH, HL, LH and LL
  • Add standard deviation check
發布通知:
Added updates mentioned in the description.
發布通知:
Corrected HL and LH labels
發布通知:
Added ratios display.
發布通知:
  • Previously, using pivotHigh and pivotLow on every bar for last 10 periods caused some inconsistencies in plotting zigzag. Hence, switched to points based calculation. However, zigzags are still created via lines array
  • Fixed empty label issue
發布通知:
Solved array index out of bounds issue
發布通知:
Adding option to apply zigzag on different source such as RSI. This enables plotting zigzag and ratios on RSI - which can be used for finding divergence.
發布通知:
  • Corrected minor logical error.
  • Removed DeviationThreshold as it was leading to wrong calculation

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?