Supertrend V1.0 - Buy or Sell Signal

27096 뷰
//Author - Rajandran R
study("Supertrend V1.0 - Buy or Sell Signal", overlay = true)

Factor=input(3, minval=1,maxval = 100)
Pd=input(7, minval=1,maxval = 100)

Up=hl2-(Factor*atr( Pd ))
Dn=hl2+(Factor*atr( Pd ))

TrendUp=close>TrendUp? max(Up,TrendUp) : Up
TrendDown=close<TrendDown? min(Dn,TrendDown) : Dn

Trend = close > TrendDown ? 1: close< TrendUp? -1: nz (Trend,1)
Tsl = Trend==1? TrendUp: TrendDown

linecolor = Trend == 1 ? green : red

plot( Tsl , color = linecolor , style = line , linewidth = 2,title = "SuperTrend")

plotshape(cross(close, Tsl ) and close>Tsl , "Up Arrow", shape.triangleup,location.belowbar,green,0,0)
plotshape(cross( Tsl ,close) and close<Tsl , "Down Arrow", shape.triangledown , location.abovebar, red,0,0)
//plot(Trend==1 and Trend==-1,color = linecolor, style = circles, linewidth = 3,title="Trend")

plotarrow(Trend == 1 and Trend == -1 ? Trend : na, title="Up Entry Arrow", colorup=lime, maxheight=60, minheight=50, transp=0)
plotarrow(Trend == -1 and Trend == 1 ? Trend : na, title="Down Entry Arrow", colordown=red, maxheight=60, minheight=50, transp=0)

즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기



This is a great indicator, thanks for sharing this. but when I set up the alarm, Trading view asks for different conditions, after "up arrow", there's a whole bunch of crossing-crossing down-crossing up..., I have to choose one, which one could it be ?
+33 응답
jordanovitch jordanovitch
@jordanovitch, i found the way to do it
+21 응답
linchong6562 jordanovitch
@jordanovitch, can you share me how to set up the alarm,ths.
+22 응답
dipenambalia linchong6562
@linchong6562, hi. were you able to figure out the alert settings?
+1 응답
tartrade2018 jordanovitch
@jordanovitch, could you share how you did it ?
wutangforever jordanovitch
@jordanovitch, Can you explain how?
Thank you for providing such an excellent indicator. I really appreciate you sharing.
+11 응답
+3 응답
thank you very much bro
+7 응답
Thank you for sharing this. Can you please explain if it is possible to create an alert on "Up Entry Arrow"?
+6 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃