TradingView
allanster
2020年4月26日午後9時0分

Heikin-Ashi Source Function 

Bitcoin / United States DollarCoinbase

詳細

Custom source function for toggling traditional Candle sources or Heikin-Ashi sources on a traditional Candles chart.
Thanks to PineCoders for rounding method: pinecoders.com/faq_and_code/
Thanks to @LucF and @RicardoSantos for their advice and enlightenment as always.

NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!

リリースノート

Simplified code due to plotcandle() function now supporting series color for wickcolor and bordercolor.

リリースノート

Updated for Pine Script v5.
コメント
PineCoders
This publication will be featured in our "Best Scripts of The Month" selection. Thank you for your valuable contribution to the TradingView community, and congrats!
allanster
@PineCoders, I stand on the shoulders of giants but am honored to be chosen, thank you so much!
TusharKale
Thank you
allanster
@TusharKale, hope you find helpful.
cgminer997
Nice job bro :)
allanster
@cgminer997, thanks much appreciated!
VizFact-TheDude
Fantastic indicator. I've been looking for a slightly smoother HA like this, that's not corrupted by complexity, for months. Thank you!
allanster
@VizFact-TheDude, thanks for your interest and comment, both are appreciated.
oldspicehai
@allanster hi, I'm still learning but how do you use this script to plot Ichimoku? I know custom series can't be used as inputs which Ichimoku script use input.int( ) Any comment is appreciated!
allanster
@oldspicehai, in the script above refer to the Heikin-Ashi OHLC sources that are being called from within the plotcandle function. If you wish to transform a normal Candles indicator into a Heikin-Ashi indicator then you would need to substitute those Heikin-Ashi OHLC sources in place of wherever your indicator is calling for standard Candles OHLC sources.
詳細