Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 8888888888 8888888b. 8888888888 8888888888 d8888 888 .d8888b. .d88888b. As you
- // 888 888 Y88b 888 888 d88888 888 d88P Y88b d88P" "Y88b Can see
- // 888 888 888 888 888 d88P888 888 888 888 888 888 Are all
- // 8888888 888 d88P 8888888 8888888 d88P 888 888 888 888 888 .d8888b Basic free
- // 888 8888888P" 888 888 d88P 888 888 888 88888 888 888 88K tradingview
- // 888 888 T88b 888 888 d88P 888 888 888 888 888 888 "Y8888b. indicators
- // 888 888 T88b 888 888 d8888888888 888 Y88b d88P Y88b. .d88P X88 repackaged
- // 888 888 T88b 8888888888 8888888888 d88P 888 88888888 "Y8888P88 "Y88888P" 88888P' into one
- //
- // FAQ
- //
- // Why?
- // I want you to see what you are willing to pay hundereds of dollars a month
- // Has the code been leaked/hacked?
- // No, this code has been created only using common sense and public information from the internet
- // What's the accuracy I can expect from this version of the indicator?
- // I'd say it's about 95% the same as the one you would pay
- // The indicator needs to be updated?
- // Write me a private message on TradingView (Nick42_for_win)
- // Can I suggest an indicator to get a FREE ALGOs version?
- // Write me a private message on TradingView (Nick42_for_win)
- // Do you get any monetary return from this project?
- // Nope, 0$
- // Enjoy ;)
- //@version=5
- indicator("FREE ALGOs [MarketCipher SR]", overlay=true)
- //------------- MarketCipher SR | https://marketciphertrading.com ------------//
- // Get user input
- version = input.string("2.2.0", "Version")
- pivotPeriod = input.int(1, "H/L Pivot Days Back", 1)
- resolution = input.timeframe("15", "Resolution")
- volumeMaLen = input(6, "VolumeMA")
- showVwap = input(true, "VWAP")
- // Functions
- securityNoRep(sym, res, src) => request.security(sym, res, src, barmerge.gaps_off, barmerge.lookahead_on)
- fractal(dir, src) =>
- fractal = 0.0
- fractal := dir ? src[3] : fractal[1]
- // Get components
- pivotHigh = securityNoRep(syminfo.tickerid, "D", ta.highest(high, pivotPeriod))
- pivotLow = securityNoRep(syminfo.tickerid, "D", ta.lowest(low, pivotPeriod))
- centerOfRange = math.avg(pivotHigh, pivotLow)
- volumeMA = ta.sma(volume, volumeMaLen)
- 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)
- 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)
- resistance = securityNoRep(syminfo.tickerid, resolution, fractalUp)
- support = securityNoRep(syminfo.tickerid, resolution, fractalDn)
- vwap = ta.vwap
- // Plots
- plot(pivotHigh, "Pivot High", color.new(#4DA6FF, 20))
- plot(pivotLow, "Pivot Low", color.new(#4DA6FF, 20))
- plot(centerOfRange, "Center of Range", color.new(#4DA6FF, 20), 2, plot.style_circles)
- plot(resistance, "Cipher Resistance", #EB42F4, 2, plot.style_circles, offset=-1)
- plot(support, "Cipher Support", #FFFB03, 2, plot.style_circles, offset=-1)
- plot(showVwap ? vwap : na, "VWAP", #FFFFFF, 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement