43140 views
This is plots the indicator developed by Andrew Abraham
in the Trading the Trend article of TASC September 1998
```////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 21/08/2014
// This is plots the indicator developed by Andrew Abraham
// in the Trading the Trend article of TASC September 1998
////////////////////////////////////////////////////////////
study(title="Trend Trader Strategy", overlay = true)
Length = input(21, minval=1),
Multiplier = input(3, minval=1)
avgTR      = wma(atr(1), Length)
highestC   = highest(Length)
lowestC    = lowest(Length)
hiLimit = highestC[1]-(avgTR[1] * Multiplier)
loLimit = lowestC[1]+(avgTR[1] * Multiplier)
ret = iff(close > hiLimit and close > loLimit, hiLimit,
iff(close < loLimit and close < hiLimit, loLimit, nz(ret[1], 0)))
pos =	iff(close > ret, 1,
iff(close < ret, -1, nz(pos[1], 0)))
barcolor(pos == -1 ? red: pos == 1 ? green : blue )
plot(ret, color= blue , title="Trend Trader Strategy")```

## Kommentare

What is the best time frame for doing intrday using this indicator?
Antworten
purushottamdeb92
Antworten
Not useful if it repaints...
Antworten
@rocketrader, how do u know if it repaints ?
Antworten
Aominee
@Aominee, yes, that's what the author says in the thread below.
Antworten
Does this re-paint?
Antworten
jgree107
@jgree107, Yes
Antworten
HPotter
where its repaint? i not find any code regarding that @HPotter,
Antworten
vNsAbhyy58
@vNsAbhyy58, If I understand correctly. I use current close = last and in the real time bar it will change condition for pos and it will be change a colors.
Antworten
HPotter
@HPotter, THANKS FOR REPLY, for me, its really useful indicator when i combine with some other indicator and some specfic setting, really thankful for work done by you ,
Antworten