커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내

안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
프로필 이미지
예스스탁
2026-02-27
8166
글번호 230811
지표
답변완료

부탁드립니다.

분봉차트에서 30분에서 다음 30분까지 60분동안의 시고저종을 표시하는 지표 부탁드립니다. (예를 들면 19시30분 부터 20시30분까지, 20시30분부터 21시30분까지.. 이런 식의 시고저종을 부탁 드립니다.)
프로필 이미지
예시
2016-01-23
177
글번호 94713
지표
답변완료

문의드립니다.

if C > C[1] Then var1 = 1; if C < C[1] Then var1 = -1; if var1 == 1 Then plot1(V,"1",RED); Else plot1(V,"1",BLACK); 거래량 수식어입니다. 위 수식에서 빨강색차트만나오고 검은색차트는 비워있게하는 수식어부탁립니다. 그리고 반대로 검은색차트만나오고 빨강색차트는 비워있게하는 수식어부탁드립니다. 항상 감사합니다.
프로필 이미지
자도
2016-01-23
169
글번호 94712
지표
답변완료

글번호 46065번(글번호 46052 재질문(251호)) 재질문

안녕하세요? 글번호 46052번을 재질문 드렸던 글번호 46065번 재질문입니다. 아래의 함수를 60분봉으로 CL.1을 돌려보면 그림 첨부와 같이 1/20 9시 시가에 매도신호가 떠야 하나 뜨지 않습니다. (22일 16시 시가에도 매수신호가 발생하지 않았으며 기타 몇군데 관찰이 되고 있습니다.) 적용한 함수는 다음과 같습니다. input : xtime(60000); var : tcond(false),cond1(false),cond2(false); if stime == xtime or (stime > xtime and stime[1] < Xtime) Then{ Tcond = false; } if bdate != bdate[1] Then{ Tcond = true; Condition1 = false; Condition2 = false; } var1 = ma(c,15); var2 = ma(c,21); cond1 = C > var1 and var1 > var2; cond2 = C < var1 and var1 < var2; if cond1 == true and cond1[1] == false then Condition1 = true; if cond2 == true and cond2[1] == false then Condition2 = true; if Tcond == true And Condition1 == true and cond1 == true and var1 > var1[1] and var2 > var2[1] Then buy("B"); if Tcond == true And Condition2 == true and Cond2 == true and var1 < var1[1] and var2 < var2[1] Then sell("S"); SetStopLoss(1.8,PercentStop); SetStopProfittarget(3.2,PercentStop);
프로필 이미지
통큰베팅
2016-01-23
205
글번호 94711
시스템
답변완료

수익수식검증 요청 및 추가사항[매도진입부분10틱~100틱까지]

===>100틱까지 매수진입후-->수익표시 수식을 만들었는되요 무엇이 잘못되었는지 검증이 아니되옵니다요 수식을 검정하여 주시고요 repeat---반드시 "매도진입후"~"매수진입후"는빼시고===>오직"틱"만 --> 현재 오른쪽에나오는것을 챠트왼쪽에 나오게 하여주세요 감사합니당~!!! ===>그리고 숫자뒤에30.00에서 30만나오게하여주시고 ===>매도진입후는 40틱까지만되어있는데 이것도 100틱까지해야하는지요-- 매수진입식과 매도진입식 똑같이해야 되는지요---> ===>매도와 매수진입후 100틱까지 수식을 "틱"표시되게 할려구요 항상 수고넘넘 많이 하시어 감사합니다 ================================================================= Input&nbsp;:&nbsp;Period1(3),Period2(3),&nbsp;shortPeriod(5),&nbsp;longPeriod(12),&nbsp;Period(5),Length1(14),Length2(3),Length3(3),rsiperiod(12),trixperiod(7); &nbsp;Inputs:&nbsp;Length(7),&nbsp;Pval(0.01); &nbsp;Variables:&nbsp;Mom(0),Tl(0),tx(0); &nbsp;Var&nbsp;:&nbsp;Pivot(0),R1(0),R2(0),S1(0),S2(0); &nbsp;var&nbsp;:&nbsp;DD(0),TT(0),TL11(0),TL12(0),TL13(0),TL14(0),TL15(0),TL16(0),TL17(0),TL18(0); &nbsp;var&nbsp;:&nbsp;Tx11(0),Tx12(0),Tx13(0),Tx14(0),Tx15(0),Tx16(0),Tx17(0),Tx18(0); &nbsp;Pivot&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1))/3; &nbsp;R1&nbsp;=&nbsp;2*Pivot-DayLow(1); &nbsp;R2&nbsp;=&nbsp;Pivot+DayHigh(1)-DayLow(1); &nbsp;S1&nbsp;=&nbsp;2*Pivot-DayHigh(1); &nbsp;S2&nbsp;=&nbsp;Pivot-DayHigh(1)+DayLow(1); &nbsp;If&nbsp;DayClose(1)&nbsp;>&nbsp;DayOpen(1)&nbsp;Then&nbsp; &nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var1&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayHigh(1))/2-DayLow(1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var2&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayHigh(1))/2-DayHigh(1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var3&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayHigh(1))/4; &nbsp;} &nbsp;Else&nbsp;&nbsp;If&nbsp;DayClose(1)&nbsp;<&nbsp;DayOpen(1)&nbsp;Then&nbsp; &nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var1&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayLow(1))/2-DayLow(1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var2&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayLow(1))/2-DayHigh(1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var3&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayHigh(1))/4; &nbsp;} &nbsp;Else&nbsp; &nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var1&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayClose(1))/2-DayLow(1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var2&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayClose(1))/2-DayHigh(1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var3&nbsp;=&nbsp;(DayHigh(1)+DayLow(1)+DayClose(1)+DayHigh(1))/4; &nbsp;} &nbsp;Mom&nbsp;=&nbsp;C-&nbsp;C[Length]; &nbsp;value1&nbsp;=&nbsp;ema(&nbsp;c,period1); &nbsp;value2&nbsp;=&nbsp;ma(macd(shortperiod,longperiod),period); &nbsp;value3&nbsp;=&nbsp;StochasticsD(Length1,Length2,Length3); &nbsp;value4&nbsp;=&nbsp;rsi(rsiperiod); &nbsp;value5&nbsp;=&nbsp;trix(trixperiod); &nbsp;value6&nbsp;=&nbsp;highest(H,&nbsp;Period2); &nbsp;value7&nbsp;=&nbsp;lowest(l,period2); &nbsp;if&nbsp;value1-&nbsp;value1[1]&nbsp;>&nbsp;0&nbsp;and&nbsp;value2&nbsp;>&nbsp;value2[1]&nbsp;and&nbsp;value3&nbsp;-&nbsp;value3[1]&nbsp;>&nbsp;0&nbsp;and&nbsp;value4&nbsp;-&nbsp;value4[1]&nbsp;>&nbsp;0&nbsp;and&nbsp;value5&nbsp;-&nbsp;value5[1]&nbsp;>&nbsp;0&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;(value6&nbsp;+&nbsp;value7)/2&nbsp;-&nbsp;(value6&nbsp;+&nbsp;value7[1])/2&nbsp;>0&nbsp;and&nbsp;Mom&nbsp;>&nbsp;0&nbsp;AND&nbsp;Mom&nbsp;>=&nbsp;Mom[1]&nbsp;AND&nbsp;MarketPosition()&nbsp;<>&nbsp;1&nbsp;then &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;매수/매도청산&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Buy("매수",onclose);&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;#&nbsp;매도/매수청산 If&nbsp;&nbsp;value1-&nbsp;value1[1]&nbsp;<&nbsp;0&nbsp;and&nbsp;value2&nbsp;<&nbsp;value2[1]&nbsp;and&nbsp;value3&nbsp;-&nbsp;value3[1]&nbsp;<&nbsp;0&nbsp;and&nbsp;value4&nbsp;-&nbsp;value4[1]&nbsp;<&nbsp;0&nbsp;and&nbsp;value5&nbsp;-&nbsp;value5[1]&nbsp;<&nbsp;0&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;(value6&nbsp;+&nbsp;value7)/2&nbsp;-&nbsp;(value6&nbsp;+&nbsp;value7[1])/2&nbsp;<&nbsp;0&nbsp;and&nbsp;Mom&nbsp;<&nbsp;0&nbsp;AND&nbsp;Mom&nbsp;<=&nbsp;Mom[1]&nbsp;AND&nbsp;MarketPosition()&nbsp;<>&nbsp;-1&nbsp;Then&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sell("매도",onclose);&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;var&nbsp;:&nbsp;TL1(0),TL2(0),TL3(0),TL4(0); &nbsp;var&nbsp;:&nbsp;TX1(0),TX2(0),TX3(0),TX4(0); &nbsp;if&nbsp;MarketPosition&nbsp;==&nbsp;1&nbsp;Then{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL1&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*10,sdate,stime,EntryPrice+PriceScale*10); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx1&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*10,"틱&nbsp;"+NumToStr(PriceScale*10,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx1,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL2&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*20,sdate,stime,EntryPrice+PriceScale*20); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx2&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*20,"틱&nbsp;"+NumToStr(PriceScale*20,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx2,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl3); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL3&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*30,sdate,stime,EntryPrice+PriceScale*30); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx3); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx3&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*30,"틱&nbsp;"+NumToStr(PriceScale*30,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx3,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl4); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL4&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*40,sdate,stime,EntryPrice+PriceScale*40); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx4); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx4&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*40,"틱&nbsp;"+NumToStr(PriceScale*40,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx4,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl5); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL5&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*50,sdate,stime,EntryPrice+PriceScale*50); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx5); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx5&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*50,"틱&nbsp;"+NumToStr(PriceScale*50,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx5,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl6); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL6&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*60,sdate,stime,EntryPrice+PriceScale*60); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx6); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx6&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*60,"틱&nbsp;"+NumToStr(PriceScale*60,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx6,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl7); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL7&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*70,sdate,stime,EntryPrice+PriceScale*70); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx7); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx7&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*70,"틱&nbsp;"+NumToStr(PriceScale*70,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx7,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl8); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL8&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*80,sdate,stime,EntryPrice+PriceScale*80); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx8); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx8&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*80,"틱&nbsp;"+NumToStr(PriceScale*80,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx8,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl9); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL9&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*90,sdate,stime,EntryPrice+PriceScale*90); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx9); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx9&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*90,"틱&nbsp;"+NumToStr(PriceScale*90,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx9,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl10); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL10&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice+PriceScale*100,sdate,stime,EntryPrice+PriceScale*100); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx10); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx10&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice+PriceScale*100,"틱&nbsp;"+NumToStr(PriceScale*100,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx10,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;if&nbsp;MarketPosition&nbsp;==&nbsp;-1&nbsp;Then{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL1&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice-PriceScale*10,sdate,stime,EntryPrice-PriceScale*10); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx1&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice-PriceScale*10,"틱&nbsp;"+NumToStr(PriceScale*10,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx1,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL2&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice-PriceScale*20,sdate,stime,EntryPrice-PriceScale*20); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx2&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice-PriceScale*20,"틱&nbsp;"+NumToStr(PriceScale*20,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx2,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl3); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL3&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice-PriceScale*30,sdate,stime,EntryPrice-PriceScale*30); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx3); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx3&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice-PriceScale*30,"틱&nbsp;"+NumToStr(PriceScale*30,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx3,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL_Delete(tl4); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TL4&nbsp;=&nbsp;TL_New(EntryDate,entrytime,EntryPrice-PriceScale*40,sdate,stime,EntryPrice-PriceScale*40); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_Delete(tx4); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx4&nbsp;=&nbsp;Text_New(sdate,stime,EntryPrice-PriceScale*40,"틱&nbsp;"+NumToStr(PriceScale*40,2)+"&nbsp;수익");&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Text_SetStyle(Tx4,2,2); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;} &nbsp;if&nbsp;date&nbsp;!=&nbsp;date[1]&nbsp;Then{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DD&nbsp;=&nbsp;sdate[1]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TT&nbsp;=&nbsp;stime[1]; &nbsp;} &nbsp;TL_Delete(TL11); &nbsp;TL_Delete(TL12); &nbsp;TL_Delete(TL13); &nbsp;TL_Delete(TL14); &nbsp;TL_Delete(TL15); &nbsp;TL_Delete(TL16); &nbsp;TL_Delete(TL17); &nbsp;TL_Delete(TL18); &nbsp;TL11&nbsp;=&nbsp;TL_New(dd,tt,dayopen,sdate,stime,dayopen); &nbsp;TL12&nbsp;=&nbsp;TL_New(dd,tt,dayopen(1),sdate,stime,dayopen(1)); &nbsp;TL13&nbsp;=&nbsp;TL_New(dd,tt,DayHigh(1),sdate,stime,DayHigh(1)); &nbsp;TL14&nbsp;=&nbsp;TL_New(dd,tt,daylow(1),sdate,stime,daylow(1)); &nbsp;TL15&nbsp;=&nbsp;TL_New(dd,tt,DayClose(1),sdate,stime,DayClose(1)); &nbsp;TL16&nbsp;=&nbsp;TL_New(dd,tt,pivot,sdate,stime,pivot); &nbsp;TL17&nbsp;=&nbsp;TL_New(dd,tt,var3,sdate,stime,var3); &nbsp;TL18&nbsp;=&nbsp;TL_New(dd,tt,(dayhigh+daylow)/2,sdate,stime,(dayhigh+daylow)/2); &nbsp;Text_Delete(tx11); &nbsp;Text_Delete(tx12); &nbsp;Text_Delete(tx13); &nbsp;Text_Delete(tx14); &nbsp;Text_Delete(tx15); &nbsp;Text_Delete(tx16); &nbsp;Text_Delete(tx17); &nbsp;Text_Delete(tx18); &nbsp;tx11&nbsp;=&nbsp;Text_New(sdate,stime,dayopen,"당일시가:"+NumToStr(dayopen,2));&nbsp; &nbsp;tx12&nbsp;=&nbsp;Text_New(sdate,stime,dayopen(1),"전일시가:"+NumToStr(dayopen(1),2));&nbsp; &nbsp;tx13&nbsp;=&nbsp;Text_New(sdate,stime,DayHigh(1),"전일고가:"+NumToStr(DayHigh(1),2));&nbsp; &nbsp;tx14&nbsp;=&nbsp;Text_New(sdate,stime,daylow(1),"전일저가:"+NumToStr(daylow(1),2));&nbsp; &nbsp;tx15&nbsp;=&nbsp;Text_New(sdate,stime,DayClose(1),"전일종가:"+NumToStr(DayClose(1),2));&nbsp; &nbsp;tx16&nbsp;=&nbsp;Text_New(sdate,stime,pivot,"피봇:"+NumToStr(pivot,2));&nbsp; &nbsp;tx17&nbsp;=&nbsp;Text_New(sdate,stime,var3,"디마크중심:"+NumToStr(var3,2));&nbsp; &nbsp;tx18&nbsp;=&nbsp;Text_New(sdate,stime,(dayhigh+daylow)/2,"당일중심:"+NumToStr((dayhigh+daylow)/2,2));&nbsp; &nbsp;Text_SetStyle(Tx11,2,2); &nbsp;Text_SetStyle(Tx12,2,2); &nbsp;Text_SetStyle(Tx13,2,2); &nbsp;Text_SetStyle(Tx14,2,2); &nbsp;Text_SetStyle(Tx15,2,2); &nbsp;Text_SetStyle(Tx16,2,2); &nbsp;Text_SetStyle(Tx17,2,2); &nbsp;Text_SetStyle(Tx18,2,2);
프로필 이미지
정밀타격수
2016-01-25
262
글번호 94710
시스템
답변완료

수식 검토 부탁드립니다

안녕하세요 수고많으십니다 시가 기준하여 1포인트간격으로 5등분선 만들고 한구간에서 3번이상 매매하면 손실청산이던 이익청산이던 그 구간에서는 더이상 매매하지 않고 다음 구간으로 현재가가 상승하거나 하락할 때 매매하는 수식을 다음과 같이 만들었습니다 그런데 시물레이션을 해보니까 첨부된 그림과 같이 3번이상 되었는데도 신호가 나옵니다 무엇이 잘못되었는지 검토부탁드립니다 --수식-- input : Entry(3); var : cnt(0); var : upcnt1(0),upcnt2(0),dncnt1(0),dncnt2(0); value1 = ma(C, 5); value2 = ma(C, 20); #각 구간별 진입횟수 카운트 upcnt1 = 0; upcnt2 = 0; dncnt1 = 0; dncnt2 = 0; for cnt = 0 to 100{ if sdate == EntryDate(cnt) Then { if EntryPrice(cnt) >= dayopen and EntryPrice(cnt) < dayopen+1 Then upcnt1 = upcnt1+1; if EntryPrice(cnt) >= dayopen+1 and EntryPrice(cnt) < dayopen+2 Then upcnt2 = upcnt2+1; if EntryPrice(cnt) < dayopen and EntryPrice(cnt) > dayopen-1 Then dncnt1 = dncnt1+1; if EntryPrice(cnt) <= dayopen-1 and EntryPrice(cnt) < dayopen-2 Then dncnt2 = dncnt2+1; } } if CrossUP(value1, value2) Then{ if c >= dayopen and c < dayopen+1 and upcnt1 < Entry Then buy("b1"); if c >= dayopen+1 and c < dayopen+2 and upcnt2 < Entry Then buy("b2"); if c < dayopen and c >= dayopen-1 and dncnt1 < Entry Then buy("b3"); if c <= dayopen-1 and c < dayopen+2 and dncnt2 < Entry Then buy("b4"); } if CrossDown(value1, value2) Then{ if c >= dayopen and c < dayopen+1 and upcnt1 < Entry Then sell("s1"); if c >= dayopen+1 and c < dayopen+2 and upcnt2 < Entry Then sell("s2"); if c < dayopen and c >= dayopen-1 and dncnt1 < Entry Then sell("s3"); if c <= dayopen-1 and c < dayopen+2 and dncnt2 < Entry Then sell("s4"); }
프로필 이미지
bigdeal
2016-01-22
234
글번호 94709
시스템
답변완료

수식요청

안녕하세요. 귀사에서 제공하는 파라볼릭(종가) 신호에 하기조건을 추가한 수식 요청드립니다. * 추가 사항 : Price Osc 0선 이상에서 매수금지 / 이하에서 매도 금지 Input수치 변경 가능하도록 부탁드립니다. 감사합니다.
프로필 이미지
한국사람73
2016-01-22
186
글번호 94708
시스템
답변완료

문의 드립니다.

1. 시스템 설정에서 시간자동정정 주문에서 청산만 시간자동정정이 가능하도록 할 수 있는 방법이 있나요? 2. 그리고 setstop 관련 식으로 청산 주문 들어간 것들도 시간자동정정 주문이 가능한가요? 3. 주문식 자체에서 +1틱이나 시장가 등으로 체결 방식을 만들어 줄 수 있는지도 궁굼합니다. 감사합니다. 좋은 주말 보내세요
프로필 이미지
하우즐영
2016-01-22
175
글번호 94707
시스템
답변완료

부탁드립니다

전일종가대비 상승 하락 등락율 을 1 2 3 4 5 6 7............길게해주심좋코요 특정주가대비 (지정가)상승하락등락율 1234567...........가능하시면 같이해주시면 부탁드립니다 건강하시고 건승하시길 기원합니다 항상애써주셔서 다시금 감사드립니다
프로필 이미지
상승형
2016-01-22
185
글번호 94706
지표
답변완료

데이타 문의드립니다

api나 dde나 다른 방법 통해 10시 11:20 1:30분 정도에 제공되는 기관순매수 금액이나 수량(잠정) 외국인순매수 금액이나 수량(잠정) 외국계순매수 수량 10종목 정도를 1분마다 엑셀로 가져올 수 있는 방법이 있는지? 원하는 종목의 매도호가 10개의 합 매수호가 10개의 합 을 가져올 수 있는지? 궁금합니다
프로필 이미지
단순점진일관
2016-01-22
299
글번호 94705
시스템