커뮤니티

예스랭귀지 Q&A

글쓰기

신대륙발견 님에 의해서 삭제되었습니다.

프로필 이미지
신대륙발견
2022-12-28
26
글번호 164947
지표
답변완료

확인부탁합니다

지표문의 80085 번 수식확인 부탁합니다 안녕하세요 예스스탁입니다. input : ndate(20221201),n(20); var : ii(0); var : pre1(0),pre2(0),pre3(0),pre4(0); var : sum1(0),sum2(0),sum3(0),sum4(0); var : do(0),dh(0),dl(0),dc(0); if Bdate != Bdate[1] Then { if Bdate >= ndate Then { ii = ii+1; } if ii >= 1 Then { pre1 = pre1 + dh[1]; pre2 = pre2 + do[1]; pre3 = pre3 + dl[1]; pre4 = pre4 + dc[1]; do = o; dh = h; dl = l; dc = c; } } if ii >= 1 Then { if ii <= n Then { if dh > 0 and H > dh Then dh = H; if dl > 0 and L < dl Then dl = L; dc = C; sum1 = pre1+do; sum2 = pre2+dh; sum3 = pre3+dl; sum4 = pre4+dc; } Plot1(sum1); Plot2(sum2); Plot3(sum3); Plot4(sum4); }
프로필 이미지
대발이
2022-12-28
1079
글번호 164945
지표
답변완료

검색식 부탁드립니다.

안녕하세요 키움 신호 수식 인데 혹시 이걸 이용하여 검색식이 가능한지 여쭙습니다. 1. v>v(130)*2 and crossup(c,eavg(c,130))) 2. A=(H+L+O+C)/4*V/100000000; B=SUM(A); D=VALUEWHEN(1,DATE(1)!=DATE,B(1)); E=B-D; CROSSUP(E,1) OR (BARSSINCE(DATE(1)!=DATE)==0 AND E >=1) 3. aa=(highestsince(1,crossup(trix(20),0),c)+ lowestsince(1,crossdown(trix(20),0),c))/2; //100 a=Highest(h(1), 20, 1); a1=Highest(h(1), 40, 1); a2=Highest(h(1), 60, 1); crossup(c,a) and crossup(c,a1) and crossup(c,a2) and c>aa //100 and SUM(if(V(1)*2<= V, 1,0),3) //100 and c>predayclose() //100 and o(1)/c(1)>0.5 //100 and L/H>0.7 //100 and H/C>0.3 //100 and C>dayopen() //100 and Disparity(5) >= 90 //100 and c<predayclose()*1.15 // 100 and c>BBandsUp(30,1.8) //100 당일 3분봉 기준 이며 1번 2번 3번 신호수식 입니다. 1. 1번 수식이 뜨고난뒤 2번 수식이 뜨는종목 (똑같은 캔들에 생길경우 패스) 2. 1번 수식이 뜨는종목 3. 1번 수식과 3번 수식이 같이 뜰경우 뜨는종목
프로필 이미지
곽민수
2022-12-28
1907
글번호 164937
검색
답변완료

수식 부탁드립니다.

단순 sum 함수같은거 있나요? 현재봉포함 최근 10개 종가의 합 간단하게 구현 가능한지 궁금합니다. average 함수 쓰면 시뮬 속도가 2배 느려져서 그렇습니다. 감사합니다.
프로필 이미지
캣피쉬
2022-12-28
1131
글번호 164936
시스템
답변완료

문의 드립니다

input : 익절틱수(00),손절틱수(20); input : StartTime(10000),EndTime(140000); var : Tcond(false); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then Tcond = true; 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 Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then { IF Endtime <= starttime Then { SetStopEndofday(0); } } if NextBarSdate != sDate Then { if NextBarOpen != C Then { Buy("b",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx",AtMarket); if NextBarOpen != C Then { Sell("s",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen == C Then { Buy("b1",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx1",AtMarket); if NextBarOpen == C Then { Sell("s1",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx1",AtMarket); if NextBarSdate == sDate Then { if NextBarOpen != C Then { Buy("b2",AtStop,NextBarOpen+PriceScale*10); } } ExitLong("bx2",AtMarket); if NextBarOpen != C Then { Sell("s2",AtStop,NextBarOpen-PriceScale*10); } ExitShort("sx2",AtMarket); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); } 상품명 (china A50) 매매시간을 10시부터 14시까지 설정했는데 새벽 3시부터 연결되어서 신호가 나옵니다. 수정이 가능 한지 문의 드립니다.
프로필 이미지
푸른
2022-12-28
1147
글번호 164934
시스템
답변완료

수식 부탁드립니다

#,안녕하세요 분봉차트에서 당일 첫봉의 거래량이 1만 이상일때 그봉의 중심선을 Y축 까지 우측 추세선 그리기로 부탁드립니다.(거래량을 변수 조절할수 있으면 좋겠습니다) 도움 주심에 항상 감사합니다.
프로필 이미지
크라켄
2022-12-28
1259
글번호 164933
지표
답변완료

트렌드 쓰리바닥

inputs: ATRLength(15), Strength(18), 폭(0.25); input : 쌍바닥상1(2),쌍바닥상2(0),쌍바닥하1(1),쌍바닥하2(2); input : 쌍봉상1(2),쌍봉상2(1),쌍봉하1(0),쌍봉하2(2); var : STrend(0),ATRv(0), avgv(0), dnv(0), upv(0), trend(1), flag(0), flagh(0), ST(0),hl(0); var : idx(0),hh(0),ll(0),EP1(0),EP2(0); var : ema1(0),ema2(0),ema3(0),h1(0),h2(0),h3(0),h4(0),L1(0),l2(0),l3(0),l4(0); var :tx(0),tl(0),tx1(0),tx2(0),tx11(0),tx12(0),tx3(0); Ep1 = 2/(ATRLength+1); Ep2 = 2/(Strength+1); idx = idx+1; if idx < ATRLength Then { hh = DayHigh; ll = daylow; } Else { hh = Highest(High, ATRLength); ll = Lowest(Low, ATRLength); } if idx < Strength Then { h1 = DayHigh; l1 = daylow; } Else { h1 = Highest(High, Strength); l1 = Lowest(Low, Strength); } hl = hh-ll; if idx == 1 Then { ema1 = hl; ema2 = h; ema3 = l; } Else { ema1 = hl * EP1 + ema1 * (1-EP1); ema2 = h * EP2 + ema2 * (1-EP2); ema3 = l * EP2 + ema3 * (1-EP2); } atrv = ema1; avgv = (ema2+ema3)/2; upv = avgv + ATRv; dnv = avgv - ATRv; if idx >= 2 then { if c > upv[1] and c > h1[1] then trend = 1; else if c < dnv[1] and c < l1[1] then trend = -1; if trend < 0 and trend[1] > 0 then flag=1; else flag=0; if trend > 0 and trend[1] < 0 then flagh = 1; else flagh = 0; if trend > 0 and dnv < dnv[1] then dnv=dnv[1]; if trend < 0 and upv > upv[1] then upv=upv[1]; if flag == 1 then upv = avgv + ATRv; if flagh == 1 then dnv = avgv - ATRv; if trend == 1 then ST = dnv; else ST = upv; STrend = trend; } Plot1(st,"SuperTrend",iff(strend == 1,red,blue)); if Trend != Trend[1] Then { if Trend == 1 Then { var1 = h; var2 = var1[1]; TL = TL_New_Self(sDate,sTime,var1,sDate,sTime,99999999); TL_SetColor(TL,Red); TL_SetSize(TL,0.5); tx = Text_New_Self(sDate,sTime, st-PriceScale*0,"●"); Text_SetColor(tx,Red); Text_SetSize(tx,20); Text_SetStyle(tx,2,2); if Var4 > 0 and var3 <= Var4+PriceScale*쌍바닥상1 and var3 >= Var4+PriceScale*쌍바닥상2 Then { tx11 = Text_New_Self(sDate,sTime, st-PriceScale*0,"●"); Text_SetColor(tx11,Magenta); Text_SetSize(tx11,30); Text_SetStyle(tx11,2,2); } if Var4 > 0 and var3 <= Var4-PriceScale*쌍바닥하1 and var3 >= Var4-PriceScale*쌍바닥하2 Then { tx11 = Text_New_Self(sDate,sTime, st-PriceScale*0,"●"); Text_SetColor(tx11,Lime); Text_SetSize(tx11,30); Text_SetStyle(tx11,2,2); } } Else { Var3 = l; Var4 = Var3[1]; tx = Text_New_Self(sDate,sTime, st+PriceScale*0,"●"); Text_SetColor(tx,Blue); Text_SetSize(tx,20); Text_SetStyle(tx,2,2); if Var2 > 0 and var1 <= Var2+PriceScale*쌍봉상1 and var1 >= Var2+PriceScale*쌍봉상2 Then { tx12 = Text_New_Self(sDate,sTime, st+PriceScale*0,"●"); Text_SetColor(tx12,Cyan); Text_SetSize(tx12,30); Text_SetStyle(tx12,2,2); } if Var2 > 0 and var1 <= Var2-PriceScale*쌍봉하1 and var1 >= Var2-PriceScale*쌍봉하2 Then { tx12 = Text_New_Self(sDate,sTime, st+PriceScale*0,"●"); Text_SetColor(tx12,Green); Text_SetSize(tx12,30); Text_SetStyle(tx12,2,2); } } } Else { if Trend == 1 Then { if h > var1 Then var1 = h; } if Trend == -1 Then { if l < var3 Then var3 = l; } } if Trend != Trend[1] Then { if Trend == 1 Then { h2 = h; h3 = h2[1]; h4 = h3[1]; if L4 > 0 and max(L2,l3,l4) <= min(L2,l3,l4)+폭 Then { tx1 = Text_New_Self(sDate,sTime, st-PriceScale*0,"●"); Text_SetColor(tx1,Black); Text_SetSize(tx1,20); Text_SetStyle(tx1,2,2); } } Else { L2 = l; l3 = l2[1]; l4 = l3[1]; } } Else { if Trend == 1 Then { if h > h2 Then h2 = h; } if Trend == -1 Then { if l < L2 Then L2 = l; } } Condition1 = False; if max(l3,l4) <= min(l3,l4)+0.25 Then { Condition1 = true; tx3 = Text_New_Self(sDate,sTime, st+PriceScale*0,"●"); Text_SetColor(tx3,Orange); Text_SetSize(tx3,10); Text_SetStyle(tx3,2,2); } if Condition1 == true and l2 < max(L3,l4)-0.25 Then { Condition1 = False; Text_Delete(tx3); } Else { if Trend == 1 Then { if h > h2 Then h2 = h; } if Trend == -1 Then { if l < L2 Then { L2 = l; if Condition1 == true and l2 < max(L3,l4)-0.25 Then { Condition1 = False; Text_Delete(tx3); } } } } 0.25p 내에서 쓰리바닥을 형성하는지 실시간으로 보기위한 수식을 190줄 아래에 추가했는데 오류가 나오네요. 수정 부탁합니다. 1.트렌드 선이 음전환될 때, 직전저점과 전전저점의 차이가 상하 무관하게 0.25p 이내이면 트렌드 음선 상단에 동그라미 표시.두 저점 차이가 0.25p 이상이면 무표시. 2.동그라미 삭제 시점:직전저점과 전전저점중에 높은 저점을 기준으로 하여 a.아래로 0.25p 도달하기 전에 양전환시. b.계속 하락하여 -0.25p를 하향 붕괴할 때. 늘 감사합니다.
프로필 이미지
고성
2022-12-28
1292
글번호 164931
지표
답변완료

시스템

안녕하세요 가령 선물 2개약 동시 매수 진입시 1개약은 수익 50틱 청산 나머지 1개약은 100틱 청산 되는 수식 부탁드립니다 수고하세요
프로필 이미지
달마7
2022-12-28
1041
글번호 164921
시스템

신들의전쟁 님에 의해서 삭제되었습니다.

프로필 이미지
신들의전쟁
2022-12-28
11
글번호 164917
시스템

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

프로필 이미지
파워
2022-12-28
1310
글번호 164916
지표