TradingView
Trendoscope
21 Th08 2021 16:46

Zigzag Candles MA 

Tesla, Inc.NASDAQ

Mô tả

We have the candles here: Zigzag-Candles

Lets create moving average!!
Just simple moving average at the moment. Since, items are in array. Not so easy to use standard functions of pine. Hence, will take that for future enhancements.

ATR and Supertrend next!!

Phát hành các Ghi chú

Removed unnecessary variables

Phát hành các Ghi chú

Updated with few moving average options:

  • sma
  • ema
  • wma
  • zelma
  • hma


Moved to different overlay and added candles back for reference.

Phát hành các Ghi chú

  • added method add_to_array to manage fixed size arrays

Phát hành các Ghi chú

Convert to pine5
Bình luận
just_naba
lovely as always ..thanks
qingchuan2021
great job,
Through your Zigzag Candles, to support my point of view, I think Bitcoin has reached the top and will fall
FinTechKing
Congratulations for making script count 101 not out. Best wishes to break 380 record made by Hayden
qingchuan2021
hello sir,
How can I use this Zcandle MA correctly?
Trendoscope
@qingchuan2021, Let me ask you questions, how do you use moving average in general? You can apply similar rules here.

For me, it's just determining trend bias. If candle is above moving average, I look for long opportunities.
qingchuan2021
@HeWhoMustNotBeNamed, I seem to understand, thanks.
Thêm nữa