Advertisement
Nick42_for_win

FREE ALGOs [MarketCipher SR]

Apr 17th, 2022
3,955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 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 SR]", overlay=true)
  34.  
  35. //------------- MarketCipher SR | https://marketciphertrading.com ------------//
  36. // Get user input
  37. version = input.string("2.2.0", "Version")
  38. pivotPeriod = input.int(1, "H/L Pivot Days Back", 1)
  39. resolution = input.timeframe("15", "Resolution")
  40. volumeMaLen = input(6, "VolumeMA")
  41. showVwap = input(true, "VWAP")
  42. // Functions
  43. securityNoRep(sym, res, src) => request.security(sym, res, src, barmerge.gaps_off, barmerge.lookahead_on)
  44. fractal(dir, src) =>
  45. fractal = 0.0
  46. fractal := dir ? src[3] : fractal[1]
  47. // Get components
  48. pivotHigh = securityNoRep(syminfo.tickerid, "D", ta.highest(high, pivotPeriod))
  49. pivotLow = securityNoRep(syminfo.tickerid, "D", ta.lowest(low, pivotPeriod))
  50. centerOfRange = math.avg(pivotHigh, pivotLow)
  51. volumeMA = ta.sma(volume, volumeMaLen)
  52. up = high[3] > high[4] and high[4] > high[5] and high[2] < high[3] and high[1] < high[2] and volume[3] > volumeMA[3], fractalUp = fractal(up, high)
  53. dn = low[3] < low[4] and low[4] < low[5] and low[2] > low[3] and low[1] > low[2] and volume[3] > volumeMA[3], fractalDn = fractal(dn, low)
  54. resistance = securityNoRep(syminfo.tickerid, resolution, fractalUp)
  55. support = securityNoRep(syminfo.tickerid, resolution, fractalDn)
  56. vwap = ta.vwap
  57. // Plots
  58. plot(pivotHigh, "Pivot High", color.new(#4DA6FF, 20))
  59. plot(pivotLow, "Pivot Low", color.new(#4DA6FF, 20))
  60. plot(centerOfRange, "Center of Range", color.new(#4DA6FF, 20), 2, plot.style_circles)
  61. plot(resistance, "Cipher Resistance", #EB42F4, 2, plot.style_circles, offset=-1)
  62. plot(support, "Cipher Support", #FFFB03, 2, plot.style_circles, offset=-1)
  63. plot(showVwap ? vwap : na, "VWAP", #FFFFFF, 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement