커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

문의드립니다.

안녕하세요. 수고 많으십니다. if CrossUp(R,40) Then { B = 1; if B[1] == -1 and ll < 40 Then Buy(); } if CrossDown(R,30) Then { B = -1; ll = R; } if B == -1 Then { if R < ll Then ll = R; } if CrossDown(R,60) Then { S = -1; if S[1] == 1 and hh > 70 Then Sell(); } if CrossUp(R,60) Then { S = 1; HH = R; } if S == 1 Then { if R > hh Then hh = R; } 1. 30이하 내려간 것을 만족한 뒤 40이상 올라갈 때 매수신호가 나오는 식입니다. 매도는 70이상 올라간 뒤 60이하 내려가면 매도신호. 이 식이 맞는 건지 한번 확인 부탁드립니다. 2. 그리고 30이하로 내려간 후 40이상 가는데 시간이 오래 걸리는 경우 의도한 바가 희석되어 30이하로 내려간 지점부터 15봉 이내에서 40이상 갈때만 신호가 나오게 부탁 드립니다.
프로필 이미지
카르마다
2024-05-02
783
글번호 179080
시스템
답변완료

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

안녕하세요? 몇일전에 만들어 주신 검색식인데 혹시 아래 분봉에서 만족하는 신호발생 종목을 일봉 기준으로 분봉조건을 만족하는 종목을 검색하는 검색식을 만들 수 있는지 검토 부탁드립니다. (일자별로 분봉조건을 만족하는 종목을 검색하는 검색식을 만들고 싶습니다. 가능할까요?) 도움 부탁드립니다. ============================================================================== input : N(30),상승률(15),횟수(3); var : cnt(0),count1(0),count2(0); var : A(0),B(0); #count1 = 일봉기준 최근 30봉 이내에 전일종가 대비 15%이상 상승횟수 카운트 count1 = 0; For cnt = 0 to N-1 { if DayClose(cnt) >= DayClose(cnt+1)*(1+상승률/100) Then count1 = count1+1; } A = Ema(C,50); B = A*1.2; #count2 = 분봉에서 지정한 조건만족횟수 카운트 if sDate != sDate[1] Then count2 = 0; if Crossup(C, B) Then count2 = count2+1; if count1 >= 1 and count2 >= 횟수 Then Find(1);
프로필 이미지
onlypsn
2024-05-01
789
글번호 179079
종목검색
답변완료

수식 문의드립니다.

안녕하세요. 해외선물 거래하려고 합니다. 아래 수식을 좀 부탁드립니다. 22시30분에 당일 시가보다 현재 가격이 높으면 매수진입, 자정에 청산 22시30분에 당일 시가보다 현재 가격이 낮으면 매도진입, 자정에 청산 항상 감사드립니다.
프로필 이미지
트레이더365
2024-05-01
878
글번호 179078
시스템
답변완료

시뮬레이션 최대 기간 질문 드립니다.

안녕하세요. 현재 시뮬레이션 차트에서 최대로 적용할 수 있는 기간이 10년으로 보입니다. 혹시 더 길게 시뮬레이션 할 순 없나요 ?
프로필 이미지
hiphepho
2024-04-30
776
글번호 179077
시스템
답변완료

수식 전환 부탁드립니다

안녕하세요 항상 감사합니다 수식 전환 부탁드립니다 // This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/ // &#169; Zeiierman //@version=5 indicator("2B Reversal Pattern (Expo)",overlay=true,max_lines_count=500) // ~~ ToolTips { t1 = "Set the pivot period." t2 = "Set the maximum bars until the pattern should be completed. This means establishing a limit on the number of bars allowed for the completion of the pattern. A high value returns more signals." t3 = "Set the minimum bars before the breakout. This means establishing a minimum number of bars that must be completed before the breakout. A low value returns more signals." //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Inputs { prd = input.int(20, title="Period",minval=1, tooltip=t1) max = input.int(10, title="Maximum Break Length",minval=1, tooltip=t2) min = input.int(3, title="Minimum Break Length",minval=1, tooltip=t3) bUp = input.color(#6ce5a0,"", inline="col"), bDn = input.color(#f23645,"", inline="col"), pCol = input.color(color.new(color.aqua,0),"",inline="col") //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Variables { b = bar_index var ph = float(na) var pl = float(na) var phL = int(na) var plL = int(na) var bo = float(na) var boL= int(na) breakoutup = false breakoutdn = false var array<line> lines = array.new<line>(0) var active= line(na) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Pivots { pvtHi = ta.pivothigh(high,prd,prd) pvtLo = ta.pivotlow(low,prd,prd) if pvtHi ph := high[prd] phL:= b[prd] if pvtLo pl := low[prd] plL:= b[prd] //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Pattern Detection { if ta.crossover(close,ph) bo := low boL:= b lines.push(line.new(phL,ph,b,ph,color=pCol,style=line.style_dashed)) ph := float(na) if ta.crossunder(close,pl) bo := high boL:= b lines.push(line.new(plL,pl,b,pl,color=pCol,style=line.style_dashed)) pl := float(na) if ta.crossunder(close,bo) and b-boL<=max and b-boL>=min line.delete(active) lines.push(line.new(boL,bo,b,bo,color=bDn,style=line.style_solid,width=2)) breakoutdn := true bo := float(na) if ta.crossover(close,bo) and b-boL<=max and b-boL>=min line.delete(active) lines.push(line.new(boL,bo,b,bo,color=bUp,style=line.style_solid,width=2)) breakoutup := true bo := float(na) if ta.cross(close,bo) bo := float(na) p2 = lines.pop() line.delete(p2) if not na(bo) active := line.new(boL,bo,b,bo,color=pCol,style=line.style_solid,width=2) line.delete(active[1]) if b-boL>max bo := float(na) p2 = lines.pop() line.delete(p2) line.delete(active) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Plots { plotshape(breakoutup?low:na, title="Breakout Up", color=bUp, style=shape.triangleup,location=location.belowbar,size=size.small) plotshape(breakoutdn?high:na, title="Breakout Down", color=bDn, style=shape.triangledown,location=location.abovebar,size=size.small) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Alerts { alertcondition(breakoutup, 'Breakout Up', 'Breakout Up') alertcondition(breakoutdn, 'Breakout Down', 'Breakout Down') //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
프로필 이미지
seayun1
2024-04-30
1100
글번호 179076
지표
답변완료

검색식 재검토 부탁드립니다

그림에서처럼 종목검색이 되어야 하는데 검색되지않습니다 수식 다시한번 검토해 주시면 감사하겠습니다 안녕하세요 예스스탁입니다. 15분봉 주기에서 검색에 필요한 최소기간에 500봉 지정하고 검색하셔야 합니다. 종목검색은 최대 500봉 제공이 되는데 분봉에서 기준봉의 전일의 91500~93000시간의 최고값을 계산하기 위해서는 15분봉 주기에서만 가능합니다. input : nday(10),StartTime(91500),Endtime(93000); var : count(0),Tcond(false),cnt(0),ii(0); Array : HH[20](0); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; For cnt = 19 DownTo 1 { hh[cnt] = hh[cnt-1]; } hh[0] = h; count = 0; ii = -1; For cnt = 1 to Nday { if DayHigh(cnt) >= DayClose(1)*1.20 Then { count = count+1; if count == 1 Then ii = cnt; } } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if h > hh[0] then hh[0] = h; } if count >= 1 and sTime >= Endtime and ii >= 0 and hh[ii+1] > 0 and hh[0] > hh[ii+1]*1.20 Then Find(1); 즐거운 하루되세요 > 아로 님이 쓴 글입니다. > 제목 : 검색식 부탁드립니다 > 1. 일주기 10봉 이내에서 전일종가대비 당일고가 20% 이상 1회이상(기준봉) 1-1. 당일 9시15분에서 9시30분사이의 최고주가(a)가 기준봉 전일 9시15분에서 9시30분사이의 최고주가*1.20 보다 높을것(a>b*1.20)
프로필 이미지
아로
2024-04-30
816
글번호 179075
종목검색
답변완료

부탁드립니다.

1.종가가 양봉이면서 최근 6시간이내 최고가보다 높으면 파란색으로, 종가가 음봉이면서 최근 6시간이내 최저가보다 낮으면 빨강색으로 구현해 주세요 2.종가가 양봉이면서 최근 9시간이내 최고가보다는 낮고, 최근 3시간이내 최고가보다 높으면 파란색으로, 종가가 음봉이면서 최근 9시간이내 최저가보다는 높고, 최근 3시간이내 최저가보다 낮으면 빨강색으로 구현해 주세요 고맙습니다.
프로필 이미지
서태공
2024-04-30
678
글번호 179074
강조
답변완료

부탁 드립니다

고점(%봉수%봉) M=ma(C,기간); P=if(봉수%2==0,봉수+1,봉수); 좌측L=Lowest(M(P/2+1),P/2); 우측L=Lowest(M,P/2); 조건H=M(P/2)==Highest(M,P)&&M(P-1)==좌측L&&M==우측L; Valuewhen(1,조건H,M(P/2+1)) 저점(%봉수%봉) M=ma(C,기간); P=if(봉수%2==0,봉수+1,봉수); 좌측H=Highest(M(P/2+1),P/2); 우측H=Highest(M,P/2); 조건L=M(P/2)==Lowest(M,P)&&M(P-1)==좌측H&&M==우측H; Valuewhen(1,조건L,M(P/2+1)) 지표조건 기간3 봉수5 지표수식 부탁드립니다(일목균형표) ....................................................................... 기간내 주가변동폭:{일]0봉전까지 5봉간 최고최저폭15% 유통주식수 대비 거래량비율[일]0봉전5%이상 [일]0봉전 <롱바디(양봉)> 파워종목 검색식 부탁드립니
프로필 이미지
구경꾼그림자
2024-05-01
633
글번호 179073
지표

구경꾼그림자 님에 의해서 삭제되었습니다.

프로필 이미지
구경꾼그림자
2024-04-30
8
글번호 179070
지표
답변완료

수식전환

죄송합니다 다시 올립니다^^ A=CrossUp(h,BBandsUp(40,2)); B=CrossUp(macd(9,52),0); C1=CrossUp(h,BBandsUp(40,2)); D=CrossUp(macd(9,52,26),sig1(26)); E=CrossUp(macd(9,52),0); F=CrossUp(macd(9,52,26),sig1(26)); G=CrossUp( StochasticsSlow(Period1,Period2), eavg(StochasticsSlow(Period1,Period2),Period3)); H=CrossUp(macd(12,26,9),sig2(9)); ((A and B) or (C1 and D) or (E and F)) and G and H 지표변수 sig1 26 ,sig2 9 period1 20 period2 12 period3 12 입니다 죄송합니다^^
프로필 이미지
트라이
2024-04-30
721
글번호 179067
강조