HPotter

Trend Trader

9660 views
1186
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", 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)))
plot(ret, color= blue , title="Trend Trader")

Kommentare

Is there a way to add an ema to this?
Antworten
HPotter Kasap
@Kasap, Interesting idea. I will do it and post.
Antworten
Kasap HPotter
@HPotter, this trend line work similar to an ATR and a 20 ema but differs and shines best with strong trends
Antworten
HPotter Kasap
@Kasap, Do you want to see ema as a second line? Or make average TT values?
+1 Antworten
Kasap HPotter
@HPotter, An average TT would be nice, i can experiment with that. Cheers
Antworten
HPotter Kasap
@Kasap, Look at this  
Antworten
HPotter Kasap
@Kasap, Sorry, This link
Antworten
Kasap HPotter
@HPotter, Thanks, i'll try it out and let you know what i think afterwards
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