커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

수익수식검증 요청 및 추가사항[매도진입부분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
220
글번호 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
197
글번호 94709
시스템
답변완료

수식요청

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

문의 드립니다.

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

부탁드립니다

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

데이타 문의드립니다

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

문의드립니다

9시부터 14시30분 까지 진입 이평선20 과 이평선 50 위면 매수 아래면 매도 청산 이평선20 과 이평선 50 아래면 매수청산 위면 매도청산 피라미딩 기본 진입과 청산 신호가 위와같이 있고 피라미딩으로 10 봉 지날때 1계약 추가 전체 프로핏타겟 기본진입+피라미딩 1계약 추가 되고 전체 수익이 10포인트 이면 청산 감사합니다
프로필 이미지
파인애플
2016-01-22
141
글번호 94704
시스템
답변완료

부탁드립니다.

항상 신속하고도 만족한 답변에 깊이 감사 드립니다. 그림에서 지표의 변곡점 ABCDE 등이 생성될때 마다 상승 하락비를 나타 내고 싶습니다. 수식1) 그림에서와 같이 지표 하락시 (100*(B-A)/B)/BA구간의 생성봉수, (100*(D-C)/D)/DC구간의 생성봉수, 등과 같이 지표 상승시 (100*(B-C)/C)/BC구간의 생성봉수, (100*(D-E)/E)/DE구간의 생성봉수, 등과 같이 수식2) 지표에서 변곡점 ABCDEFG등이 생성 될때 그때의 종가 abcdefg 등을 지표 하락시 (100*(b-a)/b)/ba구간의 생성봉수, (100*(d-c)/d)/dc구간의 생성봉수, 등과 같이 지표 상승시 (100*(b-c)/c)/bc구간의 생성봉수, (100*(d-e)/e))/de구간의 생성봉수, 등과 같이 수식을 부탁 드립니다. 미리 감사 드립니다. Input:Rsi변동폭(10); Var:j(0),상승(100),하락(-100),양방향(2),추세(0), 파동선(0),Rsi파동선(0),방향(0),RsiV(0),Rsi추세선(0); Array:고[20](0),저[20](0),고Bar[20](0),저Bar[20](0), Rsi고[20](0),Rsi저[20](0),Rsi고Bar[20](0),Rsi저Bar[20](0); #==========================================# # 전고점,전저점 index 증가 #==========================================# For j = 1 To 19 { Rsi고Bar[j] = Rsi고Bar[j] + 1; Rsi저Bar[j] = Rsi저Bar[j] + 1; 저Bar[j] = 저Bar[j] + 1; 고Bar[j] = 고Bar[j] + 1; } #==========================================# # 최근 고,저 갱신 #==========================================# RsiV = Rsi(24); If Rsi고[0] <= RsiV || Rsi고[0] == 0 || IsNaN(Rsi고[0]) == True Then { Rsi고[0] = RsiV; Rsi고Bar[0] = 0; } Else Rsi고Bar[0] = Rsi고Bar[0] + 1; If Rsi저[0] >= RsiV || Rsi저[0] == 0 || IsNaN(Rsi저[0]) == True Then { Rsi저[0] = RsiV; Rsi저Bar[0] = 0; } Else Rsi저Bar[0] = Rsi저Bar[0] + 1; If 고[0] <= H || 고[0] == 0 || IsNaN(고[0]) == True Then { 고[0] = H; 고Bar[0] = 0; } Else 고Bar[0] = 고Bar[0] + 1; If 저[0] >= L || 저[0] == 0 || IsNaN(저[0]) == True Then { 저[0] = L; 저Bar[0] = 0; } Else 저Bar[0] = 저Bar[0] + 1; #==========================================# # 추세방향 결정 #==========================================# If Rsi저[0][1] + Rsi변동폭 > RsiV[1] && Rsi저[0][1] + Rsi변동폭 <= RsiV Then 방향 = 상승; If Rsi고[0][1] - Rsi변동폭 < RsiV[1] && Rsi고[0][1] - Rsi변동폭 >= RsiV Then 방향 = 하락; #==========================================# # 추세변화에 따른 변곡점 처리 #==========================================# If 방향[1] == 하락 && 방향 == 상승 Then { For j = 18 DownTo 1 { Rsi저[j+1] = Rsi저[j]; Rsi저Bar[j+1] = Rsi저Bar[j]; 저[j+1] = 저[j]; 저Bar[j+1] = 저Bar[j]; } Rsi저[1] = Rsi저[0]; Rsi저Bar[1] = Rsi저Bar[0]; Rsi파동선 = Rsi저[0]; Rsi저[0] = RsiV; Rsi저Bar[0] = 0; Rsi고[0] = RsiV; Rsi고Bar[0] = 0; 저[1] = 저[0]; 저Bar[1] = 저Bar[0]; 파동선 = 저[0]; 저[0] = L; 저Bar[0] = 0; 고[0] = H; 고Bar[0] = 0; } Else If 방향[1] == 상승 && 방향 == 하락 Then { For j = 18 DownTo 1 { Rsi고[j+1] = Rsi고[j]; Rsi고Bar[j+1] = Rsi고Bar[j]; 고[j+1] = 고[j]; 고Bar[j+1] = 고Bar[j]; } Rsi고[1] = Rsi고[0]; Rsi고Bar[1] = Rsi고Bar[0]; Rsi파동선 = Rsi고[0]; Rsi고[0] = RsiV; Rsi고Bar[0] = 0; Rsi저[0] = RsiV; Rsi저Bar[0] = 0; 고[1] = 고[0]; 고Bar[1] = 고Bar[0]; 파동선 = 고[0]; 고[0] = H; 고Bar[0] = 0; 저[0] = L; 저Bar[0] = 0; } Else If 방향[1] == 하락 && 방향 == 하락 Then { If Rsi고[1] < Rsi고[0] && Rsi고[0][1] - Rsi변동폭 <= RsiV[1] && Rsi고[0][1] - Rsi변동폭 > RsiV Then { Rsi고[1] = Rsi고[0]; Rsi고Bar[1] = Rsi고Bar[0]; Rsi파동선 = Rsi고[0]; Rsi고[0] = RsiV; Rsi고Bar[0] = 0; } If 고[1] < 고[0] && 고[0] > H Then { 고[1] = 고[0]; 고Bar[1] = 고Bar[0]; 파동선 = 고[0]; 고[0] = H; 고Bar[0] = 0; } } Else If 방향[1] == 상승 && 방향 == 상승 Then { If Rsi저[1] > Rsi저[0] && Rsi저[0][1] + Rsi변동폭 >= RsiV[1] && Rsi저[0][1] + Rsi변동폭 < RsiV Then { Rsi저[1] = Rsi저[0]; Rsi저Bar[1] = Rsi저Bar[0]; Rsi파동선 = Rsi저[0]; Rsi저[0] = RsiV; Rsi저Bar[0] = 0; } If 저[1] > 저[0] && 저[0] < L Then { 저[1] = 저[0]; 저Bar[1] = 저Bar[0]; 파동선 = 저[0]; 저[0] = L; 저Bar[0] = 0; } } #==========================================# # 지표식 출력 #==========================================# If Rsi파동선[1] != Rsi파동선 Then Plot1(Rsi파동선,"Rsi파동선",black); //적당껏 수평이동 Else If LastBarOnChart == 1 Then plot1(Iff(방향 == 상승,Rsi고[0],Rsi저[0]),"Rsi파동선",BLACK); PlotBaseLine1(50,"50"); // 상기식을 함수화 시킨것은 45856번 입니다.
프로필 이미지
yes
2016-01-24
331
글번호 94703
지표
답변완료

46087 재질문 드립니다.

질문1 upticks =1일 때 거래량과 downticks=1일때로 두개를 분리해서 표현하고 싶은데 어떻게 해야하나요?? 질문2 당일 누적외에 종목에 따라 틱 조회수가 다르겠지만, 틱이 표현되는 최대 누적일동안의 거래량도 알 수 있을까요? 질문2-1 혹시 기간을 지정해서 누적 거래량을 구분할 수 있는지도 궁금합니다. 예) 오늘 포함 이틀간의 1000주 이상 매도 거래량, 매수거래량이 몇개 인지 2일 3일 등 기간 지정여부
프로필 이미지
확실한수익
2016-01-22
160
글번호 94700
지표