Traders Laboratory - View Single Post - Add-On for Tick Delta and Heikin Ashii Trend
View Single Post
  #9 (permalink)  
Old 02-14-2007, 05:40 PM
Robert2617's Avatar
Robert2617 Robert2617 is offline
Robert2617 has no status.

Trader Specs
 
Join Date: Jan 2007
Location: Athens, GA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Add-On for Tick Delta and TTM Trend

I know you guys are worlds ahead of me on trading and I have a question about TTM Trend. Since I am just beginning in all this I have been looking around a lot and found a PaintBar indicator or two. I've studied them and to me, it looks like the one I have posted below is a little quicker and more accurate than the TTM Trend PB indicator. Would you guys take a look and see if you get the same results? Thanks.

Here is the code, compiled indicator below.
{ ModHA PaintBarStudy 1/20/04 modified Heikin-Ashi technique compares current bar open to close range with prior bars...if current is within prior then color remains the same } inputs: UpColor(green),DnColor(red),CompBars(6); 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; for value1 = 1 to CompBars begin if haOpen <= MaxList(haOpen[value1],haClose[value1]) and haOpen >= MinList(haOpen[value1],haClose[value1]) and haClose <= MaxList(haOpen[value1],haClose[value1]) and haClose >= MinList(haOpen[value1],haClose[value1]) then color = color[value1]; end; plotPB(haOpen,haClose,"heikin-ashi",color); SetPlotWidth(1,4); SetPlotColor(1,color); end;
Attached Files
File Type: eld MY_PBARS.ELD (4.3 KB, 43 views)

Reply With Quote