답변완료
문의드립니다.
지난번 수식에서 아래부분이 빠져있었네요
다시한번 부탁드립니다.
===============
// === COLOR DEFINITIONS === //
bullColor = color.rgb(92, 240, 215) // #5CF0D7
bearColor = color.rgb(179, 42, 195) // #B32AC3
flatColor = color.rgb(136, 136, 136) // gray
bullShadow = color.rgb(92, 240, 215, 14) // 20% opacity
bearShadow = color.rgb(179, 42, 195, 14)
flatShadow = color.new(flatColor, 80)
// === SLOPE-BASED COLORING === //
slopeColor = basis > basis[slopeIndex] ? bullColor : basis < basis[slopeIndex] ? bearColor : flatColor
shadowColor = basis > basis[slopeIndex] ? bullShadow : basis < basis[slopeIndex] ? bearShadow : flatShadow
// === PLOT Z-SCORE MEAN LINE + SHADOW === //
plot(showMeanLine ? basis : na, "Z-Mean Shadow", color=shadowColor, linewidth=10)
plot(showMeanLine ? basis : na, "Z-Mean", color=slopeColor, linewidth=2)
==============
매번 감사드립니다. 수고하세요!!!
2025-04-23
181
글번호 190371
지표
답변완료
지표 변환 부탁 드립니다
study(title="WaveTrend with Crosses [LazyBear]", shorttitle="WT_CROSS_LB")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")
ap = hlc3
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)
wt1 = tci
wt2 = sma(wt1,4)
plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red)
plot(osLevel2, color=green)
plot(wt1, color=green)
plot(wt2, color=red)
plot(wt1-wt2, color=blue, style=area, transp=80)
plot(cross(wt1, wt2) ? wt2 : na, color = black , style = circles, linewidth = 3)
plot(cross(wt1, wt2) ? wt2 : na, color = (wt2 - wt1 > 0 ? red : lime) , style = circles, linewidth = 2)
barcolor(cross(wt1, wt2) ? (wt2 - wt1 > 0 ? aqua : yellow) : na)
2025-04-23
315
글번호 190367
지표
답변완료
부탁드립니다
수고하십니다
아래의 트레이딩뷰 수식을 예스트레이더 수식으로 부탁드립니다
//Settings
//-----------------------------------------------------------------------------{
length = input.int(70, minval = 2)
smoType1 = input.string('RMA', 'MA type', options = ['EMA', 'SMA', 'RMA'])
src = input(close, 'Source')
rsiPCss = input(color.rgb(212, 0, 180), 'Color', inline = 'rsicss')
autoCss = input(true, 'Auto', inline = 'rsicss')
//Signal Line
smooth = input.int(50, minval = 1, group = 'Signal')
smoType2 = input.string('SMA', 'Method', options = ['EMA', 'SMA'], group = 'Signal')
signalCss = input(#ffd900, 'Color', group = 'Signal')
//OB/OS Style
obValue = input.float(90, '매수', inline = 'ob', group = 'OB/OS Style')
obCss = input(color.rgb(0, 188, 135, 22), '', inline = 'ob', group = 'OB/OS Style')
obAreaCss = input(color.new(#436264, 84), '', inline = 'ob', group = 'OB/OS Style')
osValue = input.float(10, '매도????', inline = 'os', group = 'OB/OS Style')
osCss = input(#da0012, '', inline = 'os', group = 'OB/OS Style')
osAreaCss = input(color.new(#90595e, 86), '', inline = 'os', group = 'OB/OS Style')
//-----------------------------------------------------------------------------}
//Functions
//-----------------------------------------------------------------------------{
ma(x, len, maType)=>
switch maType
'EMA' => ta.ema(x, len)
'SMA' => ta.sma(x, len)
'RMA' => ta.rma(x, len)
//-----------------------------------------------------------------------------}
//Augmented RSI
//-----------------------------------------------------------------------------{
upper = ta.highest(src, length)
lower = ta.lowest(src, length)
r = upper - lower
d = src - src[1]
diff = upper > upper[1] ? r
: lower < lower[1] ? -r
: d
num = ma(diff, length, smoType1)
den = ma(math.abs(diff), length, smoType1)
rsiP = num / den * 70 + 70
signal = ma(rsiP, smooth, smoType2)
//-----------------------------------------------------------------------------}
//Plots
//-----------------------------------------------------------------------------{
plot_rsi = plot(rsiP, title = 'RSI ', color =
rsiP > obValue ? obCss :
rsiP < osValue ? osCss :
autoCss ? chart.fg_color : rsiPCss,
linewidth = 2) // 선 두께
plot(signal, title = 'Signal Line', color = signalCss, linewidth = 2) // 신호선
//Levels
plot_up = plot(obValue, color = na, editable = false, linewidth = 2)
plot_avg = plot(50, color = na, editable = false, linewidth = 2)
plot_dn = plot(osValue, color = na, editable = false, linewidth = 2)
//OB-OS
fill(plot_rsi, plot_up, rsiP > obValue ? obAreaCss : na)
fill(plot_dn, plot_rsi, rsiP < osValue ? osAreaCss : na)
//Gradient
fill(plot_rsi, plot_avg, obValue, 50, obAreaCss, color.new(chart.bg_color, 100))
fill(plot_avg, plot_rsi, 50, osValue, color.new(chart.bg_color, 100), osAreaCss)
hline(obValue, 'Overbought')
hline(50, 'Midline')
hline(osValue, 'Oversold')
//-----------------------------------------------------------------------------}
2025-04-23
329
글번호 190364
지표
답변완료
종목 검색식 요청드립니다.
1. 당일 40일선 < 60일선 < 112일선 < 224일선 역배열
2. 주가가 40일선 < 현재가 < 60일선
3. 지난 80일(4달)동안 한번도 종가가 60일선을 넘지 않음.
INPUT : Period1(40), Period2(60), Period3(112), Period4(224),
LookBack(80);
VAR :;
IF MA(C, Period1)<MA(C, Period2)&& MA(C, Period2)<MA(C, Period3)&& MA(C, Period3)<MA(C, Period4) && C<MA(C,Period2) && C>MA(C,Period1)&& C>MA(C,Period3)&& countif(C>ma(C,60),LookBack)==0 Then //
Find(1);
위와 같이 돌렸을때 지난 4달동안 60일선을 넘지 않는 조건이 만족 되지 않는거 같습니다. 부탁드리겠습니다.
2025-04-23
256
글번호 190355
종목검색