Deewithme

Untitled

May 25th, 2025
90
0
Never
6
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.86 KB | None | 0 0
  1. // This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  2. // © Deewithme
  3. //@version=5
  4. indicator("Non-Repainting ZigWave Analytics™", "", true, max_labels_count = 500)
  5.  
  6. //@TrendPulseNXT
  7.  
  8. //~~ Inputs {
  9. int prd = input.int(12, "Period", minval=1, inline="setting")
  10. float mult = input.float(2.0, "Mult", minval=0.1, step=0.1, inline="setting")
  11. bool showZigZag = input.bool(true, "ZigZag", inline="zigzag")
  12. string signal = input.string("Signal", "", ["Signal", "Peak Distance"], inline="zigzag")
  13. string dev = input.string("ZigZag", "", ["ZigZag", "High/Low", "Close"], inline="zigzag")
  14. bool showTable = input.bool(false, "Average/Median Distance")
  15. bool showTP = input.bool(false, "Take Profit", inline="tp")
  16. string Tp = input.string("Median", "", ["Median", "Average"], inline="tp")
  17.  
  18. //~~ Types & Variables {
  19. type ZigZag
  20. int [] x1
  21. float [] y1
  22. float [] diff
  23. bool [] direction // true = up, false = down
  24.  
  25. type SuperBollingerTrend
  26. float s
  27. color c
  28. bool confirmed
  29. int confirmedIndex
  30. float confirmedPrice
  31. bool confirmedDirection
  32.  
  33. type Alerts
  34. bool Long = false
  35. bool Short = false
  36. bool LongTp = false
  37. bool ShortTp = false
  38.  
  39. var zz = ZigZag.new(array.new<int>(), array.new<float>(), array.new<float>(), array.new<bool>())
  40. var sbt = SuperBollingerTrend.new(0.0, na, false, na, na, na)
  41. var alerted = Alerts.new()
  42.  
  43. // Calculations (only use confirmed values)
  44. float bbup = ta.sma(high, prd) + ta.stdev(high, prd) * mult
  45. float bbdn = ta.sma(low, prd) - ta.stdev(low, prd) * mult
  46.  
  47. //~~ Methods {
  48. // ZigZag - only updates on confirmed bars
  49. method zigzag(ZigZag z, color c, float p, bool l) =>
  50. if barstate.isconfirmed
  51. y2 = dev == "ZigZag" ? sbt.s :
  52. dev == "High/Low" ? p :
  53. close
  54.  
  55. if z.x1.size() > 0
  56. x1 = z.x1.get(0)
  57. y1 = z.y1.get(0)
  58. z.diff.unshift(math.abs(y2 - y1))
  59. line.new(x1, y1, bar_index, y2, color=color.new(color.gray, 0), style=line.style_dashed)
  60.  
  61. style = signal == "Signal" ? (l ? label.style_triangleup : label.style_triangledown) :
  62. (l ? label.style_label_up : label.style_label_down)
  63. txt = signal == "Signal" ? na : str.tostring(y2 - y1, format.mintick) + "p"
  64. label.new(bar_index, sbt.s, txt, color=c, size=size.small, style=style, textcolor=chart.bg_color)
  65.  
  66. z.x1.unshift(bar_index)
  67. z.y1.unshift(y2)
  68. z.direction.unshift(l)
  69.  
  70. // SuperBollingerTrend - only confirms on closed bars
  71. method SBT(SuperBollingerTrend s, bool cond, float val, color col, float p, bool l) =>
  72. if barstate.isconfirmed
  73. // Only update trend if bar is closed
  74. s.s := na(bbdn) or na(bbup) ? 0.0 : close > sbt.s ? math.max(sbt.s, bbdn) : close < sbt.s ? math.min(sbt.s, bbup) : s.s
  75.  
  76. if cond
  77. s.s := val
  78. s.c := col
  79. s.confirmed := true
  80. s.confirmedIndex := bar_index
  81. s.confirmedPrice := p
  82. s.confirmedDirection := l
  83.  
  84. if showZigZag
  85. zz.zigzag(col, p, l)
  86.  
  87. alerted.Long := l ? true : false
  88. alerted.Short := l ? false : true
  89. else
  90. s.confirmed := false
  91.  
  92. // Run Methods (only on confirmed bars)
  93. sbt.SBT(ta.crossover(close, sbt.s), bbdn, color.lime, low, true)
  94. sbt.SBT(ta.crossunder(close, sbt.s), bbup, color.red, high, false)
  95.  
  96. //~~ Plot & Table {
  97. // Plot confirmed trend only
  98. plot(sbt.confirmed ? sbt.s : na, "SuperBollingerTrend", sbt.c)
  99.  
  100. // TP Line - non-repainting version
  101. var line tp = na
  102. var label ltp = na
  103. var float lockedTP = na
  104.  
  105. if barstate.isconfirmed and showTP and zz.y1.size() > 0
  106. dist = Tp == "Median" ? zz.diff.median() : zz.diff.avg()
  107. pos = sbt.confirmedDirection
  108.  
  109. if sbt.confirmed and (na(tp) or sbt.confirmedIndex != sbt.confirmedIndex[1])
  110. x = sbt.confirmedIndex
  111. y = pos ? sbt.confirmedPrice + dist : sbt.confirmedPrice - dist
  112. lockedTP := y
  113.  
  114. if not na(tp)
  115. line.delete(tp)
  116. if not na(ltp)
  117. label.delete(ltp)
  118.  
  119. tp := line.new(x, y, bar_index + 10, y, color=color.new(pos ? color.lime : color.red, 0))
  120. ltp := label.new(bar_index + 10, y, "TP", color=color(na), style=label.style_label_left, textcolor=chart.fg_color)
  121.  
  122. alerted.LongTp := pos ? high >= lockedTP and high[1] < lockedTP : false
  123. alerted.ShortTp := pos ? false : low <= lockedTP and low[1] > lockedTP
  124.  
  125. // Table - unchanged
  126. var table tbl = na
  127. if barstate.islast and showZigZag and showTable
  128. dist = Tp == "Median" ? zz.diff.median() : zz.diff.avg()
  129. tbl := table.new(position.top_right, 1, 1, chart.bg_color,
  130. frame_color=color.new(color.gray, 50), frame_width=3, border_width=1)
  131. tbl.cell(0, 0, Tp == "Median" ? "Median ZigZag Distance: " + str.tostring(dist, format.mintick) + "p" : "Avg ZigZag Distance: " + str.tostring(dist, format.mintick) + "p", text_color=chart.fg_color)
  132.  
  133. //~~ Alerts {
  134. alertcondition(alerted.Long and barstate.isconfirmed, "Long Alert", "Long Signal")
  135. alertcondition(alerted.Short and barstate.isconfirmed, "Short Alert", "Short Signal")
  136. alertcondition(alerted.LongTp and barstate.isconfirmed, "Long TP Alert", "Long TP")
  137. alertcondition(alerted.ShortTp and barstate.isconfirmed, "Short TP Alert", "Short TP")
  138.  
  139. // === Branding Table ===
  140. var table brandingTable = table.new(position.top_center, 1, 1, border_width=1, frame_color=color.black, bgcolor=color.white)
  141. table.cell(brandingTable, 0, 0, "Telegram & Youtube[Setting's] Join: @TrendPulseNXT [V2 - Non-Repainting]", bgcolor=color.white, text_color=color.black, text_size=size.small)
  142.  
  143. //////
  144. //////
  145.  
  146. //dicator(shorttitle="BB", title="Bollinger Bands", overlay=true, timeframe="", timeframe_gaps=true)
  147. length = input.int(20, minval=1)
  148. maType = input.string("SMA", "Basis MA Type", options = ["SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA"])
  149. srcc = input(close, title="Source")
  150. multt = input.float(2.0, minval=0.001, maxval=50, title="StdDev")
  151.  
  152. ma(source, length, _type) =>
  153. switch _type
  154. "SMA" => ta.sma(source, length)
  155. "EMA" => ta.ema(source, length)
  156. "SMMA (RMA)" => ta.rma(source, length)
  157. "WMA" => ta.wma(source, length)
  158. "VWMA" => ta.vwma(source, length)
  159.  
  160. basis = ma(srcc, length, maType)
  161. devv = multt * ta.stdev(srcc, length)
  162. upper = basis + devv
  163. lower = basis - devv
  164. offset = input.int(0, "Offset", minval = -500, maxval = 500, display = display.data_window)
  165. plot(basis, "Basis", color=#2962FF, offset = offset)
  166. p1 = plot(upper, "Upper", color=#F23645, offset = offset)
  167. p2 = plot(lower, "Lower", color=#089981, offset = offset)
  168. fill(p1, p2, title = "Background", color=color.rgb(33, 150, 243, 95))
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Garmolye
    2 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=ilcltrtmpy
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment