커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

안녕하세요. 현재 시뮬레이션 차트에서 최대로 적용할 수 있는 기간이 10년으로 보입니다. 혹시 더 길게 시뮬레이션 할 순 없나요 ?
프로필 이미지
hiphepho
2024-04-30
755
글번호 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
1065
글번호 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
795
글번호 179075
종목검색
답변완료

부탁드립니다.

1.종가가 양봉이면서 최근 6시간이내 최고가보다 높으면 파란색으로, 종가가 음봉이면서 최근 6시간이내 최저가보다 낮으면 빨강색으로 구현해 주세요 2.종가가 양봉이면서 최근 9시간이내 최고가보다는 낮고, 최근 3시간이내 최고가보다 높으면 파란색으로, 종가가 음봉이면서 최근 9시간이내 최저가보다는 높고, 최근 3시간이내 최저가보다 낮으면 빨강색으로 구현해 주세요 고맙습니다.
프로필 이미지
서태공
2024-04-30
658
글번호 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
605
글번호 179073
지표

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

프로필 이미지
구경꾼그림자
2024-04-30
7
글번호 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
703
글번호 179067
강조

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

프로필 이미지
2wnwn
2024-04-30
1
글번호 179056
지표
답변완료

종목 검색 수식 부탁드립니다.

항상 도움에 감사합니다. 하기 조건으로 종목을 검색하고자 합니다. [조건] ①삼음봉 이후 음봉으로 갭상승 ②갭음봉의 조건 *시가 = 고가 또는 고가 = 몸통의 1/3 이하 *종가 = 저가 또는 아래꼬리 길이 무관
프로필 이미지
yes초보님
2024-04-30
874
글번호 179055
종목검색
답변완료

수식 문의

안녕하세요? 샹들리에 스톱을 시스템이 아닌 지표로 부탁드립니다. 감사합니다.
프로필 이미지
에구머니
2024-04-30
761
글번호 179054
지표