Advertisement
Nick42_for_win

FREE ALGOs [MarketCipher B]

Apr 17th, 2022
4,474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.62 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 B]", overlay=false)
  34.  
  35. //-------------- MarketCipher B | https://marketciphertrading.com ------------//
  36. // Get user input
  37. version = input.string("2.2.6", "Version")
  38. useCurrentRes = input(true, "Use Current Chart Resolution?")
  39. customRes = input.timeframe("60", "Use Current Chart Resolution?")
  40. obLevel1 = input(60, "Over Bought Level 1")
  41. trigger1 = input(53, "Trigger 1")
  42. osLevel1 = input(-60, "Over Sold Level 1")
  43. trigger2 = input(-53, "Trigger 2")
  44. // Functions
  45. blueWaves_vwap(src, chlLen, avgLen) =>
  46. esa = ta.ema(src, chlLen)
  47. d = ta.ema(math.abs(src - esa), chlLen)
  48. ci = (src - esa) / (0.015 * d)
  49. bw1 = ta.ema(ci, avgLen)
  50. bw2 = ta.sma(bw1, 3)
  51. vwap = bw1 - bw2
  52. [bw1, bw2, vwap]
  53. moneyFlow(period, mult, y) => ta.sma(((close - open) / (high - low)) * mult, period) - y
  54. // Get components
  55. cond(_offset) =>
  56. [bw1, bw2, vwap] = blueWaves_vwap(hlc3, 9, 12)
  57. moneyFlow = moneyFlow(60, 200, 2.25)
  58. rsiMod = ta.sma(ta.stoch(close, high, low, 40), 2)
  59. stcRsiMod = ta.sma(ta.stoch(close, high, low, 81), 2)
  60. [bw1[_offset], bw2[_offset], vwap[_offset], moneyFlow[_offset], rsiMod[_offset], stcRsiMod[_offset]]
  61. tf = useCurrentRes ? timeframe.period : customRes
  62. [bw1, bw2, vwap, moneyFlow, rsiMod, stcRsiMod] = request.security(syminfo.tickerid, tf, cond(not useCurrentRes and barstate.isrealtime ? 1 : 0))
  63. // Plots
  64. plot(bw1, "Lt Blue Wave", #90CAF9, 1, plot.style_area)
  65. plot(bw2, "Blue Wave", color.new(#0C47A1, 10), 1, plot.style_area)
  66. plot(vwap, "VWAP", color.new(color.yellow, 25), 1, plot.style_area)
  67. plot(moneyFlow, "Mny Flow", moneyFlow > 0 ? color.new(#3FFB03, 40) : color.new(#FE1000, 40), 2, plot.style_area)
  68. plotshape(ta.crossover(bw1, bw2) and bw1 < osLevel1, "Buy", shape.circle, location.bottom, #3FFB03, size=size.tiny)
  69. plot(ta.crossover(bw1, bw2) ? bw2 : na, "Blue Wave Crossing UP", color.new(#01E676, 20), 3, plot.style_circles)
  70. plot(ta.crossunder(bw1, bw2) ? bw2 : na, "Blue Wave Crossing Down", color.new(color.red, 20), 3, plot.style_circles)
  71. plot(0, "Zero", color.white)
  72. plot(100, "100%", color.new(color.white, 50), 1, plot.style_circles)
  73. plot(obLevel1, "OB 1 Solid", color.new(color.white, 25), 2)
  74. plot(osLevel1, "OS 1 Solid", color.new(color.white, 25), 2)
  75. plot(trigger1, "Trigger 1", color.new(color.white, 50), 1, plot.style_circles)
  76. plot(trigger2, "Trigger 2", color.new(color.white, 50), 1, plot.style_circles)
  77. plot(rsiMod, "RSI", #E52BE6)
  78. plot(stcRsiMod, "Sto RSI", rsiMod > stcRsiMod ? #3FFB03 : #FE1000, 2)
  79. p0 = plot(-93, "Plot", color.new(color.white, 100))
  80. p1 = plot(-103, "Plot", color.new(color.white, 100))
  81. fill(p0, p1, moneyFlow > 0 ? color.new(#3FFB03, 70) : color.new(#FE1000, 70))
  82. // Alerts
  83. alertcondition(ta.crossover(bw1, bw2), "Blue Wave Crossing Down [Sm. Red Dot]", "Blue Wave Crossing Down")
  84. alertcondition(ta.crossunder(bw1, bw2), "Blue Wave Crossing UP [Sm. Green Dot]", "Blue Wave Crossing UP")
  85. alertcondition(ta.crossover(bw1, bw2) and bw1 < osLevel1, "Green Dot", "Green Dot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement