커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

분봉 시간개념으로 매수.매도

5분봉상 당일 9시 5분 종가기준 거래량 //전일 9시 5분 종가기준 거래량 //전일 9시5분 거래량보다 당일 9시5분 거래량이 많으면 매도전일 9시5분 거래량보다 당일 9시5분 거래량이 적으면 매수input : ff(1),vv(1); 내용SetStopLoss(ff, PointStop);SetStopProfittarget(vv, PointStop);이런식으로 짜고 싶은데 알려주세요~
프로필 이미지
saidas
2025-11-12
63
글번호 227945
시스템
답변완료

수식변환 부탁드립니다

1. 다음의 수식을 강약세의 강조식으로 변환하여 주세요 MD=(eavg(C,12)-eavg(C,26))/C*100; MDs=(eavg(MD,9))/C*100; MD조건=MD>=MDs && MD(1)<=MD; STO=Stochasticsslow(12,5); STOs=eavg(Stochasticsslow(12,5),5); STO조건=STO>=STOs && STO>=20; DP=DIPlus(11); DM=DIMinus(11); AX=ADX(11); DPl=Lowest(DP,9); DMl=Lowest(DM,9); DM조건=DP>DM && DM<=25; PN=PVI(C)+NVI(C); PNs=AVG(PN,9); PN조건=PN>PNs; TX=Trix(10); TXs=eavg(TX, 5); TX조건=TX>TXs && TX(1)<=TX; 핸들A=100-(100/(1+TEMA(if((C-C(1))>0,(C-C(1)),0),9)/TEMA(if((C-C(1))<0,abs((C-C(1))),0),9))); 핸들B=100-(100/(1+DEMA(if((C-C(1))>0,(C-C(1)),0),9)/DEMA(if((C-C(1))<0,abs((C-C(1))),0),9))); 핸들DT=핸들B/핸들A*100; 핸들DTs=eavg(핸들DT,9); 핸들조건=핸들DT>핸들DTs && 핸들DT>=100; RM=RMI(5,11); RM강세=RM>=80; 조건a : (MD조건+STO조건+DM조건+PN조건+TX조건+핸들조건)>=2 조건a가 만족하면 lightgreen색으로, 만족하지 않으면 gray색으로 표시되게 요망 Am=avg(C,35/2,가중); Bm=avg(C,35,가중); Hm=avg(2*Am-Bm,floor(Sqrt(35)),가중); As=avg(C,20/2,가중); Bs=avg(C,20,가중); Hs=avg(2*As-Bs,floor(Sqrt(20)),가중); 제한=SUM(CrossDown(Hs,Hm),10)<1; Hm조건=CrossUp(C,Hm) or C>Hm; Hs조건=(CrossUp(C,Hs) or C>Hs) && C>=O && 제한; 조건b : Hm조건 or Hs조건 조건b가 만족하면 green색으로, 만족하지 않으면 darkgray색으로 표시되게 요망상기수식은 하나의 수식으로 작성부탁드립니다2. 상기수식에 대한 신호검색 수식을 추가로 부탁드립니다 가. 조건a가 처음 만족할때에만 매수신호를 저가에 표시되게 하고, 만족하지 않을때가 처음 발생하는 경우에 매도신호를 고가에 표시되게 수식을 부탁드립니다. 나. 조건b가 처음 만족할때에만 매수신호를 저가에 표시되게 하고, 만족하지 않을때가 처음 발생하는 경우에 매도신호를 고가에 표시되게 수식을 부탁드립니다. 다. 조건a와 조건b가 동시 만족하다가 조건a는 만족하지않고 조건b만 만족하는 경우가 발생한 상태나 이후에 처음으로 발생하는 양봉에 매수신호가 발생되게 한다. 이 신호는 첫 발생한 양봉의 시가보다 낮은 시가이면서 양봉인경우는 3번째 신호까지는 매수신호가 발생되게 하여야 한다. 시가비교는 신호발생된 현재 양봉시가와 직전양봉시가와의 비교임 최소한 < 다>신호는 꼭 만들어 주세요.
프로필 이미지
해피오
2025-11-12
88
글번호 227944
강조
답변완료

문의드립니다

수고하십니다.수식부탁드립니다.1.data2 이동평균선 상향돌파시 data2매수하라.2.data2이동평균선 상향돌파이후에 data1 파라볼릭(종가)매수신호시 data1매수하라.3.data2이동평균선 하향돌파신호 or data1파라볼릭(종가)매도신호시 data1매도하라참고로data2 는 긴시간60분120분봉이며 data1은 짧은시간5분10분봉입니다.늘 노고에 감사드립니다
프로필 이미지
2685up
2025-11-12
55
글번호 227943
시스템
답변완료

종목검색식 부탁드립니다

1. 주봉에서, 주 20 이평을 양봉캔들 로 돌파하는 종목검색식 부탁드립니다.2.주봉에서, 주 20 이평을 양봉캔들 로 돌파하는, 0봉전~10봉전까지의 모든종목 검색식 부탁드려요.
프로필 이미지
일지매7
2025-11-12
52
글번호 227939
종목검색
답변완료

수식 부탁드립니다

input : 익절(400),손절(100),k(40),k1(40); Buy("b1",AtStop,NextBarOpen+PriceScale*k); Sell("s1",AtStop,NextBarOpen-PriceScale*k1);SetStopProfittarget(익절,PointStop);SetStopLoss(손절,PointStop);위 수식을 30분봉에서 일일 매도,매수 각한번씩만 거래되게 수식 부탁드립니다
프로필 이미지
네온0609
2025-11-12
45
글번호 227937
시스템
답변완료

수식을검색식으로부탁드립니다

t=linearregressionvalue(c,50,0)+linearregressionslope(c,50); 상승=t>t(1); 하락=t<t(1); 조건=sum(하락,5)==5 && sum(상승(5),5)==5; th=valuewhen(1,조건,t(5)); crossup(c,th) && th>t && t>t(1) && t(1)>t(2)
프로필 이미지
달오
2025-11-12
61
글번호 227930
종목검색
답변완료

문의 드립니다

시스템 스탑주문에서 주문설정 주문거래소에스마트, KRX, NXT 세가지 있는데 스마트가 뭔가요 ?
프로필 이미지
미래테크
2025-11-12
41
글번호 227929
시스템
답변완료

문의

아래수식은익절 1 또는 익절2가 발생하면 그 다음 진입은 익절1 또는 익절2를 돌파하면 진입해달는 요청에 답변을 주신 수식입니다.수식을 확인해 보니 익절 1 이후 첫번째 진입하는 경우만 익절 1을 돌파하면 진입하고 두번째나 세번째 진입은 익절1 가격을 돌파하지 않아도 진입하는 현상이 발생합니다. 두번째나 세번째 진입도 익절1을 돌파할 때만 진입이 가능한 수식으로 수정바랍니다. 익절 2 이후 첫번째 진입하는 경우만 익절 2를 돌파하면 진입하고 두번째나 세번째 진입은 익절2 가격을 돌파하지 않아도 진입하는 현상이 발생합니다. 두번째나 세번째 진입도 익절2를 돌파할 때만 진입이 가능한 수식으로 수정바랍니다. 한마디로 익절이하에서는 진입하지 않는 수식을 원합니다.수식은 진입과정에서 익절1 (b1)은 한 번만 발생하고 익절2(b2)는 반복해서 발생합니다.일단 익절1이 발생하면 익절1 이상에서만 진입하고, 그 후 익절2가 발생하면 익절2 이상에서만 진입하길 원합니다.수식 수정 부탁드립니다.항상 고맙습니다.*************************************************************************************************************************input : 진입시간(084500),진입제한시간(150000);input : 거래횟수(5),누적패수(5),연속패수(3),누적패수조정(4);input : b1(1),진입눌림1(2),진입돌파1(3);input : b2(2),진입눌림2(3),진입돌파2(4);input : als(550),atr1(0),atr2(315);input : bls(480),btr1(0),btr2(730);input : b1lock(120000),익절1(330);input : b2lock(140000),익절2(590);var : T1(0),entry(0),LL(0),EH(0),E1(0),H1(0),i1(0),S1(0),L1(0),V1(0);var : Tcond(false);var : loss(0),consecLoss(0),패수(0),익절가(0);//영업일변경if bdate != bdate[1] Then{ //손실횟수 초기화 0 loss = 0; //연속손실횟수 초기화 0 consecLoss = 0; //패수는 누적패수 패수 = 누적패수; //익절1이나 익절2가 발생하면 청산가격 저장할 변수 익절가 = 0;}//청산발생if TotalTrades > TotalTrades[1] Then{ //손실이면 if PositionProfit(1) < 0 Then { //loss 1씩 증가 loss = loss+1; //consecLoss 1씩 증가 consecLoss = consecLoss+1; //consecLoss이 3이면 패수를 누적패수에서 누적패수조정으로 변경 if consecLoss == 연속패수 Then { 패수 = 누적패수조정; } } Else //손실이 아니면 consecLoss으로 초기화 consecLoss = 0; //청산 시 익절1이나 익절2이면 익절가에 청산가격 저장 if IsExitName("익절1",1) == true or IsExitName("익절2",1) == true Then 익절가 = ExitPrice(1); Else // 아니면 익절가 = 0; //익절가는 0}if (sdate != sdate[1] and stime >= 진입시간) or (sdate == sdate[1] and stime >= 진입시간 and stime[1] < 진입시간) Then Tcond = true; if (sdate != sdate[1] and stime >= 진입제한시간) or (sdate == sdate[1] and stime >= 진입제한시간 and stime[1] < 진입제한시간) Then Tcond = false; if (sdate != sdate[1] and stime >= 진입시간) or (sdate == sdate[1] and stime >= 진입시간 and stime[1] < 진입시간) Then{ T1 = TotalTrades; E1 = 0; LL = L;}if stime >= 진입시간 then{ if L < LL Then LL = L; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if MarketPosition == 0 and entry == 0 Then{ if E1 == 0 and C >= LL+PriceScale*B1 Then{ E1 = 1; H1 = H; i1 = index; V1 = LL; //시작점 종가 } if E1 == 1 and index > i1 then{ if H > H1 Then H1 = H; #저가가 시작봉종가보다 클때만 눌림체크 if L >= V1 and L <= H1-PriceScale*진입눌림1 Then{ E1 = 2; i1 = index; S1 = H1; } } //시작점 종가보다 낮은 가격이 발생하면 초기화 if E1 >= 1 and L < V1 Then{ E1 = 0; LL = L; } if loss < 패수 and E1 == 2 and index > i1 and C >= S1+PriceScale*진입돌파1 and Tcond == true Then{ buy("b1"); } } if TotalTrades > TotalTrades[1] Then{ E1 = 0; LL = L; } if L < LL Then LL = L; if MarketPosition == 0 and entry >= 1 and entry < 거래횟수 Then { if E1 == 0 and C >= LL+PriceScale*B2 Then{ E1 = 1; H1 = H; i1 = index; V1 = LL; //시작점 종가 } if E1 == 1 and index > i1 then{ if H > H1 Then H1 = H; #저가가 시작봉종가보다 클때만 눌림체크 if L >= V1 and L <= H1-PriceScale*진입눌림2 Then{ E1 = 2; i1 = index; S1 = H1; } } //시작점 종가보다 낮은 가격이 발생하면 초기화 if E1 >= 1 and L < V1 Then{ E1 = 0; LL = L; } if loss < 패수 and loss < 누적패수 and E1 == 2 and index > i1 and C >= S1+PriceScale*진입돌파2 and Tcond == true and (익절가 == 0 or (익절가 > 0 and C > 익절가)) Then //익절가가 0이거나 익절가가 0보다크면 종가가 익절가보다 커야 함 { buy("b2"); } } } if MarketPosition== 1 Then{ if IsEntryName("b1") == true Then { SetStopLoss(als,PointStop); SetStopTrailing(atr2,atr1,PointStop,1); } Else if IsEntryName("b2") == true Then { SetStopLoss(bls,PointStop); SetStopTrailing(btr2,btr1,PointStop,1); } Else { SetStopLoss(0); SetStopTrailing(0,0); }}if marketposition() == 1 and IsEntryName("b1") == true and stime<b1lock Then ExitLong("익절1",Atlimit,EntryPrice+익절1);if marketposition() == 1 and IsEntryName("b2") == true and stime<b2lock Then ExitLong("익절2",Atlimit,EntryPrice+익절2);SetStopEndofday(151500);
프로필 이미지
목마와숙녀
2025-11-12
41
글번호 227928
시스템
답변완료

종목검색식 부탁드립니다

아래수식의 변환을 부탁드립니다$$$$$$$$$$$$$$$$$$$$$$$$$$$$$HH=Highest(H,기간);LL=Lowest(L,기간);Mid=(HH+LL)/2;Hs=(HH+Mid)/2;Ls=(LL+Mid)/2;Hv=sum(if(C>=Hs,V,0),기간);Lv=sum(if(C<=Ls,V,0),기간);Mv=sum(if(C>Ls && C<Hs,V,0),기간);Maxv=Max(Hv,Mv,Lv);S1=if(Maxv==Hv,Hs,if(Maxv==Mv,Mid,Ls)); // 기간(20)CrossUp(C,S1)감사합니다
프로필 이미지
김승빈
2025-11-12
44
글번호 227927
종목검색
답변완료

아래의 트레이디이뷰 수식을 변환부탁드립니다.

//@version=6indicator("Trend Filter (2-pole) [BigBeluga]", overlay = true)// INPUTS ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{int length = input.int(20, "Length")float damping = input.float(0.9, "Damping", minval = 0.1, maxval = 1.0, step = 0.01)int ris_fal = input.int(5, "Rising and Falling")float bands = input.float(1.0, "Bands", step = 0.1, minval = 0.5)color up_col = input.color(color.lime, "↑", inline = "color")color dn_col = input.color(color.red, "↓", inline = "color")color __col = input.color(color.yellow, "〜", inline = "color")bool bar_col = input.bool(false, "BarColor", inline = "Features")bool signals = input.bool(false, "Signals", inline = "Features")// }// CALCULATIONS――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{atr = ta.atr(200) * bands//@function Two-pole filter//@param src (series float) Source data (e.g., price)//@param length (float) Length of the filter (higher value means smoother output)//@param damping (float) Damping factor for the filter//@returns (series float) Filtered valuemethod two_pole_filter(float src, int length, float damping) => // Calculate filter coefficients float omega = 2.0 * math.pi / length float alpha = damping * omega float beta = math.pow(omega, 2) // Initialize the filter variables var float f1 = na var float f2 = na // Update the filter f1 := nz(f1[1]) + alpha * (src - nz(f1[1])) f2 := nz(f2[1]) + beta * (f1 - nz(f2[1])) f2tp_f = close.two_pole_filter(length, damping)var rising = 0var falling = 0up = tp_f > tp_f[2]dn = tp_f < tp_f[2]if up rising += 1 falling := 0if dn rising := 0 falling += 1color = up ? color.from_gradient(rising, 0, 15, __col, up_col) : dn ? color.from_gradient(falling, 0, 15, __col, dn_col) : __col// }// PLOT ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{plot(tp_f, "Two-Pole Filter", color = color, linewidth = 3)plotshape(falling >= ris_fal ? tp_f + atr : na, "Falling", shape.circle, location.absolute, color = color)plotshape(rising >= ris_fal ? tp_f - atr : na, "Rising", shape.circle, location.absolute, color = color)bool sig_up = ta.crossover(rising, ris_fal) and barstate.isconfirmed and signalsbool sig_dn = ta.crossover(falling, ris_fal) and barstate.isconfirmed and signalsplotshape(sig_dn ? tp_f[1] + atr : na, "Falling", shape.triangledown, location.absolute, color = color, size = size.tiny, offset = -1)plotshape(sig_up ? tp_f[1] - atr : na, "Rising", shape.triangleup, location.absolute, color = color, size = size.tiny, offset = -1)barcolor(bar_col ? color : na)// }
프로필 이미지
해암
2025-11-12
81
글번호 227926
지표