커뮤니티

예스랭귀지 Q&A

글쓰기

러블리 님에 의해서 삭제되었습니다.

프로필 이미지
러블리
2025-06-11
3
글번호 191623
지표
답변완료

수식 부탁드립니다

스톡케스틱 보조 지표에서 k 하고 D 가 교차 될때 화살표가 나오게 수식 가능한지 문의 드립니다. 수고하세요.
프로필 이미지
백두에서한라
2025-06-11
186
글번호 191614
지표
답변완료

종목검색식 요청드립니다.

안녕하세요 항상 도움 주심에 정말 감사드립니다. 아래 조건을 만족하는 조건검색식 부탁드리겠습니다. * 조건 1. N봉이네 60이평을 고가기준으로 돌파 (기준봉) 2. 현재 1번 기준봉의 (H+L)/2 이하에 위치한 종목검색식 항상 감사드립니다. 좋은하루 되세요^^
프로필 이미지
onlypsn
2025-06-11
194
글번호 191613
종목검색
답변완료

RSI 이용한 시스템 수식

안녕하세요. RSI수식으로 옵션 양방향 매매를 하고자 합니다. Input : Period(14); var : Relative(0); Relative = RSI(Period); Plot1(Relative, "RSI"); PlotBaseLine1(30, "기준선 30"); PlotBaseLine2(70, "기준선 70"); RSI 기준선이 70을 상향 돌파할때 등가격 옵션 양매도 RSI 기준선이 30을 하향 돌파할때 등가격 옵션 양매수 감사합니다.
프로필 이미지
노블레스
2025-06-11
178
글번호 191612
시스템

관리자에 의해 프로그램 사용법 QnA로 이동되었습니다

프로필 이미지
몸통공격
2025-06-11
5
글번호 191597
시스템
답변완료

문의드립니다

선물 야간시장 강제청산 관련 시스템식 문의입니다 임의 가격, 예를 들어 360에 매수진입하고 반대로 -0.5 포인트 가면 강제청산하는 식을 만들고 싶은데요 진입은 수동으로 하고 강제청산은 시스템으로 하는 방식 이게 불가능하면 시스템식을 임의가격을 지정할수있게 만들어서 진입하고 강제청산 하게 하는 방법이 가능할까요? 강제청산 조건은 반대로 -0.5 포인트 또는 가격을 지정해서 그 가격이 오면 강제청산.. 가격을 지정해서 강제청산되게 하는 식이 좋을듯 합니다 야간시장용으로 부탁드립니다 감사합니다
프로필 이미지
러블리
2025-06-11
157
글번호 191596
시스템
답변완료

문의드립니다.

아래의 수식을 변환부탁드립니다. ======================= study(title="VWAP-VWMA-ATR", shorttitle="Adapted-ATR", overlay=true) //VWAP cumulativePeriod = input(5, "Period") typicalPrice = (high + low + close) / 3 typicalPriceVolume = typicalPrice * volume cumulativeTypicalPriceVolume = sum(typicalPriceVolume, cumulativePeriod) cumulativeVolume = sum(volume, cumulativePeriod) vwapValue = cumulativeTypicalPriceVolume / cumulativeVolume //VWMA shortlen = input(10, minval=1) longlen = input(5, minval=1) short = ema(volume, shortlen) long = ema(volume, longlen) osc = 100 * (short - long) / long //ATR-Stop p=input(100,"Period") m=input(11,"Multiplier") max=close[1]+atr(p)[1]*m min=close[1]-atr(p)[1]*m stop=min hi=true hi:=hi[1]?high[1]>=stop[1]?false:true:low[1]<=stop[1]?true:false stop:=hi?max:min stop:=hi?hi[1]==false?stop:stop>stop[1]?stop[1]:stop:hi[1]?stop:stop<stop[1]?stop[1]:stop //VWAP-VWMA-ATR c1 =(stop+osc+vwapValue)/2 //ATRCOLOR atrcolor=(c1>close?color.red:color.green) //Plot plot(c1, title="Adapted-ATR", linewidth=2, color=atrcolor, transp=0) //BarColor barcolor(close>c1 ? color.green : color.red) ================ 감사합니다. 수고하세요!!!
프로필 이미지
해암
2025-06-11
230
글번호 191595
지표
답변완료

질문 부탁드립니다

수고하십니다 질문 몇 가지 부탁드립니다 질문1) if Bdate != Bdate[1] Then Condition3 = False; if condition3==False and countif(h>aa[0] and h>aa[1]...and h>aa[20],50)>1 Then { condition3=true; find(1) } 위의 식에서 h>aa[0] and h>aa[1]...and h>aa[20] 처럼 길어질때 반복문으로 검색식을 만들수 있을까요 질문2) if (h>l*1.08) then { ... condition1=false; if countif(h>aa[0] and h>aa[1]...and h>aa[20],50)>1 Then condition1=true; } countif(h>aa[0] and ...h>aa[20],50)>1 을 condition1 에 포함시키고자 하는데 반복문으로 만들고 싶습니다 질문3) 텍스트 관련 질문인데요 newline 을 변수화 하려고 하는데요 예를들어 nl=newline; txt1[0]=text_new(sd[0],st[0],aa[0],nl+NumToStr(h,0)+nl+NumToStr(h,0)+nl+NumToStr(l,0))); 이렇게 표현하고자 하는데 연산자 앞뒤 두 데이터의 형태가 같아야 합니다 라는 에러가 나오네요. newline 은 변수에 대입이 안되나요? 그리고 text_setstring 에서요 For cnt = 49 DownTo 1 { aa[cnt] = aa[cnt-1]; sd[cnt] =sd[cnt-1];st[cnt] =st[cnt-1]; txt1[cnt]=txt1[cnt-1]; Text_SetString(txt1[cnt],newline+NumToStr(cnt,0)); } aa[0] = value1; sd[0] = sDate; st[0] = sTime; txt1[0]=text_new(sd[0],st[0],aa[0],newline+NumToStr(aa[cnt],0) +newline+NumToStr(sd[cnt],0)+newline+ NumToStr(cnt,0)); text_setstring() 안에 txt1 의 내용 전체가 들어가야 모든 조건만족봉에서 텍스트가 나타나기에, (위 식처럼 하면 가장 최근봉에만 표시됨) txt1 내용이 바뀔때마다 매번 setstring 내용도 같이 변경을 해줘야하는데요 혹시 var1=newline+NumToStr(aa[cnt],0)+newline+NumToStr(sd[cnt],0)+newline+NumToStr(cnt,0); for cnt=49 downto 1 { txt1[cnt]=txt1[cnt-1]; Text_SetString(txt1[cnt],var1); } txt1[0]=text_new(sd[0],st[0],aa[0],var1); 이런 흐름으로 텍스트 함수 내용의 일부를 변수화 시킬 수있을까요? 일반 변수가 안된다면 논리형 변수로 할 수 있을까요? 감사합니다
프로필 이미지
yamu
2025-06-11
229
글번호 191594
검색
답변완료

수식 부탁드립니다

지표식 부탁드립니다. //@version=5 indicator("SR MA", overlay = true, timeframe = "", timeframe_gaps = false) // Simple filter function simple_filter(float source, int length, bool duel_filter) => switch duel_filter false => ta.wma(source, length) true => ta.wma(ta.sma(source, length), length) // Main SR MA function sr_ma(float source = close, int output_smoothing = 3, int trigger_smoothing = 1, int atr_length = 50, float multiplier = 1, string range_switch = "Body", bool duel_filter = false) => candle_top = range_switch != "Body" ? high : math.max(open, close) candle_bottom = range_switch != "Body" ? low : math.min(open, close) smooth_top = ta.sma(candle_top, trigger_smoothing) smooth_bottom = ta.sma(candle_bottom, trigger_smoothing) tr = candle_top - candle_bottom atr = ta.sma(tr, atr_length) var float sr_ma = na var float current_range = na var float top_range = na var float bottom_range = na flag = smooth_top > top_range or smooth_bottom < bottom_range or na(current_range) if flag sr_ma := source current_range := atr * multiplier top_range := sr_ma + current_range bottom_range := sr_ma - current_range out = simple_filter(sr_ma, output_smoothing, duel_filter) smooth_top_range = simple_filter(top_range, output_smoothing, duel_filter) smooth_bottom_range = simple_filter(bottom_range, output_smoothing, duel_filter) [out, smooth_top_range, smooth_bottom_range] // === Inputs === source = input.source(close, "Source", group = "Settings") output_smoothing = input.int(100, "Length", minval = 0, group = "Settings") + 1 use_double = input.bool(true, "Double Filter", group = "Settings") smoothing = input.int(4, "Trigger Smoothing", minval = 0, group = "Settings") + 1 atr_length = input.int(200, "ATR Length", minval = 1, group = "Settings") multiplier = input.float(6, "Range Multiplier", minval = 0, step = 0.125, group = "Settings") range_switch = input.string("Body", "Range Style", ["Body", "Wick"], group = "Settings") // === Color Inputs === bullish_color = input.color(color.rgb(33, 255, 120), "Bullish Color", group = "Color") bearish_color = input.color(color.rgb(255, 33, 33), "Bearish Color", group = "Color") neutral_color = input.color(color.rgb(137, 137, 137), "Neutral Color", tooltip = "This doubles as the solid color.", group = "Color") // === Calculate SR MA & Ranges === [sr_ma, top_range, bottom_range] = sr_ma(source, output_smoothing, smoothing, atr_length, multiplier, range_switch, use_double) // === MA Color Logic === ma_delta_neutral = sr_ma - nz(sr_ma[1]) == 0 ma_delta_bullish = sr_ma - nz(sr_ma[1]) > 0 ma_delta_bearish = sr_ma - nz(sr_ma[1]) < 0 ma_color = ma_delta_neutral ? neutral_color : ma_delta_bullish ? bullish_color : bearish_color // === Plot SR MA and Ranges === alpha = color.new(color.red, 100) ma = plot(sr_ma, "SR MA", ma_color, 4) top = plot(top_range, "Top Range", ma_color, 2) bottom = plot(bottom_range, "Bottom Range", ma_color, 2) fill(ma, top, top_value = top_range, bottom_value = sr_ma, bottom_color = color.new(ma_color, 80), top_color = alpha) fill(ma, bottom, top_value = sr_ma, bottom_value = bottom_range, top_color = color.new(ma_color, 80), bottom_color = alpha) // === Detect Color Change === var color prev_color = na color_change = ma_color != prev_color and not na(prev_color) prev_color := ma_color color_change_to_bullish = color_change and ma_color == bullish_color color_change_to_bearish = color_change and ma_color == bearish_color // === Visual Markers === plotshape(color_change_to_bullish, title="MA Color Change to Bullish", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="Bullish") plotshape(color_change_to_bearish, title="MA Color Change to Bearish", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small, text="Bearish") // === Alerts for Color Changes === alertcondition(color_change_to_bullish, title="SR MA Color Changed to Bullish", message="SR MA color changed to Bullish (Uptrend)") alertcondition(color_change_to_bearish, title="SR MA Color Changed to Bearish", message="SR MA color changed to Bearish (Downtrend)")
프로필 이미지
사노소이
2025-06-11
293
글번호 191593
지표
답변완료

전략 수식 부탁드립니다

안녕하세요, 전략 수식 부탁드립니다. 감사합니다. 매수 조건 1. 종가가 5~10봉 (변수로 사용) 최저점을 하락돌파 2. 1번 기준이 만족되면 기준봉의 Low는 지지선, 중간값은 저항선으로 기록 (Condition 저점돌파가 True로 바뀜) 3. 저점돌파가 True 일때, 5~10봉 (변수로 사용) 이내 가격이 기록된 지지선과 저항선 사이에 있고 4. 그 이후 가격이 저항선을 상승돌파하면 매수 (예: 10봉 동안 가격이 지지선과 저항선 사이에서 머무르다 11봉 때 저항선 상승돌파하면 매수) 매도 조건 1. 종가가 5~10봉 (변수로 사용) 최고점을 상승돌파 2. 1번 기준이 만족되면 기준봉의 High는 지지선, 중간값은 저항선으로 기록 (Condition 고점돌파가 True로 바뀜) 3. 고점돌파가 True 일때, 5~10봉 (변수로 사용) 이내 가격이 기록된 지지선과 저항선 사이에 있고 4. 그 이후 가격이 저항선을 하락돌파하면 매도 (예: 10봉 동안 가격이 지지선과 저항선 사이에서 머무르다 11봉 때 저항선 하락돌파하면 매도)
프로필 이미지
sewzie
2025-06-11
193
글번호 191592
시스템