I think you can go freelance section and pay for it

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
1. //@version=4
2. study("Supertrend", overlay = true, format=format.price, precision=2, resolution="")
3.
4. Periods = input(title="ATR Period", type=input.integer, defval=10)
5. src = input(hl2, title="Source")
6. Multiplier = input(title="ATR Multiplier", type=input.float, step=0.1, defval=3.0)
7. changeATR= input(title="Change ATR Calculation Method ?", type=input.bool, defval=true)
8. showsignals = input(title="Show Buy/Sell Signals ?", type=input.bool, defval=true)
9. highlighting = input(title="Highlighter On/Off ?", type=input.bool, defval=true)
10. atr2 = sma(tr, Periods)
11. atr= changeATR ? atr(Periods) : atr2
12. up=src-(Multiplier*atr)
13. up1 = nz(up[1],up)
14. up := close[1] > up1 ? max(up,up1) : up
15. dn=src+(Multiplier*atr)
16. dn1 = nz(dn[1], dn)
17. dn := close[1] < dn1 ? min(dn, dn1) : dn
18. trend = 1
19. trend := nz(trend[1], trend)
20. trend := trend == -1 and close > dn1 ? 1 : trend == 1 and close < up1 ? -1 : trend
21. upPlot = plot(trend == 1 ? up : na, title="Up Trend", style=plot.style_linebr, linewidth=2, color=color.green)
22. buySignal = trend == 1 and trend[1] == -1
23. plotshape(buySignal ? up : na, title="UpTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.green, transp=0)
24. plotshape(buySignal and showsignals ? up : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0)
25. dnPlot = plot(trend == 1 ? na : dn, title="Down Trend", style=plot.style_linebr, linewidth=2, color=color.red)
26. sellSignal = trend == -1 and trend[1] == 1
27. plotshape(sellSignal ? dn : na, title="DownTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.red, transp=0)
28. plotshape(sellSignal and showsignals ? dn : na, title="Sell", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0)
29. mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
30. longFillColor = highlighting ? (trend == 1 ? color.green : color.white) : color.white
31. shortFillColor = highlighting ? (trend == -1 ? color.red : color.white) : color.white
32. fill(mPlot, upPlot, title="UpTrend Highligter", color=longFillColor)
33. fill(mPlot, dnPlot, title="DownTrend Highligter", color=shortFillColor)
34. alertcondition(buySignal, title="SuperTrend Buy", message="SuperTrend Buy!")
35. alertcondition(sellSignal, title="SuperTrend Sell", message="SuperTrend Sell!")
36. changeCond = trend != trend[1]
37. alertcondition(changeCond, title="SuperTrend Direction Change", message="SuperTrend has changed direction!")