HPotter

Trend Trader Strategy

This is plots the indicator developed by Andrew Abraham
in the Trading the Trend article of TASC September 1998
Von Favorisierten Skripten entfernen Zu Favorisierten Skripten hinzufügen
////////////////////////////////////////////////////////////
//  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?
+73 Antworten
tak2day purushottamdeb92
+4 Antworten
Not useful if it repaints...
+26 Antworten
Aominee rocketrader
@rocketrader, how do u know if it repaints ?
+6 Antworten
@Aominee, yes, that's what the author says in the thread below.
+1 Antworten
Does this re-paint?
+21 Antworten
HPotter jgree107
@jgree107, Yes
+13 Antworten
vNsAbhyy58 HPotter
where its repaint? i not find any code regarding that @HPotter,
Antworten
HPotter 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
vNsAbhyy58 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 ,
+3 Antworten
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender So funktioniert es! Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Veröffentlichte Ideen Followers Ich folge Private Nachrichten Chat Abmelden