FREE ALGOs [MarketCipher A & B]

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

// 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 A & B]", overlay=false)

//-------------- MarketCipher B | https://marketciphertrading.com ------------//


// Get user input
version = input.string("2.2.6", "Version")
useCurrentRes = input(true, "Use Current Chart Resolution?")
customRes = input.timeframe("60", "Use Current Chart Resolution?")
obLevel1 = input(60, "Over Bought Level 1")
trigger1 = input(53, "Trigger 1")
osLevel1 = input(-60, "Over Sold Level 1")
trigger2 = input(-53, "Trigger 2")
// Functions
blueWaves_vwap(src, chlLen, avgLen) =>
esa = ta.ema(src, chlLen)
d = ta.ema(math.abs(src - esa), chlLen)
ci = (src - esa) / (0.015 * d)
bw1 = ta.ema(ci, avgLen)
bw2 = ta.sma(bw1, 3)
vwap = bw1 - bw2
[bw1, bw2, vwap]
moneyFlow(period, mult, y) => ta.sma(((close - open) / (high - low)) * mult,
period) - y
// Get components
cond(_offset) =>
[bw1, bw2, vwap] = blueWaves_vwap(hlc3, 9, 12)
moneyFlow = moneyFlow(60, 200, 2.25)
rsiMod = ta.sma(ta.stoch(close, high, low, 40), 2)
stcRsiMod = ta.sma(ta.stoch(close, high, low, 81), 2)
[bw1[_offset], bw2[_offset], vwap[_offset], moneyFlow[_offset],
rsiMod[_offset], stcRsiMod[_offset]]
tf = useCurrentRes ? timeframe.period : customRes
[bw1, bw2, vwap, moneyFlow, rsiMod, stcRsiMod] = request.security(syminfo.tickerid,
tf, cond(not useCurrentRes and barstate.isrealtime ? 1 : 0))
// Plots
plot(bw1, "Lt Blue Wave", #90CAF9, 1, plot.style_area)
plot(bw2, "Blue Wave", color.new(#0C47A1, 10), 1, plot.style_area)
plot(vwap, "VWAP", color.new(color.yellow, 25), 1, plot.style_area)
plot(moneyFlow, "Mny Flow", moneyFlow > 0 ? color.new(#3FFB03, 40) :
color.new(#FE1000, 40), 2, plot.style_area)
plotshape(ta.crossover(bw1, bw2) and bw1 < osLevel1, "Buy", shape.circle,
location.belowbar, #3FFB03, size=size.tiny, force_overlay = true)
plotshape(ta.crossover(bw1, bw2) ? bw2 : na, "Blue Wave Crossing UP",
shape.circle, location.belowbar, #3FFB03, size=size.tiny, force_overlay = true)
plot(ta.crossunder(bw1, bw2) ? bw2 : na, "Blue Wave Crossing Down",
color.new(color.red, 20), 3, plot.style_circles)
plot(0, "Zero", color.white)
plot(100, "100%", color.new(color.white, 50), 1, plot.style_circles)
plot(obLevel1, "OB 1 Solid", color.new(color.white, 25), 2)
plot(osLevel1, "OS 1 Solid", color.new(color.white, 25), 2)
plot(trigger1, "Trigger 1", color.new(color.white, 50), 1, plot.style_circles)
plot(trigger2, "Trigger 2", color.new(color.white, 50), 1, plot.style_circles)
plot(rsiMod, "RSI", #E52BE6)
plot(stcRsiMod, "Sto RSI", rsiMod > stcRsiMod ? #3FFB03 : #FE1000, 2)
p0 = plot(-93, "Plot", color.new(color.white, 100))
p10 = plot(-103, "Plot", color.new(color.white, 100))
fill(p0, p10, moneyFlow > 0 ? color.new(#3FFB03, 70) : color.new(#FE1000, 70))
// Alerts
alertcondition(ta.crossover(bw1, bw2), "Blue Wave Crossing Down [Sm. Red Dot]",
"Blue Wave Crossing Down")
alertcondition(ta.crossunder(bw1, bw2), "Blue Wave Crossing UP [Sm. Green Dot]",
"Blue Wave Crossing UP")
alertcondition(ta.crossover(bw1, bw2) and bw1 < osLevel1, "Green Dot", "Green Dot")

// Get user input


//version = input.string("2.1.2", "Version")
pivotPeriod = input.int(1, "H/L Pivot Days Back", 1)
showPivotHigh = input(false, "Show Pivot High")
showPivotLow = input(false, "Show Pivot Low")
showRibbon1 = input(true, "Show Ribbon 1")
showRibbon2 = input(true, "Show Ribbon 2")
showRibbon3 = input(true, "Show Ribbon 3")
showRibbon4 = input(true, "Show Ribbon 4")
showRibbon5 = input(true, "Show Ribbon 5")
showRibbon6 = input(true, "Show Ribbon 6")
showRibbon7 = input(true, "Show Ribbon 7")
showRibbon8 = input(true, "Show Ribbon 8")
showRibbon9 = input(false, "Show Ribbon 9")
ribbon9Len = input(21, "Ribbon9")
// Functions

// Get components
pivotHigh = request.security(syminfo.tickerid, "D", ta.highest(high, pivotPeriod),
barmerge.gaps_off, barmerge.lookahead_on)
pivotLow = request.security(syminfo.tickerid, "D", ta.lowest(low, pivotPeriod),
barmerge.gaps_off, barmerge.lookahead_on)
ema1 = ta.ema(close, 5)
ema2 = ta.ema(close, 11)
ema3 = ta.ema(close, 15)
ema4 = ta.ema(close, 18)
ema5 = ta.ema(close, 21)
ema6 = ta.ema(close, 25)
ema7 = ta.ema(close, 29)
ema8 = ta.ema(close, 33)
sma9 = ta.sma(close, ribbon9Len)

// Signals
yellowDiamond = math.max(open, close) > ema1 and ema1 > ema2 and ema1 > ema8 and
vwap > 0
blueTriangle = ta.crossover(ema1, ema6) and vwap > 0 and (bw1 > - 15 or bw2 > -25)
and stcRsiMod < 80 and not ta.crossover(ema2, ema8)
greenDot = ta.crossover(ema2, ema8) and yellowDiamond
redX = ta.crossunder(ema1, ema2)
redDiamond = ta.crossunder(bw1, bw2)
yellowX = redDiamond and bw1 < -40 and stcRsiMod < 20
bloodDiamond = redX and redDiamond
// Plots
plot(showPivotHigh ? pivotHigh : na, "Pivot High", color.new(#4DA6FF, 20),
force_overlay = true)
plot(showPivotLow ? pivotLow : na, "Pivot Low", color.new(#4DA6FF, 20),
force_overlay = true)
p1 = plot(showRibbon1 ? ema1 : na, "Ribbon 1", ema1 < ema8 ? #FF0100 : #0166CC, 2,
force_overlay = true)
p2 = plot(showRibbon2 ? ema2 : na, "Ribbon 2", ema2 < ema8 ? #FF0100 : #198CFF, 2,
force_overlay = true)
p3 = plot(showRibbon3 ? ema3 : na, "Ribbon 3", ema3 < ema8 ? #FF0100 : #4DA6FF, 2,
force_overlay = true)
p4 = plot(showRibbon4 ? ema4 : na, "Ribbon 4", ema4 < ema8 ? #FF0100 : #80BFFF, 2,
force_overlay = true)
p5 = plot(showRibbon5 ? ema5 : na, "Ribbon 5", ema5 < ema8 ? #FF0100 : #99CCFF, 2,
force_overlay = true)
p6 = plot(showRibbon6 ? ema6 : na, "Ribbon 6", ema6 < ema8 ? #FF0100 : #B4D9FF, 2,
force_overlay = true)
p7 = plot(showRibbon7 ? ema7 : na, "Ribbon 7", ema7 < ema8 ? #FF0100 : #CCE6FF, 2,
force_overlay = true)
p8 = plot(showRibbon8 ? ema8 : na, "Ribbon 8", ema8 > ema7 ? #FF0100 : #E6F2FF, 2,
force_overlay = true)
p9 = plot(showRibbon9 ? sma9 : na, "Ribbon 9", #FFFB03, 2, force_overlay = true)
plotshape(yellowDiamond, "Yellow Diamond", shape.diamond, location.belowbar,
color.new(#FFFB03, 70), size=size.tiny, force_overlay = true)
plotshape(blueTriangle, "Blue Triangle", shape.triangleup, location.belowbar,
#4259F4, size=size.small, force_overlay = true)
plotshape(greenDot, "Green Dot", shape.circle, location.belowbar, #03FC04,
size=size.tiny, force_overlay = true)
plotshape(redX, "Red X", shape.xcross, location.abovebar, #FF0100, size=size.tiny,
force_overlay = true)
plotshape(yellowX, "Yellow X", shape.xcross, location.abovebar, #FFFB03,
size=size.small, force_overlay = true)
plotshape(redDiamond, "Red Diamond", shape.diamond, location.abovebar,
color.new(#FF0100, 45), size=size.tiny, force_overlay = true)
plotshape(bloodDiamond, "Blood Diamond", shape.diamond, location.abovebar, #FF0100,
size=size.small, force_overlay = true)
fill(p2, p8, color.new(#B4D9FF, 90))
fill(p1, p2, color.new(#80B3FF, 85))
// Alerts
alertcondition(bloodDiamond, "Blood Diamond", "WARNING, Blood Diamond")
alertcondition(blueTriangle, "Blue Triangle", "WARNING, Blue Triangle")
alertcondition(greenDot, "Green Dot", "WARNING, Green Dot")
alertcondition(redDiamond, "Red Diamond", "WARNING, Red Diamond")
alertcondition(redX, "Red X", "WARNING, Red X")
alertcondition(yellowX, "Yellow X", "WARNING, Yellow X")

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy