HPotter

Trend Trader Strategy

12666 뷰
2970
12666 10
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 blueSkies
hi @HPotter ,
I got it to work. :)
응답
HPotter blueSkies
@blueSkies, Good )
응답
wow...... you are really great.
응답
HPotter rainboo
@rainboo, Thank you.
응답
Does this re-paint?
+4 응답
HPotter jgree107
@jgree107, Yes
+1 응답
It seems to be somewhat useful in the daily chart and less helpful in a weekly chart.
응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 하우스룰(내부규정) 모더레이터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 도움 받기 기능 개발/개선 요청 블로그 & 뉴스 잦은물음 위키 트위터
프로화일 프로화일설정 계정 및 빌링 도움 받기 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃