TradingView
Trendoscope
Aug 21, 2021 4:46 PM

Zigzag Candles MA 

Tesla, Inc.NASDAQ

描述

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!!

版本注释

Removed unnecessary variables

版本注释

Updated with few moving average options:

  • sma
  • ema
  • wma
  • zelma
  • hma


Moved to different overlay and added candles back for reference.

版本注释

  • added method add_to_array to manage fixed size arrays

版本注释

Convert to pine5
评论
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.
更多