TradingView
ChrisMoody
Sep 13, 2014 3:30 PM

Custom Indicator: Heikin-Ashi Paint Bars. 

Euro Fx/U.S. DollarFXCM

描述

Heikin-Ashi Paint Bars.

Paints Candlesticks or OHLC Bars The Exact Same as Traditional Heikin-Ashi Bars

Heikin-Ashi Paint Bars.

Paints Candlesticks or OHLC Bars The Exact Same as Traditional Heikin-Ashi Bars

***Better to use with Indicators because Traditional Heikin-Ashi Bars don't show correct Open, High, Low, Close.
评论
adriannasantillan
what's the difference? Can you explain the filled and the hollow light blue candle?
nvcworld
Hi sir i am using yours this code and its really good one can you please convert this code for email aleart,
Thanks in advance

// Plots Color Of Heikin-Ashi Bars while Viewing Candlestics or Bars
//Works on Candlesticks and OHLC Bars - Does now work on Heikin-Ashi bars - But I have verified its accuracy
// Created By User ChrisMoody 1-30-2014 with help from Alex in Tech Support

study(title = "CM_Heikin-Ashi_Candlesticks_V1", shorttitle="CM_Heik-Candles",overlay=true)

haclose = ((open + high + low + close)/4)//[smoothing]
haopen = na(haopen[1]) ? (open + close)/2 : (haopen[1] + haclose[1]) / 2

heikUpColor() => haclose > haopen
heikDownColor() => haclose <= haopen

barcolor(heikUpColor() ? aqua: heikDownColor() ? red : na)
更多