Hey Traders,
you might have noticed that on most of my charts I use for analysis Candle Colors are not standard green for up candles, red for down candles, That is because I am using a paid version of TTM Trend indicators of TradeStation which essentially is Heikin Ashi modified bars. Heikin-Ashi is very useful in determining current trend and seeing trend changes.
If you would like to use Heikin Ashi paint bad study on your TradeStation platform, use simple EasyLanguage Code below:
{ Heikin Ashi PaintBarStudy
Heikin-Ashi technique for visualization
of trend }
inputs: UpColor( RGB(0,255,0)),DnColor( RGB(255,0,0) ), help(”www.TazaTek.com”);
vars: haClose(0),haOpen(0),haHigh(0),haLow(0),
color(0);
if BarNumber = 1 then
begin
haOpen = open;
haClose = (O+H+L+C)/4;
haHigh = MaxList( high, haOpen, haClose);
haLow = MinList( low, haOpen,haClose);
end;
if BarNumber > 1 then
begin
haClose = (O+H+L+C)/4;
haOpen = (haOpen [1] + haClose [1])/2 ;
haHigh = MaxList(High, haOpen, haClose) ;
haLow = MinList(Low, haOpen, haClose) ;
if haClose > haOpen then
color = UpColor
else
color = DnColor;
plotPB(haOpen,haClose,”Ignore-ME-”,color);
SetPlotWidth(1,4);
SetPlotColor(1,color);
end;
I will be posting more heiken-ashi/ttm trend based strategies once I get to completing “Trading Strategies” section of the blog
Enjoy