Candle Recalculating Indicator

 
Does anybody know if (and how) it's possible in MQL4 to build an Indicator with the purpose of generating a recalculated Candlestick Price Chart, istead of a simple line?
 
heiken ashi does it.
Reason: