mejialucas

Supertrend V1.0 - Buy or Sell Signal

37821 views
15355
//Author - Rajandran R
//www.marketcalls.in
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)

Von Favorisierten Skripten entfernen Zu Favorisierten Skripten hinzufügen

Kommentare

Hello, I can't use alert on this indicator. I tried but doesn not work.

Anybody could help me?

Thank you!
Antworten
did anyone figure out how to work this indicator
Antworten
Hi There the alert chart is a little confusing, did anyone evr figure outhow to set the alerts for up and down arrows? thanks
Antworten
I don't see how to set an alert for the generation of an arrow.
Antworten
Which additional indicator can filter the signal better..
Antworten
thanks for the great indicator
Antworten
Dear Bro,
It is great for your script.

However, could you please advise me that in case i want to get the highest value on the 20 consecutive bars in the range from the 4th to the 23rd index inclusive on the current chart, how must i do?

Thank you in advance.
+2 Antworten
What is the best way to set up an indicator that lets me know when it inserts an up or down arrow?
+5 Antworten
Do you have an automated Expert Advisor for Meta Trader 4 for this indicator? If not you should do, it would sell well, I'd be your first customer if the price was reasonable.
+7 Antworten
thank you very much bro
+7 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 Einen Freund empfehlen Meine Support Tickets Hilfe Center Veröffentlichte Ideen Followers Ich folge Private Nachrichten Chat Abmelden