//@version=6 indicator("RSI TMA", overlay=true) // Arrows on the main chart (overlay=true) // Input parameters rsiLength = input.int(2, title="RSI Length") rsiPrice = input.source(close, title="RSI Price") halfLength = input.int(2, title="Half Length") devPeriod = input.int(100, title="Deviation Period") deviations = input.float(0.7, title="Deviations") noDellArr = input.bool(false, title="No Delete Arrows") arrOtstup = input.int(0, title="Arrow Offset") arrUpColor = input.color(color.lime, title="Arrow Up Color") arrDnColor = input.color(color.red, title="Arrow Down Color") alertsMessage = input.bool(false, title="Alerts Message") alertsSound = input.bool(false, title="Alerts Sound") alertsEmail = input.bool(false, title="Alerts Email") alertsMobile = input.bool(false, title="Alerts Mobile") signalBar = input.int(0, title="Signal Bar") ...
//@version=5
indicator("MAYFAIR FX SCALPER", overlay=true)
// === INPUTS ===
rsiLength = input.int(14, title="MM Length")
overbought = input.float(73, title="SELL Level")
oversold = input.float(31, title="BUY Level")
rsiSrc = input.source(close, title="MM Source")
// === RSI CALC ===
rsi = ta.rsi(rsiSrc, rsiLength)
buySignal = rsi < oversold
sellSignal = rsi > overbought
//indicator("Author Info Display"
// Create table
var table infoTable = table.new(position.top_right, 2, 6, bgcolor=color.new(#000000, 1), border_width=5)
if barstate.islast
table.cell(infoTable, 0, 0, "Author:", text_color=color.white, text_size=size.small)
table.cell(infoTable, 1, 0, "MR WOW", text_color=color.rgb(255, 251, 0), text_size=size.large)
table.cell(infoTable, 0, 1, "YouTube:", text_color=color.white, text_size=size.small)
table.cell(infoTable, 1, 1, "www.youtube.com/@iammrwow", text_color=color.rgb(255, 251, 0), text_size=size.small)
table.cell(infoTable, 0, 2, "TikTok ID:", text_color=color.white, text_size=size.small)
table.cell(infoTable, 1, 2, "http://www.tiktok.com/@mr.wow33202", text_color=color.rgb(255, 251, 0), text_size=size.small)
table.cell(infoTable, 0, 3, "Website:", text_color=color.white, text_size=size.small)
table.cell(infoTable, 1, 3, "www.mrwowea.com", text_color=color.rgb(255, 251, 0), text_size=size.small)
table.cell(infoTable, 0, 4, "Gmail:", text_color=color.white, text_size=size.small)
table.cell(infoTable, 1, 4, "mrwoweaofficial@gmail.com", text_color=color.rgb(255, 251, 0), text_size=size.small)
// === SIGNAL LABELS ===
plotshape(buySignal, title="BUY",
location=location.belowbar,
color=color.new(#4caf50, 0),
style=shape.triangleup,
text="BUY",
textcolor=color.new(#4caf50, 0))
plotshape(sellSignal, title="SELL",
location=location.abovebar,
color=color.new(#ff5252, 0),
style=shape.triangledown,
text="SELL",
textcolor=color.new(#ff5252, 0))
// === BOLLINGER BAND CLOUD ===
sma = ta.sma(close, 20)
stdev = ta.stdev(close, 20)
bb2_upper = sma + 2 * stdev
bb2_lower = sma - 2 * stdev
bb3_upper = sma + 3 * stdev
bb3_lower = sma - 3 * stdev
bb4_upper = sma + 4 * stdev
bb4_lower = sma - 4 * stdev
p_bb2_upper = plot(bb2_upper, color=na)
p_bb3_upper = plot(bb3_upper, color=na)
p_bb4_upper = plot(bb4_upper, color=na)
p_bb2_lower = plot(bb2_lower, color=na)
p_bb3_lower = plot(bb3_lower, color=na)
p_bb4_lower = plot(bb4_lower, color=na)
fill(p_bb2_upper, p_bb3_upper, color=color.new(#ff5252, 80), title="Upper 1")
fill(p_bb3_upper, p_bb4_upper, color=color.new(#ff5252, 60), title="Upper 2")
fill(p_bb2_lower, p_bb3_lower, color=color.new(#00897b, 80), title="Lower 1")
fill(p_bb3_lower, p_bb4_lower, color=color.new(#00897b, 60), title="Lower 2")
Comments
Post a Comment