Heikin-Ashi Signals

Like the Heikini-Ashi trend mechanism but don’t like the candlesticks? This one’s for you. It plots a signal on the price bar when the Heikin-Ashi trend changes while using traditional candlesticks or bar charts.

Heikin-Ashi Signals

Heikin-Ashi Signals

# HEIKINASHISIGNALS
# http://www.thinkscripter.com
# thinkscripter@gmail.com
# Last Update 28 FEB 2009

def haclose = (open + high + low + close) / 4;
rec haopen = CompoundValue(1, (haopen[1] + haclose[1]) / 2, (open[1] + close[1]) / 2);
def diff = haclose - haopen;

plot HASignal = if diff > 0 and diff[1] <= 0 then low*0.999 else if diff < 0 and diff[1] >= 0 then high*1.001 else double.nan;
HASignal.setStyle(curve.POINTS);
HASignal.setPaintingStrategy(paintingStrategy.LINE_VS_TRIANGLES);
HASignal.setLineWeight(1);
HASignal.assignValueColor(if diff >0 then color.green else color.red);
This entry was posted in Indicator and tagged , , . Bookmark the permalink.

2 Responses to Heikin-Ashi Signals

  1. JayTrader says:

    Thanks for the cool scripts man! I’m playing around with Verroot and this candle indicator…thanks a mili :)

  2. Joy says:

    Anybody coding these in eld format for tradestation? Especially interested in the 3/10? Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>