Super Billion VVIPThis Pine Script code is an advanced script designed for TradingView. It integrates supply and demand zones, price action labels, zigzag lines, and a modified ATR-based SuperTrend indicator. Here's a breakdown of its key components:
Key Features
Supply and Demand Zones:
Automatically identifies and plots supply (resistance) and demand (support) zones using swing highs and lows.
Zones are extended dynamically and updated based on market movements.
Prevents overlapping zones by ensuring a minimum ATR-based buffer.
Zigzag Indicator:
Adds zigzag lines to connect significant swing highs and lows.
Helps identify market trends and potential turning points.
SuperTrend Indicator:
A trend-following component using ATR (Average True Range) with configurable periods and multipliers.
Provides buy and sell signals based on trend changes.
Includes alerts for trend direction changes.
Swing High/Low Labels:
Labels significant price action points as "HH" (Higher High), "LL" (Lower Low), etc., for easy visual reference.
Customizable Visuals:
Allows users to customize colors, label visibility, box widths, and more through inputs.
Alerts:
Generates alerts for buy/sell signals and trend direction changes.
Inputs and Settings
Supply and Demand Settings:
Swing length, zone width, and history size.
Visual Settings:
Toggle zigzag visibility, label colors, and highlight styles.
SuperTrend Settings:
ATR periods, multiplier, and signal visibility.
How to Use
Copy the script into the Pine Editor on TradingView.
Customize the input settings as per your trading strategy.
Add the script to your chart to visualize zones, trends, and signals.
Set alerts for buy/sell signals or trend changes.
Notes
Ensure the script complies with TradingView’s limitations (e.g., max objects).
Fine-tune settings based on the asset's volatility and timeframe.
Let me know if you need help optimizing or further explaining specific parts!
빌 윌리엄스 인디케이터
5분봉 레버리지 20배 자동매매 전략 (최종)//@version=5
indicator("5분봉 레버리지 20배 자동매매 전략 (최종)", overlay=true)
// === PARAMETERS ===
// RSI
rsiPeriod = input.int(14, title="RSI Period", minval=1)
overbought = input.float(70.0, title="RSI Overbought Level", step=0.1)
oversold = input.float(30.0, title="RSI Oversold Level", step=0.1)
// 이동평균선
smaShort = input.int(50, title="Short SMA Length", minval=1)
smaLong = input.int(200, title="Long SMA Length", minval=1)
// 리스크 관리
takeProfit = input.float(3.0, title="Take Profit %", step=0.1)
stopLoss = input.float(1.0, title="Stop Loss %", step=0.1)
// === INDICATORS ===
// RSI
rsiValue = ta.rsi(close, rsiPeriod)
// 이동평균선
smaShortValue = ta.sma(close, smaShort)
smaLongValue = ta.sma(close, smaLong)
// MACD
= ta.macd(close, 12, 26, 9)
// 볼린저 밴드
= ta.bb(close, 20, 2)
// 프랙탈
bullishFractal = ta.pivotlow(low, 2, 2) // 하락 프랙탈
bearishFractal = ta.pivothigh(high, 2, 2) // 상승 프랙탈
// 엘리어트 파동 (간단한 패턴 분석)
wave1 = (rsiValue < oversold) and (smaShortValue > smaLongValue) and (macdLine > signalLine)
wave3 = (rsiValue > oversold) and (macdLine > signalLine) and (close > upperBB)
wave5 = (rsiValue > 70) and (macdLine < signalLine) and (close > smaLongValue)
waveA = (rsiValue > overbought) and (macdLine < signalLine) and (close < smaShortValue)
waveC = (rsiValue < 30) and (macdLine > signalLine) and (close < lowerBB)
// === LONG ENTRY CONDITION ===
longCondition = (rsiValue < oversold) and (smaShortValue > smaLongValue) and (macdLine > signalLine) and (close <= lowerBB) and not na(bullishFractal) and (wave1 or wave5)
// === SHORT ENTRY CONDITION ===
shortCondition = (rsiValue > overbought) and (smaShortValue < smaLongValue) and (macdLine < signalLine) and (close >= upperBB) and not na(bearishFractal) and (waveA or waveC)
// === ALERTS ===
if (longCondition)
alert("LONG_SIGNAL", alert.freq_once_per_bar)
if (shortCondition)
alert("SHORT_SIGNAL", alert.freq_once_per_bar)
// === VISUAL INDICATORS ===
// 이동평균선
plot(smaShortValue, title="SMA 50", color=color.blue)
plot(smaLongValue, title="SMA 200", color=color.red)
// 볼린저 밴드
plot(upperBB, title="Upper BB", color=color.green)
plot(lowerBB, title="Lower BB", color=color.red)
// RSI 레벨
hline(overbought, "RSI Overbought", color=color.red)
hline(oversold, "RSI Oversold", color=color.green)
plot(rsiValue, title="RSI", color=color.purple)
// 프랙탈 표시
plotshape(not na(bullishFractal), title="Bullish Fractal", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="Bull")
plotshape(not na(bearishFractal), title="Bearish Fractal", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="Bear")
// ENTRY POINT 표시
var float lastLongEntry = na
var float lastShortEntry = na
if (longCondition)
lastLongEntry := close
if (shortCondition)
lastShortEntry := close
plotshape(not na(lastLongEntry), title="Long Entry Point", style=shape.labelup, location=location.belowbar, color=color.green, text="LONG")
plotshape(not na(lastShortEntry), title="Short Entry Point", style=shape.labeldown, location=location.abovebar, color=color.red, text="SHORT")
Support & Resistance + Range Filter + Volume Profile//@version=5
indicator("Support & Resistance + Range Filter + Volume Profile ", overlay=true, max_boxes_count=500, max_lines_count=500, max_bars_back=5000)
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙐𝙎𝙀𝙍 𝙄𝙉𝙋𝙐𝙉𝙏𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// Support and Resistance Inputs
int lookbackPeriod = input.int(20, "Lookback Period", minval=1, group="Support & Resistance")
int vol_len = input.int(2, "Delta Volume Filter Length", tooltip="Higher input, will filter low volume boxes", group="Support & Resistance")
float box_width = input.float(1, "Adjust Box Width", maxval=1000, minval=0, step=0.1, group="Support & Resistance")
// Range Filter Inputs
src = input(close, title="Source", group="Range Filter")
per = input.int(100, minval=1, title="Sampling Period", group="Range Filter")
mult = input.float(3.0, minval=0.1, title="Range Multiplier", group="Range Filter")
// Range Filter Colors
upColor = input.color(color.white, "Up Color", group="Range Filter")
midColor = input.color(#90bff9, "Mid Color", group="Range Filter")
downColor = input.color(color.blue, "Down Color", group="Range Filter")
// Volume Profile Inputs
vpGR = 'Volume & Sentiment Profile'
vpSH = input.bool(true, 'Volume Profile', group=vpGR)
vpUC = input.color(color.new(#5d606b, 50), ' Up Volume ', inline='VP', group=vpGR)
vpDC = input.color(color.new(#d1d4dc, 50), 'Down Volume ', inline='VP', group=vpGR)
vaUC = input.color(color.new(#2962ff, 30), ' Value Area Up', inline='VA', group=vpGR)
vaDC = input.color(color.new(#fbc02d, 30), 'Value Area Down', inline='VA', group=vpGR)
spSH = input.bool(true, 'Sentiment Profile', group=vpGR)
spUC = input.color(color.new(#26a69a, 30), ' Bullish', inline='BB', group=vpGR)
spDC = input.color(color.new(#ef5350, 30), 'Bearish', inline='BB', group=vpGR)
sdSH = input.bool(true, 'Supply & Demand Zones', group=vpGR)
sdTH = input.int(15, ' Supply & Demand Threshold %', minval=0, maxval=41, group=vpGR) / 100
sdSC = input.color(color.new(#ec1313, 80), ' Supply Zones', inline='SD', group=vpGR)
sdDC = input.color(color.new(#0094FF, 80), 'Demand Zones', inline='SD', group=vpGR)
pcSH = input.string('Developing POC', 'Point of Control', options= , inline='POC', group=vpGR)
pocC = input.color(#f44336, '', inline='POC', group=vpGR)
pocW = input.int(2, '', minval=1, inline='POC', group=vpGR)
vpVA = input.float(68, 'Value Area (%)', minval=0, maxval=100, group=vpGR) / 100
vahS = input.bool(true, 'Value Area High (VAH)', inline='VAH', group=vpGR)
vahC = input.color(#2962ff, '', inline='VAH', group=vpGR)
vahW = input.int(1, '', minval=1, inline='VAH', group=vpGR)
vlSH = input.bool(true, 'Value Area Low (VAL)', inline='VAL', group=vpGR)
valC = input.color(#2962ff, '', inline='VAL', group=vpGR)
valW = input.int(1, '', minval=1, inline='VAL', group=vpGR)
vpPT = input.string('Bar Polarity', 'Profile Polarity Method', options= , group=vpGR)
vpLR = input.string('Fixed Range', 'Profile Lookback Range', options= , group=vpGR)
vpLN = input.int(360, 'Lookback Length / Fixed Range', minval=10, maxval=5000, step=10, group=vpGR)
vpST = input.bool(true, 'Profile Stats', inline='STT', group=vpGR)
ppLS = input.string('Small', "", options= , inline='STT', group=vpGR)
lcDB = input.string('Top Right', '', options= , inline='STT', group=vpGR)
vpLV = input.bool(true, 'Profile Price Levels', inline='BBe', group=vpGR)
rpLS = input.string('Small', "", options= , inline='BBe', group=vpGR)
vpPL = input.string('Right', 'Profile Placement', options= , group=vpGR)
vpNR = input.int(100, 'Profile Number of Rows', minval=10, maxval=150, step=10, group=vpGR)
vpWD = input.float(31, 'Profile Width', minval=0, maxval=250, group=vpGR) / 100
vpHO = input.int(13, 'Profile Horizontal Offset', maxval=50, group=vpGR)
vaBG = input.bool(false, 'Value Area Background ', inline='vBG', group=vpGR)
vBGC = input.color(color.new(#2962ff, 89), '', inline='vBG', group=vpGR)
vpBG = input.bool(false, 'Profile Range Background ', inline='pBG', group=vpGR)
bgC = input.color(color.new(#2962ff, 95), '', inline='pBG', group=vpGR)
vhGR = 'Volume Histogram'
vhSH = input.bool(true, 'Volume Histogram', group=vhGR)
vmaS = input.bool(true, 'Volume MA, Length', inline='vol2', group=vhGR)
vmaL = input.int(21, '', minval=1, inline='vol2', group=vhGR)
vhUC = input.color(color.new(#26a69a, 30), ' Growing', inline='vol1', group=vhGR)
vhDC = input.color(color.new(#ef5350, 30), 'Falling', inline='vol1', group=vhGR)
vmaC = input.color(color.new(#2962ff, 0), 'Volume MA', inline='vol1', group=vhGR)
vhPL = input.string('Top', ' Placement', options= , group=vhGR)
vhHT = 11 - input.int(8, ' Hight', minval=1, maxval=10, group=vhGR)
vhVO = input.int(1, ' Vertical Offset', minval=0, maxval=20, group=vhGR) / 20
cbGR = 'Volume Weighted Colored Bars'
vwcb = input.bool(false, 'Volume Weighted Colored Bars', group=cbGR)
upTH = input.float(1.618, ' Upper Threshold', minval=1., step=.1, group=cbGR)
dnTH = input.float(0.618, ' Lower Threshold', minval=.1, step=.1, group=cbGR)
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙎𝙐𝙋𝙋𝙊𝙍𝙏 𝘼𝙉𝘿 𝙍𝙀𝙎𝙄𝙎𝙏𝘼𝙉𝘾𝙀 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// Delta Volume Function
upAndDownVolume() =>
posVol = 0.0
negVol = 0.0
var isBuyVolume = true
switch
close > open => isBuyVolume := true
close < open => isBuyVolume := false
if isBuyVolume
posVol += volume
else
negVol -= volume
posVol + negVol
// Function to identify support and resistance boxes
calcSupportResistance(src, lookbackPeriod) =>
Vol = upAndDownVolume()
vol_hi = ta.highest(Vol/2.5, vol_len)
vol_lo = ta.lowest(Vol/2.5, vol_len)
var float supportLevel = na
var float resistanceLevel = na
var box sup = na
var box res = na
var color res_color = na
var color sup_color = na
// Find pivot points
pivotHigh = ta.pivothigh(src, lookbackPeriod, lookbackPeriod)
pivotLow = ta.pivotlow (src, lookbackPeriod, lookbackPeriod)
atr = ta.atr(200)
withd = atr * box_width
// Find support levels with Positive Volume
if (not na(pivotLow)) and Vol > vol_hi
supportLevel := pivotLow
topLeft = chart.point.from_index(bar_index-lookbackPeriod, supportLevel)
bottomRight = chart.point.from_index(bar_index, supportLevel-withd)
sup_color := color.from_gradient(Vol, 0, ta.highest(Vol, 25), color(na), color.new(color.green, 30))
sup := box.new(topLeft, bottomRight, border_color=color.green, border_width=1, bgcolor=sup_color, text="Vol: "+str.tostring(math.round(Vol,2)), text_color=chart.fg_color, text_size=size.small)
// Find resistance levels with Negative Volume
if (not na(pivotHigh)) and Vol < vol_lo
resistanceLevel := pivotHigh
topLeft = chart.point.from_index(bar_index-lookbackPeriod, resistanceLevel)
bottomRight = chart.point.from_index(bar_index, resistanceLevel+withd)
res_color := color.from_gradient(Vol, ta.lowest(Vol, 25), 0, color.new(color.red, 30), color(na))
res := box.new(topLeft, bottomRight, border_color=color.red, border_width=1, bgcolor=res_color, text="Vol: "+str.tostring(math.round(Vol,2)), text_color=chart.fg_color, text_size=size.small)
= calcSupportResistance(close, lookbackPeriod)
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙍𝘼𝙉𝙂𝙀 𝙁𝙄𝙇𝙏𝙀𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// Smooth Average Range
smoothrng(x, t, m) =>
wper = t * 2 - 1
avrng = ta.ema(math.abs(x - x ), t)
smoothrng = ta.ema(avrng, wper) * m
smoothrng
smrng = smoothrng(src, per, mult)
// Range Filter
rngfilt(x, r) =>
rngfilt = x
rngfilt := x > nz(rngfilt ) ? x - r < nz(rngfilt ) ? nz(rngfilt ) : x - r :
x + r > nz(rngfilt ) ? nz(rngfilt ) : x + r
rngfilt
filt = rngfilt(src, smrng)
// Filter Direction
upward = 0.0
upward := filt > filt ? nz(upward ) + 1 : filt < filt ? 0 : nz(upward )
downward = 0.0
downward := filt < filt ? nz(downward ) + 1 : filt > filt ? 0 : nz(downward )
// Target Bands
hband = filt + smrng
lband = filt - smrng
// Colors
filtcolor = upward > 0 ? upColor : downward > 0 ? downColor : midColor
barcolor = src > filt and src > src and upward > 0 ? upColor :
src > filt and src < src and upward > 0 ? upColor :
src < filt and src < src and downward > 0 ? downColor :
src < filt and src > src and downward > 0 ? downColor : midColor
filtplot = plot(filt, color=filtcolor, linewidth=2, title="Range Filter")
hbandplot = plot(hband, color=color.new(upColor, 70), title="High Target")
lbandplot = plot(lband, color=color.new(downColor, 70), title="Low Target")
// Fills
fill(hbandplot, filtplot, color=color.new(upColor, 90), title="High Target Range")
fill(lbandplot, filtplot, color=color.new(downColor, 90), title="Low Target Range")
// Break Outs
longCond = bool(na)
shortCond = bool(na)
longCond := src > filt and src > src and upward > 0 or
src > filt and src < src and upward > 0
shortCond := src < filt and src < src and downward > 0 or
src < filt and src > src and downward > 0
CondIni = 0
CondIni := longCond ? 1 : shortCond ? -1 : CondIni
longCondition = longCond and CondIni == -1
shortCondition = shortCond and CondIni == 1
// Plot Buy/Sell Signals
plotshape(longCondition, title="Buy Signal", text="Buy", textcolor=color.white, style=shape.labelup, size=size.small, location=location.belowbar, color=color.new(#aaaaaa, 20))
plotshape(shortCondition, title="Sell Signal", text="Sell", textcolor=color.white, style=shape.labeldown, size=size.small, location=location.abovebar, color=color.new(downColor, 20))
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙑𝙊𝙇𝙐𝙈𝙀 𝙋𝙍𝙊𝙁𝙄𝙇𝙀 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// (Include the Volume Profile calculations and visualizations from the original script here)
// ...
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙑𝙄𝙎𝙐𝘼𝙇𝙄𝙕𝘼𝙏𝙄𝙊𝙉
// ---------------------------------------------------------------------------------------------------------------------{
// (Include the visualization logic from the Volume Profile script here)
// ...
// ---------------------------------------------------------------------------------------------------------------------}
// 𝘼𝙇𝙀𝙍𝙏𝙎
// ---------------------------------------------------------------------------------------------------------------------{
// (Include the alert conditions from the Volume Profile script here)
// ...
// ---------------------------------------------------------------------------------------------------------------------}
Volume-Based RSI Color Indicator with MAsThis is not a typical RSI indicator; it is a unique variation that integrates volume analysis and moving averages (MAs) for the RSI. Here's how it stands out:
Volume-Based Color Coding: The RSI line changes color based on it's level
(overbought/oversold) and volume conditions. For example:
Red: RSI is overbought, and volume is significantly higher than average.
Green: RSI is oversold, and volume is significantly higher than average.
Blue: Default color for other scenarios.
RSI Moving Averages: it includes long-period (200) and short-period (20) moving averages of
the RSI, calculated using SMA or EMA, based on user preference. this adds a trend-
following component to the RSI analysis.
Customization Options: The script allows users to adjust parameters like RSI length,
overbought/oversold levels, high-volume multiplier, and MA type lengths.
These enhancements make the indicator more dynamic and tailored for traders looking to incorporate both momentum and volume trends into their strategy.
Custom OHLC Levelshgjfkjfhkhjkg hklgujk,ghkghk,l,l;g,hgikghulhujlguilgiulllgyuklhvkgyuhkuhkyukyukygukygukyukygukygukyugkyukyukyukyukyukuykyuk
Custom Awesome OscillatorIndicator based on Awesome Oscillator. Histogram turns green on RSI overbought conditions and red on oversold conditions. Background is set against Bollinger Bands expansion and contraction. Perhaps it would be better to uncheck the RSI setting.
5분봉 레버리지 20배 자동매매 전략 (최종)//@version=5
indicator("5분봉 레버리지 20배 자동매매 전략 (최종)", overlay=true)
// === PARAMETERS ===
// RSI
rsiPeriod = input.int(14, title="RSI Period", minval=1)
overbought = input.float(70.0, title="RSI Overbought Level", step=0.1)
oversold = input.float(30.0, title="RSI Oversold Level", step=0.1)
// 이동평균선
smaShort = input.int(50, title="Short SMA Length", minval=1)
smaLong = input.int(200, title="Long SMA Length", minval=1)
// 리스크 관리
takeProfit = input.float(3.0, title="Take Profit %", step=0.1)
stopLoss = input.float(1.0, title="Stop Loss %", step=0.1)
// === INDICATORS ===
// RSI
rsiValue = ta.rsi(close, rsiPeriod)
// 이동평균선
smaShortValue = ta.sma(close, smaShort)
smaLongValue = ta.sma(close, smaLong)
// MACD
= ta.macd(close, 12, 26, 9)
// 볼린저 밴드
= ta.bb(close, 20, 2)
// 프랙탈
bullishFractal = ta.pivotlow(low, 2, 2) // 하락 프랙탈
bearishFractal = ta.pivothigh(high, 2, 2) // 상승 프랙탈
// 엘리어트 파동 (간단한 패턴 분석)
wave1 = (rsiValue < oversold) and (smaShortValue > smaLongValue) and (macdLine > signalLine)
wave3 = (rsiValue > oversold) and (macdLine > signalLine) and (close > upperBB)
wave5 = (rsiValue > 70) and (macdLine < signalLine) and (close > smaLongValue)
waveA = (rsiValue > overbought) and (macdLine < signalLine) and (close < smaShortValue)
waveC = (rsiValue < 30) and (macdLine > signalLine) and (close < lowerBB)
// === LONG ENTRY CONDITION ===
longCondition = (rsiValue < oversold) and (smaShortValue > smaLongValue) and (macdLine > signalLine) and (close <= lowerBB) and not na(bullishFractal) and (wave1 or wave5)
// === SHORT ENTRY CONDITION ===
shortCondition = (rsiValue > overbought) and (smaShortValue < smaLongValue) and (macdLine < signalLine) and (close >= upperBB) and not na(bearishFractal) and (waveA or waveC)
// === ALERTS ===
if (longCondition)
alert("LONG_SIGNAL", alert.freq_once_per_bar)
if (shortCondition)
alert("SHORT_SIGNAL", alert.freq_once_per_bar)
// === VISUAL INDICATORS ===
// 이동평균선
plot(smaShortValue, title="SMA 50", color=color.blue)
plot(smaLongValue, title="SMA 200", color=color.red)
// 볼린저 밴드
plot(upperBB, title="Upper BB", color=color.green)
plot(lowerBB, title="Lower BB", color=color.red)
// RSI 레벨
hline(overbought, "RSI Overbought", color=color.red)
hline(oversold, "RSI Oversold", color=color.green)
plot(rsiValue, title="RSI", color=color.purple)
// 프랙탈 표시
plotshape(not na(bullishFractal), title="Bullish Fractal", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="Bull")
plotshape(not na(bearishFractal), title="Bearish Fractal", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="Bear")
// ENTRY POINT 표시
var float lastLongEntry = na
var float lastShortEntry = na
if (longCondition)
lastLongEntry := close
if (shortCondition)
lastShortEntry := close
plotshape(not na(lastLongEntry), title="Long Entry Point", style=shape.labelup, location=location.belowbar, color=color.green, text="LONG")
plotshape(not na(lastShortEntry), title="Short Entry Point", style=shape.labeldown, location=location.abovebar, color=color.red, text="SHORT")
Estratégia EMA20 e RSI//@version=5
indicator(title="Estratégia EMA20 e RSI", shorttitle="EMA20+RSI", overlay=true)
// Configurações da EMA
emaLength = input.int(20, title="Comprimento da EMA")
emaSource = input.source(close, title="Fonte da EMA")
emaValue = ta.ema(emaSource, emaLength)
// Configurações do RSI
rsiLength = input.int(14, title="Comprimento do RSI")
rsiOverbought = input.int(70, title="Nível de Sobrecompra do RSI", minval=50, maxval=100)
rsiOversold = input.int(30, title="Nível de Sobrevenda do RSI", minval=0, maxval=50)
rsiValue = ta.rsi(close, rsiLength)
// Plotagem da EMA
plot(emaValue, color=color.blue, title="EMA20", linewidth=2)
// Condições de entrada
longCondition = ta.crossover(close, emaValue) and rsiValue < rsiOversold
shortCondition = ta.crossunder(close, emaValue) and rsiValue > rsiOverbought
// Plotagem das setas de entrada
plotshape(series=longCondition, title="Sinal de Compra", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(series=shortCondition, title="Sinal de Venda", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
// Alertas
if longCondition
alert("Sinal de compra detectado! Fechamento acima da EMA20 e RSI em sobrevenda.", alert.freq_once_per_bar_close)
if shortCondition
alert("Sinal de venda detectado! Fechamento abaixo da EMA20 e RSI em sobrecompra.", alert.freq_once_per_bar_close)
EMA & RSI Buy/Sell Signalsbuy and sell signal for ema and rsi signals. has buy and sell signals for the perfect trade.
Realtime Trend Detection powered by MESACC John Ehlers.
The man, the myth, the legend.
Realtime trend detection, tripple crossed
Breakfree Trading | MAW 1.0.1-rc publicGG fuckers, now we win.
here is full code for the matrix glitch allowing predictive data of financial markets.
5분봉 레버리지 20배 자동매매 전략 (최종)//@version=5
indicator("5분봉 레버리지 20배 자동매매 전략 (최종)", overlay=true)
// === PARAMETERS ===
// RSI
rsiPeriod = input.int(14, title="RSI Period", minval=1)
overbought = input.float(70.0, title="RSI Overbought Level", step=0.1)
oversold = input.float(30.0, title="RSI Oversold Level", step=0.1)
// 이동평균선
smaShort = input.int(50, title="Short SMA Length", minval=1)
smaLong = input.int(200, title="Long SMA Length", minval=1)
// 리스크 관리
takeProfit = input.float(3.0, title="Take Profit %", step=0.1)
stopLoss = input.float(1.0, title="Stop Loss %", step=0.1)
// === INDICATORS ===
// RSI
rsiValue = ta.rsi(close, rsiPeriod)
// 이동평균선
smaShortValue = ta.sma(close, smaShort)
smaLongValue = ta.sma(close, smaLong)
// MACD
= ta.macd(close, 12, 26, 9)
// 볼린저 밴드
= ta.bb(close, 20, 2)
// 프랙탈
bullishFractal = ta.pivotlow(low, 2, 2) // 하락 프랙탈
bearishFractal = ta.pivothigh(high, 2, 2) // 상승 프랙탈
// 엘리어트 파동 (간단한 패턴 분석)
wave1 = (rsiValue < oversold) and (smaShortValue > smaLongValue) and (macdLine > signalLine)
wave3 = (rsiValue > oversold) and (macdLine > signalLine) and (close > upperBB)
wave5 = (rsiValue > 70) and (macdLine < signalLine) and (close > smaLongValue)
waveA = (rsiValue > overbought) and (macdLine < signalLine) and (close < smaShortValue)
waveC = (rsiValue < 30) and (macdLine > signalLine) and (close < lowerBB)
// === LONG ENTRY CONDITION ===
longCondition = (rsiValue < oversold) and (smaShortValue > smaLongValue) and (macdLine > signalLine) and (close <= lowerBB) and not na(bullishFractal) and (wave1 or wave5)
// === SHORT ENTRY CONDITION ===
shortCondition = (rsiValue > overbought) and (smaShortValue < smaLongValue) and (macdLine < signalLine) and (close >= upperBB) and not na(bearishFractal) and (waveA or waveC)
// === ALERTS ===
if (longCondition)
alert("LONG_SIGNAL", alert.freq_once_per_bar)
if (shortCondition)
alert("SHORT_SIGNAL", alert.freq_once_per_bar)
// === VISUAL INDICATORS ===
// 이동평균선
plot(smaShortValue, title="SMA 50", color=color.blue)
plot(smaLongValue, title="SMA 200", color=color.red)
// 볼린저 밴드
plot(upperBB, title="Upper BB", color=color.green)
plot(lowerBB, title="Lower BB", color=color.red)
// RSI 레벨
hline(overbought, "RSI Overbought", color=color.red)
hline(oversold, "RSI Oversold", color=color.green)
plot(rsiValue, title="RSI", color=color.purple)
// 프랙탈 표시
plotshape(not na(bullishFractal), title="Bullish Fractal", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="Bull")
plotshape(not na(bearishFractal), title="Bearish Fractal", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="Bear")
// ENTRY POINT 표시
var float lastLongEntry = na
var float lastShortEntry = na
if (longCondition)
lastLongEntry := close
if (shortCondition)
lastShortEntry := close
plotshape(not na(lastLongEntry), title="Long Entry Point", style=shape.labelup, location=location.belowbar, color=color.green, text="LONG")
plotshape(not na(lastShortEntry), title="Short Entry Point", style=shape.labeldown, location=location.abovebar, color=color.red, text="SHORT")
Nadaraya-Watson Price High Cross AlertNadaraya-Watson Price High Cross Alert Nadaraya-Watson Price High Cross Alert Nadaraya-Watson Price High Cross Alert
Drawdown from 22-Day High (Daily Anchored)This Pine Script indicator, titled "Drawdown from 22-Day High (Daily Anchored)," is designed to plot various drawdown levels from the highest high over the past 22 days. This helps traders visualize the performance and potential risk of the security in terms of its recent high points.
Key Features:
Daily High Data:
Fetches daily high prices using the request.security function with a daily timeframe.
Highest High Calculation:
Calculates the highest high over the last 22 days using daily data. This represents the highest price the security has reached in this period.
Drawdown Levels:
Computes various drawdown levels from the highest high:
2% Drawdown
5% Drawdown
10% Drawdown
15% Drawdown
25% Drawdown
45% Drawdown
50% Drawdown
Dynamic Line Coloring:
The color of the 2% drawdown line changes dynamically based on the current closing price:
Green (#02ff0b) if the close is above the 2% drawdown level.
Red (#ff0000) if the close is below the 2% drawdown level.
Plotting Drawdown Levels:
Plots each drawdown level on the chart with specific colors and line widths for easy visual distinction:
2% Drawdown: Green or Red, depending on the closing price.
5% Drawdown: Orange.
10% Drawdown: Blue.
15% Drawdown: Maroon.
25% Drawdown: Purple.
45% Drawdown: Yellow.
50% Drawdown: Black.
Labels for Drawdown Levels:
Adds labels at the end of each drawdown line to indicate the percentage drawdown:
Labels display "2% WVF," "5% WVF," "10% WVF," "15% WVF," "25% WVF," "45% WVF," and "50% WVF" respectively.
The labels are positioned dynamically at the latest bar index to ensure they are always visible.
Explanation of Williams VIX Fix (WVF)
The Williams VIX Fix (WVF) is a volatility indicator designed to replicate the behavior of the VIX (Volatility Index) using price data instead of options prices. It helps traders identify market bottoms and volatility spikes.
Key Aspects of WVF:
Calculation:
The WVF measures the highest high over a specified period (typically 22 days) and compares it to the current closing price.
It is calculated as:
WVF
=
highest high over period
−
current close
highest high over period
×
100
This formula provides a percentage measure of how far the price has fallen from its recent high.
Interpretation:
High WVF Values: Indicate increased volatility and potential market bottoms, suggesting oversold conditions.
Low WVF Values: Suggest lower volatility and potentially overbought conditions.
Usage:
WVF can be used in conjunction with other indicators (e.g., moving averages, RSI) to confirm signals.
It is particularly useful for identifying periods of significant price declines and potential reversals.
In the script, the WVF concept is incorporated into the drawdown levels, providing a visual representation of how far the price has fallen from its 22-day high.
Example Use Cases:
Risk Management: Quickly identify significant drawdown levels to assess the risk of current positions.
Volatility Monitoring: Use the WVF-based drawdown levels to gauge market volatility.
Support Levels: Utilize drawdown levels as potential support levels where price might find buying interest.
This script offers traders and analysts an efficient way to visualize and track important drawdown levels from recent highs, helping in better risk management and decision-making. The dynamic color and label features enhance the readability and usability of the indicator.
Vektor-Kerzen//@version=5
indicator("Vektor-Kerzen", overlay=true)
// Berechnung der Vektorkerzen
openVektor = (open + close) / 2
closeVektor = (high + low) / 2
// Farbe für die Kerzen
col = closeVektor > openVektor ? color.green : color.red
// Vektorkerzen zeichnen
plotcandle(openVektor, high, low, closeVektor, color=col, wickcolor=color.gray, bordercolor=col)
Vektor-Kerzen//@version=5
indicator("Vektor-Kerzen", overlay=true)
// Berechnung der Vektorkerzen
openVektor = (open + close) / 2
closeVektor = (high + low) / 2
// Farbe für die Kerzen
col = closeVektor > openVektor ? color.green : color.red
// Vektorkerzen zeichnen
plotcandle(openVektor, high, low, closeVektor, color=col, wickcolor=color.gray, bordercolor=col)
Vektor-Kerzen//@version=5
indicator("Vektor-Kerzen", overlay=true)
// Berechnung der Vektorkerzen
openVektor = (open + close) / 2
closeVektor = (high + low) / 2
// Farbe für die Kerzen
col = closeVektor > openVektor ? color.green : color.red
// Vektorkerzen zeichnen
plotcandle(openVektor, high, low, closeVektor, color=col, wickcolor=color.gray, bordercolor=col)
Günlük İşlem Stratejisi - Güncellenmiş//@version=5
indicator("Günlük İşlem Stratejisi - Güncellenmiş", overlay=true)
// Parametreler
rsiLength = input.int(14, title="RSI Periyodu")
rsiOverbought = input.int(70, title="RSI Aşırı Alım")
rsiOversold = input.int(30, title="RSI Aşırı Satım")
macdShortTerm = input.int(12, title="MACD Kısa Vadeli MA")
macdLongTerm = input.int(26, title="MACD Uzun Vadeli MA")
macdSignalTerm = input.int(9, title="MACD Signal Periyodu")
bbLength = input.int(20, title="Bollinger Band Periyodu")
bbStdDev = input.float(2.0, title="Bollinger Band Std Dev")
// RSI Hesaplaması
rsi = ta.rsi(close, rsiLength)
// MACD Hesaplaması
= ta.macd(close, macdShortTerm, macdLongTerm, macdSignalTerm)
// Bollinger Bands Hesaplaması
= ta.bb(close, bbLength, bbStdDev)
// Alım (Long) ve Satış (Short) Sinyalleri
longSignal = (rsi < rsiOversold) and (macdLine > signalLine) and (close < bbLower)
shortSignal = (rsi > rsiOverbought) and (macdLine < signalLine) and (close > bbUpper)
// Alım ve Satış İşlem Sinyalleri Gösterimi
plotshape(longSignal, title="Long (Alış) Sinyali", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortSignal, title="Short (Satış) Sinyali", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// İşlem Sinyali İçin Sesli Uyarı
alertcondition(longSignal, title="Long Sinyali", message="Alım Sinyali")
alertcondition(shortSignal, title="Short Sinyali", message="Satış Sinyali")