커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

조건에 도달해도 매수체결이 안됩니다

안녕하세요 도대체 안되는 이유를 모르겠어서 도움 요청합니다. 순서대로 지표적용 하고 시스템적용 매매옵션 설정하고 정상적으로 된거 같은데 조건이 충족 되었는데도 매수체결이 안되네요. 논리적 오류가 있는건지.. 도움주시면 감사하겠습니다. 파일 첨부합니다.
프로필 이미지
레일맨
2025-06-17
177
글번호 191821
시스템
답변완료

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

항상 도와주심에 감사 드립니다. _(__)_ 아래의 수식 종목이 5봉전에 검색이 되고 10봉전과 0봉전사이에서 2060골든크로스가 나오는 종목 검색식을 부탁ㄷ립니다. _(__)_ 수식 var1 = macd(12,26); var2 = Sar(0.02,0.2); if var1 >= 0 and CrossUp(c,Var2) and C >= C[1]*1.03 and C > O Then Find(1);
프로필 이미지
한칼부르스
2025-06-17
161
글번호 191820
종목검색
답변완료

지표 수정 부탁드립니다.

안녕하세요. 항상 많은 도움 주셔서 감사합니다. 아래의 수식은 예스스탁을 통해 만든 수식인데요. input에 원하는 분을 입력하면 해당 분차트 기준으로 값이 계산되어 선으로 표시되게 하는 수식입니다. 제가 원하는 것은 여러 개의 시간을 입력할 수 있도록 동일한 수식을 합치고 싶습니다. 예를 들어 5분, 10분, 15분, 30분, 60분, 120분, 240분을 하나의 수식에 모두 입력해서 하나의 수식으로 각 분차트에서 계산된 값들이 선으로 나타나게 하고 싶습니다. 아래의 수식을 참조하여 수정 부탁드립니다. 감사합니다. input : 분(10),LENGTH(14); var : S1(0),D1(0),TM(0),TF(0),cnt(0),DFact(0); var : sum1(0),mav1(0),DPO(0),DPO1(0),DPO2(0); var : T(0),HV(0),HH(0),LV(0),LL(0); var : 매수선(0),매도선(0); Array : C1[100](0),H1[100](0),L1[100](0); DFact = (Length * 0.5) + 1; if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%분; if Bdate != Bdate[1] or (Bdate == Bdate[1] and 분 > 1 and TF < TF[1]) or (Bdate == Bdate[1] and 분 > 1 and TM >= TM[1]+분) or (Bdate == Bdate[1] and 분 == 1 and TM > TM[1]) Then { for cnt = 99 downto 1 { C1[cnt] = C1[cnt-1]; H1[cnt] = H1[cnt-1]; L1[cnt] = L1[cnt-1]; } H1[0] = H; L1[0] = L; DPO1 = DPO[1]; DPO2 = DPO1[1]; if DPO1 > 0 and DPO2 <= 0 Then { T = 1; HV = DPO1; HH = H1[1]; 매도선 = LL; } if DPO1 < 0 and DPO2 >= 0 Then { T = -1; LV = DPO1; LL = L1[1]; 매수선 = HH; } if T == 1 Then { if DPO1 > HV Then { HV = DPO1; HH = H1[1]; } } if T == -1 Then { if DPO1 < LV Then { LV = DPO1; LL = L1[1]; } } } C1[0] = C; if H1[0] > 0 and H > H1[0] Then H1[0] = H; if L1[0] > 0 and L < L1[0] Then L1[0] = L; if C1[LENGTH-DFact] > 0 then { sum1 = 0; for cnt = 0 to LENGTH-1 { sum1 = sum1+C1[cnt+DFact]; } mav1 = sum1/LENGTH; DPO = C - mav1; } if 매수선 > 0 Then Plot1(매수선,"매수선"); if 매도선 > 0 Then Plot2(매도선,"매도선"); } 감사합니다.
프로필 이미지
길게가자
2025-06-17
210
글번호 191819
지표
답변완료

일봉

수고 많으십니다. 질문 1. 국내선물 근월물 일봉의 상장때(첫거래일)부터 현재까지의 시(작)가, 고가, 저가를 표시하는 식(참고로 현재 거래되는 근월물은 2024년 9월 13일에 첫거래가 있었습니다.) 2. 이 기간 첫거래부터 현재까지의 거래량, 거래대금을 누적시키는 수식
프로필 이미지
가람봉
2025-06-17
171
글번호 191818
지표
답변완료

시스템수식 작성 부탁드립니다.

안녕하십니까. 시스템 수식 작성 부탁드립니다. 1. 조건 현재가를 X라고 할 때, X가 시가 위에 있고, 시가 < X < (시가+5) 범위 내로 처음 내려왔을 일 경우 (즉 현재가가 시간 위이고 시가+5포인트 범위 내에 처음 들어왔을 경우) 2. 진입 시가+1포인트 가격에서 지정가 매수 진입 3. 청산 1) 익절 진입한 가격에서 +10포인트 되었을 때 그 순간 지정가 매도(익절) 2) 손절 (1) 매수 진입한 캔들의 현재가가 시가-10포인트 이하가 되었을 때 바로 시장가 Stop매도(손절) 또는 (2) 매수 진입한 캔들의 저가가 시가-3포인트 이하가 되었을 경우, 현재가가 시가에 왔을때 시가 지정가 Stop매도(본절) 항상 많은 도움 주셔서 감사합니다.
프로필 이미지
길게가자
2025-06-17
185
글번호 191817
시스템
답변완료

부탁드립니다^^

아래 지표 수식을 화면 box 강세, 약세로 변환 부탁드립니다. input : length(50); input : factor(1.0); input : col_up(Red); input : col_dn(Lime); input : col_ul(Cyan); var : direction(0),count_up(0),count_dn(0); var : volatility(0),upper(0),lower(0),sig_up(False),sig_dn(False); var : upper_band(0),lower_band(0); var : hlc3(0),alpha(0),ATrv(0); var : tx1(0),tx2(0); var1 = ma(C,25); var2 = ma(C,length); hlc3 = (H+L+C)/3; volatility = ma(high-low, 70) * factor; upper = highest(var1 + volatility, int(length/2)); lower = lowest(var2 - volatility, int(length/2)); sig_up = CrossUp(hlc3, upper); sig_dn = CrossDown(hlc3, lower); if sig_up == true Then direction = 1; if sig_dn == true Then direction = -1; upper = iff(direction == 1 , Nan , upper); lower = iff(direction == -1 , Nan , lower); if direction == 1 Then { count_up = count_up+ 0.5; count_dn = 0; } if direction == -1 Then { count_dn = count_dn+0.5; count_up = 0; } count_up = iff(count_up > 70 , 70 , count_up); count_dn = iff(count_dn > 70 , 70 , count_dn); alpha = 1 / 100 ; ATrV = IFf(IsNan(ATrV[1]) == true, ma(TrueRange,100) , alpha * TrueRange + (1 - alpha) * IFf(isnan(ATrV[1])==true,0,ATrV[1])); upper_band = lower + ATRV*5; lower_band = upper - ATRV*5; if IsNaN(upper_band) == False Then plot1(upper_band, "Upper Wave",iff(index % 2 == 0 , nan , col_ul)); Else NoPlot(1); if IsNaN(lower_band) == False Then plot2(lower_band, "Lower Wave",iff(index % 2 == 0 , nan , col_ul)); Else NoPlot(2); if IsNaN(upper) == False Then plot3(upper, "Upper Band",col_dn); Else NoPlot(3); if IsNaN(lower) == False Then plot4(lower, "Lower Band",col_up); Else NoPlot(4); plot5(C); if direction != direction[1] and direction == 1 Then { tx1 = Text_New_Self(sDate,sTime,Lower,"●"); Text_SetStyle(tx1,2,2); Text_SetColor(tx1,col_up); Text_setsize(Tx1,15); tx2 = Text_New_Self(sDate,sTime,L,"▲"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,col_up); Text_setsize(Tx2,19); } if direction != direction[1] and direction == -1 Then { tx1 = Text_New_Self(sDate,sTime,upper,"●"); Text_SetStyle(tx1,2,2); Text_SetColor(tx1,col_dn); Text_setsize(Tx1,15); tx2 = Text_New_Self(sDate,sTime,H,"▼"); Text_SetStyle(tx2,2,1); Text_SetColor(tx2,col_dn); Text_setsize(Tx2,19); } 감사합니다~맛점하세요^^
프로필 이미지
체리피커
2025-06-17
196
글번호 191814
지표
답변완료

안녕하세요

데이트레이딩에서 당일 고점 또는 저점을 갱신시 매수 또는 매도 진입 하는시스템 식을 부탁드립니다. 청산은 당일 청산입니다 ^^
프로필 이미지
gunman
2025-06-17
155
글번호 191798
시스템

와우리 님에 의해서 삭제되었습니다.

프로필 이미지
와우리
2025-06-17
23
글번호 191797
시스템
답변완료

수식좀 요청 드립니다.

ㅇ항상 많은 도움에 고맙습니다. ㅇ 아래 수식에 보면 3등분선이 나오는데 색상좀 부탁 드림니다. ## input : n(20); input : BW(1); var : hh(0),ll(0),idx(0),tf(0),hh1(0),ll1(0),hh2(0),ll2(0); var : TL1(0),TL2(0),d1(0),t1(0),TL3(0); var : HTL1(0),HTL2(0),HTL3(0),HTL4(0),HTL5(0),HTL6(0),ii(0),tx(0); if Bdate != Bdate[1] Then idx = 0; Else idx = idx+1; TF = idx%n; if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then { hh = h; ll = l; hh1 = hh[1]; ll1 = ll[1]; hh2 = hh1[1]; ll2 = ll1[1]; d1 = sDate; t1 = sTime; ii = 1; #TL_Delete(TL1); //TL1 = TL_new(d1,t1,hh,NextBarSdate,NextBarStime,HH); // TL1 = TL_new(d1,t1,hh,NextBarSdate,NextBarStime,NextBarStime); TL1 = TL_New(sDate,sTime,HH[0],NextBarSdate,NextBarStime,HH[0]); //TL1 = TL_New(sDate[0],sTime[0],HH,sDate,sTime,HH); TL_SetColor(TL1,RgB(0,0,255)); TL_SetSize(TL1,BW); //TL_SetEnd(TL1[0],sDate,sTime,NextBarStime); //TL1 = TL_new(sDate,sTime,HH+0.25,NextBarSdate,NextBarStime,HH+0.25); //TL_SetEnd(TL1,sDate,sTime,HH+0.25); //TL_SetExtRight(TL1[10],true); #TL_Delete(TL2); TL2 = TL_new(d1,t1,ll,NextBarSdate,NextBarStime,ll); TL_SetColor(TL2,RgB(0,0,255)); TL_SetSize(TL2,BW); //TL_SetStyle((TL2,2,1); #TL_Delete(TL3); TL3 = TL_new(d1,t1,(hh+ll)/2,NextBarSdate,NextBarStime,(hh+ll)/2); TL_SetColor(TL3,Rgb(0,0,255)); TL_SetSize(TL3,BW); } Else { ii = ii +1; TL_SetEnd(TL1,sDate,sTime,HH); TL_SetEnd(TL2,sDate,sTime,LL); TL_SetEnd(TL3,sDate,sTime,(HH+LL)/2); if ii%2 == 0 Then { tx = Text_New(sDate,sTime,HH,NumToStr(ii,0)); Text_SetStyle(tx,2,1); } } #if h > hh Then #{ # hh = h; // TL_SetBegin(TL1,d1,t1,hh); // TL_SetBegin(TL3,d1,t1,(hh+ll)/2); #} #if l < ll Then #{ # ll = l; //TL_SetBegin(TL2,d1,t1,ll); // TL_SetBegin(TL3,d1,t1,(hh+ll)/2); #} //TL_SetEnd(TL1,NextBarSdate,NextBarStime,hh); //TL_SetEnd(TL2,NextBarSdate,NextBarStime,ll); //TL_SetEnd(TL3,NextBarSdate,NextBarStime,(hh+ll)/2); //var1 = (hh+ll)/2; //var2 = (hh1+ll1)/2; //var3 = (hh2+ll2)/2; //Var4 = MA(var1,5) ; // Plot1(Var4-PriceScale*10,"1",RgB(255,0,255),DeF,2) ; //Plot2(var2,"2",RgB(0,0,255),DeF,3) ; //Plot3(var3,"3",RgB(0,0,0),DeF,3) ; input : n2(20); var : hh3(0),ll3(0),idx3(0),tf3(0),hh4(0),ll4(0),hh5(0),ll5(0); var : TL11(0),TL12(0),d13(0),t13(0),TL13(0); if Bdate != Bdate[1] Then idx3 = 0; Else idx3 = idx+1; tf3 = idx3%n2; if Bdate != Bdate[1] or (Bdate == Bdate[1] and tf3 < tf3[1]) Then { hh3 = h; ll3 = l; hh4 = hh3[1]; ll4 = ll3[1]; hh5 = hh4[1]; ll5 = ll4[1]; d13 = sDate; t13 = sTime; #TL_Delete(TL11); // TL11 = TL_new(d13,t13,hh3,NextBarSdate,NextBarStime,hh3); #TL_Delete(TL12); // TL12 = TL_new(d13,t13,ll3,NextBarSdate,NextBarStime,ll3); #TL_Delete(TL13); // TL13 = TL_new(d13,t13,(hh+ll)/2,NextBarSdate,NextBarStime,(hh+ll)/2); } if h > hh3 Then { hh3 = h; TL_SetBegin(TL11,d13,t13,hh3); TL_SetBegin(TL13,d13,t13,( hh3 + ll3)/2); } if l < ll3 Then { ll3 = l; TL_SetBegin(TL12,d13,t13,ll3); TL_SetBegin(TL13,d13,t13,( hh3 + ll3)/2); } //TL_SetEnd(TL11,NextBarSdate,NextBarStime,hh3); //TL_SetEnd(TL12,NextBarSdate,NextBarStime,ll3); //TL_SetEnd(TL13,NextBarSdate,NextBarStime,(hh+ll)/2); var1 = ( hh3 + ll3)/2; var2 = ( hh4 + ll4)/2; var3 = ( hh5 + ll5)/2; Var4 = MA(var1,5) ; //Plot1(Var4-PriceScale*1,"1",RgB(255,0,255),DeF,0) ; * 항상 많은 도움에 고맙습니다. 수고하십시요.
프로필 이미지
요타
2025-06-17
230
글번호 191796
지표
답변완료

수식 수정 의뢰 드립니다.

안녕하세요! 아래 수식을 예스로 변환을 좀 부탁드립니다! 감사합니다! //@version=6 indicator('AWMA', overlay = true) //inputs _Period1 = input(3, 'WMA1 Period') _Period2 = input(5, 'WMA2 Period') _Period3 = input(8, 'WMA3 Period') _Period4 = input(10, 'WMA4 Period') _Period5 = input(12, 'WMA5 Period') _Period6 = input(15, 'WMA6 Period') _Period7 = input(30, 'WMA7 Period') _Period8 = input(35, 'WMA8 Period') _Period9 = input(40, 'WMA9 Period') _Period10 = input(45, 'WMA10 Period') _Period11 = input(50, 'WMA11 Period') _Period12 = input(60, 'WMA12 Period') //calculate wma wma1 = ta.wma(close, _Period1) wma2 = ta.wma(close, _Period2) wma3 = ta.wma(close, _Period3) wma4 = ta.wma(close, _Period4) wma5 = ta.wma(close, _Period5) wma6 = ta.wma(close, _Period6) wma7 = ta.wma(close, _Period7) wma8 = ta.wma(close, _Period8) wma9 = ta.wma(close, _Period9) wma10 = ta.wma(close, _Period10) wma11 = ta.wma(close, _Period11) wma12 = ta.wma(close, _Period12) plot(wma1, color = color.new(#4fc3d2, 0), title = 'short1') plot(wma2, color = color.new(#4fc3d2, 0), title = 'short2') plot(wma3, color = color.new(#4fc3d2, 0), title = 'short3') plot(wma4, color = color.new(#4fc3d2, 0), title = 'short4') plot(wma5, color = color.new(#4fc3d2, 0), title = 'short5') plot(wma6, color = color.new(#4fc3d2, 0), title = 'short6') plot(wma7, color = color.new(#fe0d5f, 0), title = 'long1') plot(wma8, color = color.new(#fe0d5f, 0), title = 'long2') plot(wma9, color = color.new(#fe0d5f, 0), title = 'long3') plot(wma10, color = color.new(#fe0d5f, 0), title = 'long4') plot(wma11, color = color.new(#fe0d5f, 0), title = 'long5') plot(wma12, color = color.new(#fe0d5f, 0), title = 'long6')
프로필 이미지
qha71
2025-06-17
232
글번호 191795
지표