Advertisement
Nick42_for_win

FREE ALGOs [MarketCipher A]

Apr 17th, 2022
4,651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.76 KB | None | 0 0
  1. // 8888888888 8888888b. 8888888888 8888888888 d8888 888 .d8888b. .d88888b. As you
  2. // 888 888 Y88b 888 888 d88888 888 d88P Y88b d88P" "Y88b Can see
  3. // 888 888 888 888 888 d88P888 888 888 888 888 888 Are all
  4. // 8888888 888 d88P 8888888 8888888 d88P 888 888 888 888 888 .d8888b Basic free
  5. // 888 8888888P" 888 888 d88P 888 888 888 88888 888 888 88K tradingview
  6. // 888 888 T88b 888 888 d88P 888 888 888 888 888 888 "Y8888b. indicators
  7. // 888 888 T88b 888 888 d8888888888 888 Y88b d88P Y88b. .d88P X88 repackaged
  8. // 888 888 T88b 8888888888 8888888888 d88P 888 88888888 "Y8888P88 "Y88888P" 88888P' into one
  9. //
  10. // FAQ
  11. //
  12. // Why?
  13. // I want you to see what you are willing to pay hundereds of dollars a month
  14.  
  15. // Has the code been leaked/hacked?
  16. // No, this code has been created only using common sense and public information from the internet
  17.  
  18. // What's the accuracy I can expect from this version of the indicator?
  19. // I'd say it's about 95% the same as the one you would pay
  20.  
  21. // The indicator needs to be updated?
  22. // Write me a private message on TradingView (Nick42_for_win)
  23.  
  24. // Can I suggest an indicator to get a FREE ALGOs version?
  25. // Write me a private message on TradingView (Nick42_for_win)
  26.  
  27. // Do you get any monetary return from this project?
  28. // Nope, 0$
  29.  
  30. // Enjoy ;)
  31.  
  32. //@version=5
  33. indicator("FREE ALGOs [MarketCipher A]", overlay=true)
  34.  
  35. //-------------- MarketCipher A | https://marketciphertrading.com ------------//
  36. // Get user input
  37. version = input.string("2.1.2", "Version")
  38. pivotPeriod = input.int(1, "H/L Pivot Days Back", 1)
  39. showPivotHigh = input(false, "Show Pivot High")
  40. showPivotLow = input(false, "Show Pivot Low")
  41. showRibbon1 = input(true, "Show Ribbon 1")
  42. showRibbon2 = input(true, "Show Ribbon 2")
  43. showRibbon3 = input(true, "Show Ribbon 3")
  44. showRibbon4 = input(true, "Show Ribbon 4")
  45. showRibbon5 = input(true, "Show Ribbon 5")
  46. showRibbon6 = input(true, "Show Ribbon 6")
  47. showRibbon7 = input(true, "Show Ribbon 7")
  48. showRibbon8 = input(true, "Show Ribbon 8")
  49. showRibbon9 = input(false, "Show Ribbon 9")
  50. ribbon9Len = input(21, "Ribbon9")
  51. // Functions
  52. blueWaves_vwap(src, chlLen, avgLen) =>
  53. esa = ta.ema(src, chlLen)
  54. d = ta.ema(math.abs(src - esa), chlLen)
  55. ci = (src - esa) / (0.015 * d)
  56. bw1 = ta.ema(ci, avgLen)
  57. bw2 = ta.sma(bw1, 3)
  58. vwap = bw1 - bw2
  59. [bw1, bw2, vwap]
  60. // Get components
  61. pivotHigh = request.security(syminfo.tickerid, "D", ta.highest(high, pivotPeriod), barmerge.gaps_off, barmerge.lookahead_on)
  62. pivotLow = request.security(syminfo.tickerid, "D", ta.lowest(low, pivotPeriod), barmerge.gaps_off, barmerge.lookahead_on)
  63. ema1 = ta.ema(close, 5)
  64. ema2 = ta.ema(close, 11)
  65. ema3 = ta.ema(close, 15)
  66. ema4 = ta.ema(close, 18)
  67. ema5 = ta.ema(close, 21)
  68. ema6 = ta.ema(close, 25)
  69. ema7 = ta.ema(close, 29)
  70. ema8 = ta.ema(close, 33)
  71. sma9 = ta.sma(close, ribbon9Len)
  72. [bw1, bw2, vwap] = blueWaves_vwap(hlc3, 9, 12)
  73. stcRsiMod = ta.sma(ta.stoch(close, high, low, 81), 2)
  74. // Signals
  75. yellowDiamond = math.max(open, close) > ema1 and ema1 > ema2 and ema1 > ema8 and vwap > 0
  76. blueTriangle = ta.crossover(ema1, ema6) and vwap > 0 and (bw1 > - 15 or bw2 > -25) and stcRsiMod < 80 and not ta.crossover(ema2, ema8)
  77. greenDot = ta.crossover(ema2, ema8) and yellowDiamond
  78. redX = ta.crossunder(ema1, ema2)
  79. redDiamond = ta.crossunder(bw1, bw2)
  80. yellowX = redDiamond and bw1 < -40 and stcRsiMod < 20
  81. bloodDiamond = redX and redDiamond
  82. // Plots
  83. plot(showPivotHigh ? pivotHigh : na, "Pivot High", color.new(#4DA6FF, 20))
  84. plot(showPivotLow ? pivotLow : na, "Pivot Low", color.new(#4DA6FF, 20))
  85. p1 = plot(showRibbon1 ? ema1 : na, "Ribbon 1", ema1 < ema8 ? #505662 : #0166CC, 2)
  86. p2 = plot(showRibbon2 ? ema2 : na, "Ribbon 2", ema2 < ema8 ? #505662 : #198CFF, 2)
  87. p3 = plot(showRibbon3 ? ema3 : na, "Ribbon 3", ema3 < ema8 ? #505662 : #4DA6FF, 2)
  88. p4 = plot(showRibbon4 ? ema4 : na, "Ribbon 4", ema4 < ema8 ? #505662 : #80BFFF, 2)
  89. p5 = plot(showRibbon5 ? ema5 : na, "Ribbon 5", ema5 < ema8 ? #505662 : #99CCFF, 2)
  90. p6 = plot(showRibbon6 ? ema6 : na, "Ribbon 6", ema6 < ema8 ? #505662 : #B4D9FF, 2)
  91. p7 = plot(showRibbon7 ? ema7 : na, "Ribbon 7", ema7 < ema8 ? #505662 : #CCE6FF, 2)
  92. p8 = plot(showRibbon8 ? ema8 : na, "Ribbon 8", ema8 > ema7 ? #505662 : #E6F2FF, 2)
  93. p9 = plot(showRibbon9 ? sma9 : na, "Ribbon 9", #FFFB03, 2)
  94. plotshape(yellowDiamond, "Yellow Diamond", shape.diamond, location.abovebar, color.new(#FFFB03, 70), size=size.tiny)
  95. plotshape(blueTriangle, "Blue Triangle", shape.triangleup, location.abovebar, #4259F4, size=size.small)
  96. plotshape(greenDot, "Green Dot", shape.circle, location.abovebar, #03FC04, size=size.tiny)
  97. plotshape(redX, "Red X", shape.xcross, location.abovebar, #FF0100, size=size.tiny)
  98. plotshape(yellowX, "Yellow X", shape.xcross, location.abovebar, #FFFB03, size=size.small)
  99. plotshape(redDiamond, "Red Diamond", shape.diamond, location.abovebar, color.new(#FF0100, 45), size=size.tiny)
  100. plotshape(bloodDiamond, "Blood Diamond", shape.diamond, location.abovebar, #FF0100, size=size.small)
  101. fill(p2, p8, color.new(#B4D9FF, 90))
  102. fill(p1, p2, color.new(#80B3FF, 85))
  103. // Alerts
  104. alertcondition(bloodDiamond, "Blood Diamond", "WARNING, Blood Diamond")
  105. alertcondition(blueTriangle, "Blue Triangle", "WARNING, Blue Triangle")
  106. alertcondition(greenDot, "Green Dot", "WARNING, Green Dot")
  107. alertcondition(redDiamond, "Red Diamond", "WARNING, Red Diamond")
  108. alertcondition(redX, "Red X", "WARNING, Red X")
  109. alertcondition(yellowX, "Yellow X", "WARNING, Yellow X")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement