커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

도움부탁드립니다.

항상 도움주셔서 감사합니다. 첨부파일에 있는 내용 보시고 시스템식 작성 부탁드립니다. 감사합니다.
프로필 이미지
양치기
2014-08-14
180
글번호 77229
시스템
답변완료

청산

안녕하세요? 현재 사용중인 식인데 청산 시점이 넘었는데 아직 청산이 안되고 있어서 문의 드립니다. 무엇이 문제인지 통 모르겠습니다. if data1(date != date[1]) Then daycnt = daycnt+1; if MarketPosition == -1 and IsEntryName("매도") == True Then{ if CodeCategoryEx == 11 and BasePrice < 50000 Then xvol = int(int((MaxContracts*1.0)/10)*10); Else Xvol = int(MaxContracts*1.0); if sdate == EntryDate Then ExitShort("bx1",AtStop,EntryPrice*1.08); If stime > 145500 and stime < 150400 and var20==10 and C>var4 Then ExitShort("b1"); if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+1 Then{ if var4>var5 and C>var4 Then ExitShort("b2"); if var6>var7 and C>var4 and dis>110 Then ExitShort("bx2"); } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+2 Then{ if var4>var5 Then ExitShort("b3"); } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+3 Then{ if var4>var5 and C>var4 Then ExitShort("b4"); } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+4 Then{ if var4>var5 and C>var4 Then ExitShort("b5"); } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+5 Then{ if C>var8 Then ExitShort("b6"); If var4>var5 and var5>var6 and var6>var7 and C>var4 and var17>85 Then ExitShort("bx6"); If stime > 145500 and stime < 150400 and C>var4 and var4>var7 Then ExitShort("bxx6"); } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+6 Then{ If DayOpen>=DayClose(1)*1.0 and DayOpen<DayClose(1)*1.2 Then{ If var4>var7 Then ExitShort("b7"); } Else If DayOpen<=DayClose(1)*0.0 and DayOpen>DayClose(1)*0.80 Then{ If var4>var5 and C>var6 Then ExitShort("bx7"); } Else{ If var17>80 and var21==10 Then ExitShort("bxx7"); } } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+7 Then{ If DayOpen>=DayClose(1)*1.0 and DayOpen<DayClose(1)*1.2 Then{ If var4>var7 Then ExitShort("b8"); } Else If DayOpen<=DayClose(1)*0.0 and DayOpen>DayClose(1)*0.80 Then{ If var4>var5 and C>var6 Then ExitShort("bx8"); } Else{ If var17>80 and var21==10 Then ExitShort("bxx8"); } } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+8 Then{ If DayOpen>=DayClose(1)*1.0 and DayOpen<DayClose(1)*1.2 Then{ If DayIndex==0 and var4>var5 and var17>82 Then ExitShort("b9"); } Else If DayOpen<=DayClose(1)*0.0 and DayOpen>DayClose(1)*0.80 Then{ If var4>var5 and C>var6 Then ExitShort("bx9"); } Else{ If var17>83 and var21==10 Then ExitShort("bxx9"); } } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+9 Then{ If DayOpen>=DayClose(1)*1.0 and DayOpen<DayClose(1)*1.2 Then{ If DayIndex==0 and C>O Then ExitShort("b10"); } Else If DayOpen<=DayClose(1)*0.0 and DayOpen>DayClose(1)*0.80 Then{ If var4>var5 and C>var6 Then ExitShort("bx10"); } Else{ If var17>85 and var21==10 Then ExitShort("bxx10"); } } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+10 Then{ If DayOpen>=DayClose(1)*1.0 and DayOpen<DayClose(1)*1.2 Then{ If var4>var7 Then ExitShort("b11"); } Else If DayOpen<=DayClose(1)*0.0 and DayOpen>DayClose(1)*0.80 Then{ If var4>var5 and C>var6 Then ExitShort("bx11"); } Else{ If var17>85 and var21==10 Then ExitShort("bxx11"); } } if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+11 Then{ if stime == 150200 Then ExitShort("end매도"); } if MarketPosition == 1 and IsEntryName("매수") == True Then{ if CodeCategoryEx == 11 and BasePrice < 50000 Then xvol = int(int((MaxContracts*1.0)/10)*10); Else Xvol = int(MaxContracts*1.0); if sdate == EntryDate Then ExitLong("bx12",AtStop,EntryPrice*0.92); if CurrentContracts == MaxContracts and daycnt == daycnt[BarsSinceEntry]+1 Then{ if var4<var5 and C<var4 Then ExitLong("bx13"); if var6>var7 and C>var4 and dis>100 Then ExitLong("bx14"); if stime == 150200 Then ExitLong("end매수5"); } }
프로필 이미지
회원
2014-07-29
180
글번호 77228
시스템
답변완료

지표부탁합니다

안녕하세요? 아래 macd가 시그널선 위로가면 빨간색, 시그널선 아래로 가면 파란색으로 나오게 부탁드립니다. 감사합니다. Input : shortPeriod(12), longPeriod(26), Period(9); Var : value(0) , macdosc(0) ; value = MACD(shortPeriod, longPeriod); macdosc = value-ema(value,Period); Plot1(value, "MACD"); Plot2(ema(value,Period), "MACDSignal"); PlotBaseLine1(0, "기준선1");
프로필 이미지
키오
2014-07-29
132
글번호 77227
지표

키오 님에 의해서 삭제되었습니다.

프로필 이미지
키오
2014-07-29
0
글번호 77226
지표

회원 님에 의해서 삭제되었습니다.

프로필 이미지
회원
2014-07-29
4
글번호 77220
지표

앙두 님에 의해서 삭제되었습니다.

프로필 이미지
앙두
2014-07-29
0
글번호 77211
시스템

앙두 님에 의해서 삭제되었습니다.

프로필 이미지
앙두
2014-07-29
0
글번호 77210
시스템
답변완료

수식 문의 드립니다.

아래의 조건을 만족시키는 수식이 필요합니다. 일봉상 매달 말일에 3개월 이동평균보다 주가가 높고 보유주식이 없다면 다음날 시가에 1계약 매수, 일봉상 매달 말일에 3개월 이동평균보다 주가가 낮고 보유주식이 없다면 다음날 시가에 1계약 매도 감사합니다.
프로필 이미지
앙두
2014-07-29
180
글번호 77209
시스템
답변완료

문의드립니다

만기일이후 부터 그러니까 만기날 다음금요일부터 지금까지 행사가별로 고가,저가 즉 월고 월저를 표시하는 방법에 대해 알고 싶습니다. 감사합니다
프로필 이미지
좋은하루7
2014-07-29
178
글번호 77208
사용자 함수