커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

swinghigh의 표시 위치 조정 방법 문의

업무에 수고 많습니다. 아래는 SwingHigh 수식입니다. 그러면 검색에서 점이 찍히는 부분은 기준봉(SwingHigh 값이 되는 봉)이 아니라 발생봉 or 현재시점(기준봉+right)이 되는것 같습니다. 이걸 기준봉에 찍히게 할 수 있을까요? Input: Left(3), Right(3); If SwingHigh(1, H, Left, Right, Left + Right + 1 ) != -1 Then { Plot1(H[Right],"SwingHigh"); }
프로필 이미지
심플리3
2025-08-19
101
글번호 193360
검색
답변완료

검색식 부탁 드려요

1. 일봉차트기준, 일봉차트에 주봉 20이평선을(단순) 그어서, 일봉차트 현재봉(0봉전-일봉)이, 주봉 20이평(단순) 아래에 있는 종목 검색식 부탁 드립니다.
프로필 이미지
일지매7
2025-08-19
109
글번호 193359
종목검색

para 님에 의해서 삭제되었습니다.

프로필 이미지
para
2025-08-19
0
글번호 193358
지표
답변완료

문의드립니다

Text_SetStyle(Text1, 2, 1); Text_SetColor(text1,Red); Text_Setbold(text1,1); -------------------------- 위식에서 글씨 크기를 조정하려면 어떻게 해야 하나요? 크게 또는 작게 차트 크기에 따라 임의로 입력하고 싶습니다 감사합니다
프로필 이미지
러블리
2025-08-19
127
글번호 193357
지표
답변완료

질문 부탁드립니다

더운날 수고가 많으십니다 캔들에 번호를 부여하는 수식에 대해 몇 가지 여쭤보고싶습니다 1. 차트 첫번째 봉부터 10번째 봉까지 0~9 번 까지 부여하는 식 첫번째 봉은 T = 0 , 그 다음봉은 1, ... 10번째는 t=9 이 작업을 한 뒤에 11번째부터 T=0 ... 을 반복 (순환) 을 하고자 합니다 2. h> l * 1.1 을 만족하는 봉을 기점으로 다음봉부터 t=0 을 주고 t=9 까지 부여 한뒤 순환을 하려고 합니다 h>l *1.1 을 만족하는 봉에는 t값을 주지 않습니다 한가지 더 부탁드립니다 : 3. 배열이나 변수에 또 다른 변수 (연산부호를 사용한) 를 넣고 조건문에 사용하는 방법에 대해서 여쭤보겠습니다. 예를 들어서 배열 aa[1] = 1000+n 이고 aa[2] = 1000+2n 값이 들어가있을때 조건문에 직접 사용하려고 하는데요 n=100; aa[1]=1000+n; aa[2]=1000+2n; if h > aa[1] and h< 2*(aa[2]) then var1=h; 라고 작성하면 if h > 1000+100 and h< 2*(1000+200) then var1=h; 과 동일하게 되는게 맞나요? 감사합니다
프로필 이미지
yamu
2025-08-20
124
글번호 193356
지표
답변완료

지표 변환 부탁드립니다.

// This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International // https://creativecommons.org/licenses/by-nc-sa/4.0/ // &#169; Zeiierman { //@version=6 indicator('Dynamic Swing Anchored VWAP (Zeiierman)', overlay = true, max_bars_back = 5000, max_labels_count = 500, max_polylines_count = 100) //~~} // ~~ Tooltips { var string t1 = "Number of bars used to detect swing highs and lows. Larger values identify bigger, more significant swings but react slower. Smaller values detect more frequent swings but may produce more noise." var string t2 = "Controls how quickly the VWAP adjusts to new price action. Lower values make the VWAP react faster (tighter to price), higher values make it smoother and slower to change." var string t3 = "When enabled, the VWAP reaction speed changes automatically based on market volatility. High volatility shortens the tracking period (more responsive), low volatility lengthens it (smoother)." var string t4 = "Controls how strongly volatility influences the VWAP reaction speed. Values above 1 increase the effect of volatility changes; values below 1 make it less sensitive to volatility." var string t5 = "Color used for swing high/low labels drawn on the chart to indicate pivot points." var string t6 = "Color used for swing low labels when marking pivot points." var string t7 = "Color used for VWAP lines when in an uptrend." var string t8 = "Color used for VWAP lines when in a downtrend." var string t9 = "Width of the VWAP lines drawn on the chart. Larger values make the lines thicker and more visible." //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Inputs { prd = input.int(50, title='Swing Period', minval=2, group='Swing Points', tooltip=t1) baseAPT = input.float(20, 'Adaptive Price Tracking', minval=1, step=1, group='Swing Points', tooltip=t2) useAdapt = input.bool(false, 'Adapt APT by ATR ratio', group='Swing Points', tooltip=t3) volBias = input.float(10.0, 'Volatility Bias', minval=0.1, step=0.1, group='Swing Points', tooltip=t4) highS = input.color(color.lime, title="Swing Labels", group="Style", inline="Swing", tooltip=t5) lowS = input.color(color.red, title="", group="Style", inline="Swing", tooltip=t6) S = input.color(color.lime, title="VWAP Lines", group="Style", inline="VWAP", tooltip=t7) R = input.color(color.red, title="", group="Style", inline="VWAP", tooltip=t8) xx = input.int(2, minval=1, title="", group="Style", inline="VWAP", tooltip=t9) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Global Variable { b = bar_index //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ PIVOTS Variables { var ph = float(na) var pl = float(na) var phL = b var plL = b var lab = label(na) var prev = float(na) ph := ta.highestbars(high, prd) == 0 ? high : ph pl := ta.lowestbars(low, prd) == 0 ? low : pl phL := ta.highestbars(high, prd) == 0 ? b : phL plL := ta.lowestbars(low, prd) == 0 ? b : plL dir = phL > plL ? 1 : -1 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Adaptation { atrLen = 50 atr = ta.atr(atrLen) atrAvg = ta.rma(atr, atrLen) ratio = atrAvg > 0 ? atr / atrAvg : 1.0 aptRaw = useAdapt ? baseAPT / math.pow(ratio, volBias) : baseAPT aptClamped = math.max(5.0, math.min(300.0, aptRaw)) aptSeries = math.round(aptClamped) // alpha from APT (half-life -> EWMA alpha) alphaFromAPT(apt) => decay = math.exp(-math.log(2.0) / math.max(1.0, apt)) 1.0 - decay //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ VWAP Variables { var p = hlc3 * volume var vol = volume type dataPoints array<chart.point> points polyline poly = na var vwap = dataPoints.new(array.new<chart.point>()) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Main { if dir != dir[1] x = dir > 0 ? plL : phL y = dir > 0 ? pl : ph loc = dir > 0 ? label.style_label_up : label.style_label_down col = dir > 0 ? highS : lowS txt = dir > 0 and pl < prev ? 'LL' : dir > 0 and pl > prev ? 'HL' : dir < 0 and ph < prev ? 'LH' : dir < 0 and ph > prev ? 'HH' : '' label.new(x, y, text=txt, style=loc, color=color.new(col, 20), textcolor=color.white) prev := dir > 0 ? ph[1] : pl[1] barsback = b - x p := y * volume[barsback] vol := volume[barsback] vap = p / vol vwap.poly.delete() polyline.new(vwap.points, false, false, line_color = dir < 0 ? R : S, line_width = xx) vwap.points.clear() for i = barsback to 0 by 1 apt_i = aptSeries[i] alpha = alphaFromAPT(apt_i) pxv = hlc3[i] * volume[i] v_i = volume[i] p := (1.0 - alpha) * p + alpha * pxv vol := (1.0 - alpha) * vol + alpha * v_i vappe = vol > 0 ? p / vol : na vwap.points.push(chart.point.from_index(b - i, vappe)) vwap.poly := polyline.new(vwap.points, false, false, line_color = dir < 0 ? R : S, line_width = xx) else apt_0 = aptSeries alpha = alphaFromAPT(apt_0) pxv = hlc3 * volume v0 = volume p := (1.0 - alpha) * p + alpha * pxv vol := (1.0 - alpha) * vol + alpha * v0 vap = vol > 0 ? p / vol : na vwap.poly.delete() vwap.points.push(chart.point.from_index(b, vap)) vwap.poly := polyline.new(vwap.points, false, false, line_color = dir > 0 ? R : S, line_width = xx) //~~ }
프로필 이미지
삼손감자
2025-08-19
208
글번호 193355
지표
답변완료

문의드립니다,

Input : shortPeriod(12), longPeriod(26), Period(9); Inputs: RSILength(10), OverSold(30),OverBought(100); Var : MACD1(0,Data1),MACD2(0,Data2),R(0,Data1); MACD1 = data1(MACD(shortPeriod, longPeriod)); MACD2 = data2(MACD(shortPeriod, longPeriod)); R = Data1(RSI(RSILength)); If MACD2 > 0 and Crossup(R, OverSold) Then Buy ("RSI"); if CrossUp(MACD2,0) Then Buy (); if MarketPosition == 1 Then { if CrossDown(MACD2,0)or Crossup(R, OverBought) Then Sell("S"); } 안녕하세요.위 수식에 data2 macd기준선 대신에 obv new high low 로 바꿔주시면 감사하겠습니다. 감사합니다
프로필 이미지
2685up
2025-08-19
91
글번호 193354
시스템
답변완료

검색식 부탁 드려요

1. 아래와 같은 지수이평 역배열 종목 검색식 부탁 드립니다. 3가지 종류 역배열을 "한개의 종목 검색식" (검색식1개)으로 0봉전 ~ 10봉전 모든종목이 검색 되도록 해주세요. <아래 ---------> 위> 지수이평 역배열 1) 112 224 448 2) 112 56 224 3) 56 112 224 2. 아래의 수식을 참고하여 수식1)이 수식2)를 돌파할대 종목 검색식 부탁드려요. 3. 아래의 수식을 참조하여 수식1)이 수식2) 위에 있을대 종목 검색식 부탁합니다. ----------아래----- 수식1) biwave(20,12,5,3) 수식2) B=biwave(20,12,5,3); eavg(B,Signal) ------------- 지표변수 15
프로필 이미지
일지매7
2025-08-19
120
글번호 193351
종목검색
답변완료

검색식 부탁 드립니다

지표조건 Period 14 DIPlus DIMinus 1봉전에는 DIMinus > DIPlus 보다 높다 오늘은 DIMinus < DIPlus 높다
프로필 이미지
님이랑
2025-08-19
96
글번호 193350
종목검색
답변완료

수식작성 부탁합니다

안녕하세요 운영자님 지수이평선50일 > 지수이평선200일 MACD 골든크로스 일목균형표 구름대 상단 돌파 할때 신호와 알람소리가 나게 해주세요
프로필 이미지
로엔그린
2025-08-19
115
글번호 193349
지표