English

11833 views
11833
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")```
DONATE/TIP

BTC: 3FKWwtaYrf5NHZzaCi1fyAfQj7XSgtyCqe
Not useful if it repaints...
Hello @HPotter
How can I use it on MT4, please let me know.
Thank you.
Hi,
Thanks for this.
Don't know how to code and hoping you can help.
Just wondering if you can make a V2 that ads another line "hilimit/lolimit" but with another multiplier (i.e 2)

The purpose of which could be for getting out of the trade quicker or adding to positions if price bounces off this new line.

regards
blueSkies
hi @HPotter ,
I got it to work. :)
blueSkies
@blueSkies, Good )
wow...... you are really great.
rainboo
@rainboo, Thank you.
Does this re-paint?
jgree107
@jgree107, Yes
It seems to be somewhat useful in the daily chart and less helpful in a weekly chart.
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית