커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

문의드립니다.

수고 많습니다. 88052번 질문에 대한 답변대로 했으나 원하는대로 구현이 잘 안됩니다. 스샷의 신호를 예로 들어본다면 재진입 조건(매도신호나온지 20봉이내, 5틱이상 플러스되어 손절되었다가 5틱이상 마이너스 전환)이 맞는대도 재진입 신호가 안나옵니다. (그리고 진입가에서 무조건 5틱 뒤로 가면 즉시 청산인데 이부분도 스샷에서 보듯이 훨씬 많이 되밀려서 청산되어 요청드린대로 적용이 안되고 있습니다) 문의를 정확하게 못한 것인지 한번 확인 부탁드리겠습니다. 미리 노고에 감사드립니다~
프로필 이미지
카르마다
2024-07-21
625
글번호 181710
시스템
답변완료

수식요청

1.3분봉에서, -3연속 양봉발생(각 봉의 시가<종가) -각 봉은 전봉대비 0.5%이상 -3봉전 종가<2봉전 종가<1봉전 종가 -1봉전 종가>볼밴(60,2)의 상한선 -1봉전 종가기준 20일선과 이격=7%이하 을 0봉에 검색코자 합니다. 2.60분봉에서, 아래는 종전에 작성해주신 수식입니다. var : A1(0),A2(0),A3(0),A4(0); A1=MACD(12,26); A2=Ema(A1,9); if CrossUp(A1,0) Then A3 = C; if CrossUp(A1,A2) Then A4=C; Condition1 = crossup(C,A3) && Crossup(C,A4) ; if Condition1[1] == true Then Find(1); 이 신호가 71봉이내에 발생한 후 1봉전에 RSI(20)>64인 봉을 검색코자 합니다. 즉, RSI(20)>64가 되는 봉 기준으로 70봉 이내에서 위 수식신호가 발생한 것을 0봉에 자동매수에 걸어놓으려고 합니다. 여러 시도를 하느라 요청사항이 많아 미안합니다.
프로필 이미지
ksks
2024-07-22
642
글번호 181709
종목검색
답변완료

검색식 부탁 드려요

1. 60이평을(단순) 기준으로, 20이평 (단순)이 60이평을 2% 이내로 골든크로스로 접근했을때와 이미 골든크로스 되어 상승2% 안에있을때 종목검색식 부탁드립니다.(60이평 상하2%) 2. 20이평 (단순) 이 상승추세일때 종목검색식 3. 일목균형표 에서 선행스팬2가 상승 일때 종목검색식 부탁드립니다. 4. 주가가 5일전의 주가보다 높은 모든종목이, 일목균형표 양운(붉은구름)이며, 이평이 정배열상태이고, 10일 신고가 20일신고가 60일 신고가 인 종목검색식 부탁드립니다. 5. 캔들이 (기준) 20일 이평(단순)을 돌파 하고, 돌파한 캔들의 (26일 앞)일목균형표 선행스팬1 이 같이 상승, 돌파한 캔들의 (26일 뒤)일목균형표 후행스팬이 20일 이평 위에 있을때, 종목검색식 부탁드립니다.
프로필 이미지
일지매7
2024-07-22
569
글번호 181708
종목검색

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

프로필 이미지
구름구름
2024-07-20
21
글번호 181707
종목검색

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

프로필 이미지
solution
2024-07-20
10
글번호 181706
종목검색

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

프로필 이미지
겐지
2024-07-20
34
글번호 181705
지표
답변완료

수식 부탁해요

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // ⓒ BalintDavid // WHAT IT DOES AND HOW TO USE: // In the Input page you configure the RSI // // The indicator draws swings on the chart based on RSI extremes // Example: Lines are draws from OVERSOLD to OVERBOUGHT and vice-versa // If we keep geing in deeper OVERBOUGHT or OVERSOLD, the swinglines follow the price, till another cycle is complete // In the labels you see the swing's relation to the structure: If the swing high is higher then the previous, it becomes Higher High aka HH //@version=4 study("RSI Swing Indicator", overlay=true, max_bars_back=1000) // RSI Settings for user rsiSource = input(title="RSI Source", type=input.source, defval=close) rsiLength = input(title="RSI Length", type=input.integer, defval=7) rsiOverbought = input(title="RSI Overbought", type=input.integer, defval=70, minval=51, maxval=100) rsiOvesold = input(title="RSI Oversold", type=input.integer, defval=30, minval=1, maxval=49) // RSI value based on inbuilt RSI rsiValue = rsi(rsiSource, rsiLength) // Get the current state isOverbought = rsiValue >= rsiOverbought isOversold = rsiValue <= rsiOvesold // State of the last extreme 0 for initialization, 1 = overbought, 2 = oversold var laststate = 0 // Highest and Lowest prices since the last state change var hh = low var ll = high // Labels var label labelll = na var label labelhh = na // Swing lines var line line_up = na var line line_down = na var last_actual_label_hh_price = 0.0 var last_actual_label_ll_price = 0.0 // FUNCTIONS obLabelText() => if(last_actual_label_hh_price < high) "HH" else "LH" //plot(last_actual_label_hh_price) osLabelText() => if(last_actual_label_ll_price < low) "HL" else "LL" // Create oversold or overbought label createOverBoughtLabel(isIt) => if(isIt) label.new(x=bar_index, y=na ,yloc=yloc.abovebar, style=label.style_label_down, color=color.red, size=size.tiny, text=obLabelText()) else label.new(x=bar_index, y=na ,yloc=yloc.belowbar, style=label.style_label_up, color=color.green, size=size.tiny, text=osLabelText()) // Move the oversold swing and label moveOversoldLabel() => label.set_x(labelll, bar_index) label.set_y(labelll, low) label.set_text(labelll, osLabelText()) line.set_x1(line_down, bar_index) line.set_y1(line_down, low) moveOverBoughtLabel() => label.set_x(labelhh, bar_index) label.set_y(labelhh, high) label.set_text(labelhh, obLabelText()) line.set_x1(line_up, bar_index) line.set_y1(line_up, high) // We go from oversold straight to overbought NEW DRAWINGS CREATED HERE if(laststate == 2 and isOverbought) hh := high labelhh := createOverBoughtLabel(true) last_actual_label_ll_price := label.get_y(labelll) labelll_ts = label.get_x(labelll) labelll_price = label.get_y(labelll) line_up := line.new(x1=bar_index, y1=high, x2=labelll_ts, y2=labelll_price, width=1) // We go from overbought straight to oversold NEW DRAWINGS CREATED HERE if(laststate == 1 and isOversold) ll := low labelll := createOverBoughtLabel(false) last_actual_label_hh_price := label.get_y(labelhh) labelhh_ts = label.get_x(labelhh) labelhh_price = label.get_y(labelhh) line_down := line.new(x1=bar_index, y1=high, x2=labelhh_ts, y2=labelhh_price, width=1) // If we are overbought if(isOverbought) if(high >= hh) hh := high moveOverBoughtLabel() laststate := 1 // If we are oversold if(isOversold) if(low <= ll) ll := low moveOversoldLabel() laststate := 2 // If last state was overbought and we are overbought if(laststate == 1 and isOverbought) if(hh <= high) hh := high moveOverBoughtLabel() //If we are oversold and the last state was oversold, move the drawings to the lowest price if(laststate == 2 and isOversold) if(low <= ll) ll := low moveOversoldLabel() // If last state was overbought if(laststate == 1) if(hh <= high) hh := high moveOverBoughtLabel() // If last stare was oversold if(laststate == 2) if(ll >= low) ll := low moveOversoldLabel()
프로필 이미지
solution
2024-07-23
837
글번호 181704
지표
답변완료

검색식 부탁 드립니다

지표조건 기간 5 기간1 20 1번 분봉에서 5_20 3골든 평균돌파 첫캔들 종목검색식 부탁드립니다 두번째 캔들부터는 검색이 안되도록 해주세요 5_20 3골든 평균돌파 M5=ma(c,기간); M20=ma(c,기간1); A=Valuewhen(1,crossup(M5,M20),C); A1=Valuewhen(2,crossup(M5,M20),C); A2=Valuewhen(3,crossup(M5,M20),C); B=(A+A1+A2)/3; Crossup(C,B) && C>O 2번 분봉에서 첫번째 골든크로스와 B의 지표수치가 같은 종목 검색식 부탁드립니다
프로필 이미지
구경꾼그림자
2024-07-22
662
글번호 181703
종목검색
답변완료

검색식 부탁드립니다. _(_ _)_

항상 도와주심에 감사드립니다. 20봉전에 스토케스틱슬로우(25,6,6) 저점이 20 아래, 그리고 아래의 수식을 이탈한 상태에서 첫 장기이평 정배열(240<120<60)이 만들어지고 0봉전에 아래의 수식을 만족시키는 종목울 검색하고 싶습니다. 근데 종가는 20봉전보다 높아야 한다는 조건을 추가한 검색식과 그냥 돌파하는 검색식 두가지를 부탁드립니다. 수식 var : 당월시가(0),전월시가(0); var : 당월종가(0),전월종가(0); if sDate > sDate[1]+30 Then { 당월시가 = O; 전월시가 = 당월시가[1]; 전월종가 = 당월종가[1]; } 당월종가 = C; if 전월시가 > 0 Then { var1 = ((전월시가+전월종가)/2 + 당월시가)/2; if CrossUp(C,var1) Then Find(1); }
프로필 이미지
한칼부르스
2024-07-20
649
글번호 181702
종목검색
답변완료

부탁드립니다.

1. 매일 미국장 기준으로 장이 시작한 후 가장 긴 양봉의 길이(고가와저가)가 갱신되면 해당봉에 빨강색으로, 가장 긴 음봉의 길이(고가와저가)가 갱신되면 해당 봉에 파란색으로 구현해 주세요 2. 매일 장이 시작한 후 캔들의 몸통(시가와종가)이 가장 길게 갱신되면 그때마다 다음 갱신때까지 시가를 빨강색, 종가를 파란색 우측 추세선으로 계속 구현해 주세요 3.캔들마다 몸통, 즉 시가와 종가를 기준으로 각각 빨강색과 파란색 우측추세선으로 15개봉까지 나타나도록 구현해 주세요 고맙습니다.
프로필 이미지
서태공
2024-07-20
671
글번호 181701
강조