커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

글번호 57204번 재질문

안녕하세요? 아래 글번호 57204번 재질문드립니다. 매수청산과 매도청산 조건 추가 부탁드립니다. 1) 매수진입 조건 : 가격이 볼린저밴드 하단을 종가상으로 이탈 후 종가상 3번 연속 저점을 깨지 않고 다시 반등을 하되 볼린저밴드 중심선을 터치하지 않아야 하며 볼린저밴드 하단을 재이탈하여 첫번째 이탈되었던 가격보다 작을 경우 익봉 시가 매수 진입 or 가격이 볼린저밴드 하단 이탈 후 저점을 세번 연속 붕괴 시 4번재 봉 시가에 매수 진입 2) 매수청산 조건 : 현주가의 고점이 20ma보다 클 경우 익봉 시가에 청산 3) 매도진입 조건 : 가격이 볼린저밴드 상단을 종가상으로 돌파 후 종가상 3번 연속 고점을 돌파하지 않고 다시 조정을 받되 볼린저밴드 중심선을 터치하지 않아야 하며 상단을 재돌파하여 첫번째 돌파되었던 가격보다 클 경우 매도 진입 or 가격이 볼린저밴드 상단 돌파 후 고점을 세번 연속 돌파 시 4번재 봉 시가에 매수 진입 4) 매도청산 조건 : 현주가의 저점이 20ma보다 작을 경우 익봉 시가에 청산
프로필 이미지
흰둥이아빠
2018-03-27
309
글번호 117730
시스템
답변완료

종목검색식 부탁드립니다

사용지표 : DMI 지표 1. D+>D- 이면서 D+ 30 돌파 2. DMI 30돌파 1과2조건을 동시에 만족하는 조건식 사용지표 : 거래량 이동평균선 1.당일 캔들은 양봉 2.당일 거래량이 5일 거래량이평선보다 200% 발생 1과2조건을 동시에 만족하는 조건식
프로필 이미지
파워
2018-03-27
316
글번호 117729
종목검색
답변완료

정배열.역배열 봉길이조정

귀사도움 항상 감사합니다. 그림 1)# 챠트 정배열 역배열 봉길이가 챠트 몽통보다 벗어나는것이 많이 나옵니다. 챠트 사각몸통 안에 들어올수 있도록 수정이 가능한지 문의 드립니다. 단 도지 일자 챠트에는 표시가 없어도 가능함 추가질문 첨부파일3과같이 봉길이만 참조하셔요 그림2)# (하나투자금융 챠트 입니다) 그림2#과 같도록 표현가능한지 부탁드립니다. 2.3.4 이평선에 상승하면 빨강색 화살표 하락하면 blue 화살표 크기도 조정이 가능하도록 부탁드립니다. 하나투자금융챠트에서 화살표를 추가하였습니다. 수고하십시요
프로필 이미지
매일수익감사
2018-03-28
434
글번호 117728
지표
답변완료

문의드립니다

1 해외차트 보면 현지 시간으로 16시 10분 마감 17시 오픈(우리나라 아침7시) 인데 매매횟수를 당일 매매 현지시간 17시 시작을 기점으로 당일매매 횟수를 N회로 조절 하고 싶습니다 2 if MarketPosition == 0 and MarketPosition[1] == 0 and MarketPosition[2] == 0 and entrycnt < NN and Time >= stime11 and Time <= stime12 and CrossUp( s1,60) Then buy("진입매수"); if MarketPosition == 0 and MarketPosition[1] == 0 and MarketPosition[2] == 0 and entrycnt < NN and Time >= stime11 and Time <= stime12 and CrossDown( s1,40) Then sell("진입매도"); if MarketPosition == 1 and CrossDown( s1,50) Then exitlong("청산매수"); if MarketPosition == -1 and CrossUp( s1,50) Then ExitShort("청산매도"); 위와 같이 보조지표 크로스 업다운으로 본시스템을 만들었습니다 본시스템에 목표수익청산을 넣고 싶습니다 단순히 목표수익청산식을 넣으면 2회 진입 시점이 본 시스템과 다르게 나옵니다 (목표수익청산이 되어 포지션이 달라서 두시스템이 달라지는 현상) 진입을 본시스템과 목표수익청산시스템이 같은 위치에 나오게 하고싶습니다 진입 신호같게 청산 신호같게 청산 신호 이전에 목표수익도달시 목표수익만
프로필 이미지
파인애플
2018-03-28
322
글번호 117727
시스템
답변완료

"틱" 글자 변경

var : RR(0),tx1(0),tx2(0); if MarketPosition == 1 Then{ rr = (C-EntryPrice)/PriceScale; Text_Delete(tx1); tx1 = Text_New(sdate,stime,H+PriceScale*1,NumToStr(RR,0)+"틱"); Text_SetStyle(tx1,2,2); } if MarketPosition == -1 Then{ rr = (EntryPrice-C)/PriceScale; Text_Delete(tx2); tx2 = Text_New(sdate,stime,L-PriceScale*1,NumToStr(RR,0)+"틱"); Text_SetStyle(tx2,2,2); } --------------------------------------------> 상기수식에서---"틱"===>"틱"---->"틱"글자를 굵게 크게할려면 어떤 수식을 추가해야 되나요
프로필 이미지
정밀타격수
2018-03-27
330
글번호 117724
시스템
답변완료

문의드립니다

1. Tema 10선이 우상향이면 빨강색 우하향 이면 파랜색 지표 부탁드립니다 2. Tema 10선이 우상향이면 매수신호 우하향 이면 매도신호 시스템 부탁드립니다 진입 신호나오고 화면에 10틱 단위씩 나오게도 해주세요
프로필 이미지
해피슈
2018-03-27
308
글번호 117723
지표
답변완료

안녕하세세요

아래식에서 하루손절익절후 매매매정지식인데 계속 진입합니다 잘못된 부분 수정부탁합니다 첫번째식 Input : shortPeriod(100), longPeriod(200); Input : 당일손실틱수(800),당일수익틱수(800); value1 = ma(C, shortPeriod); value2 =ma(C, longPeriod); var : DH(0),DL(0); var : HH(0),LL(0),T1(0),entry(0); var : cnt(0),count(0),dayPl(0),당일손실(0),당일수익(0); 당일수익 = PriceScale*당일수익틱수; 당일손실 = PriceScale*당일손실틱수; if (sdate != sdate[1] and stime >= 100000) or (sdate == sdate[1] and stime >= 100000 and stime[1] < 100000) Then{ Condition1 = true; DH = H; DL = L; } if Condition1 == true then{ if H > DH Then DH = H; if L < DL Then DL = L; } if stime == 101500 or (stime > 101500 and stime[1] < 101500) Then { HH = H; LL = L; T1 = TotalTrades; } if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = TotalTrades-T1+1; if stime >= 104500 and stime < 113000 then{ if H > HH Then HH = H; if L < LL Then LL = L; if HH >= LL+PriceScale*10 and entry < 20 then { if DL > 0 and C < DL+PriceScale*300 and crossup(value1,value2) Then buy(); if DH > 0 and C > DH-PriceScale*300 and CrossDown(value1,value2) Then sell(); } } SetStopLoss(PriceScale*30,PointStop); SetStopProfittarget(PriceScale*60,PointStop); if MarketPosition == 1 Then{ HH = highest(H,BarsSinceEntry); if HH >= EntryPrice+PriceScale*39 and HH < EntryPrice+PriceScale*44 Then ExitLong("수청0",AtStop,EntryPrice+PriceScale*0); if HH >= EntryPrice+PriceScale*50 and HH < EntryPrice+PriceScale*55 Then ExitLong("수청1",AtStop,EntryPrice+PriceScale*15); if HH >= EntryPrice+PriceScale*44 and HH < EntryPrice+PriceScale*50 Then ExitLong("수청2",AtStop,EntryPrice+PriceScale*7); if HH >= EntryPrice+PriceScale*55 and HH < EntryPrice+PriceScale*60 Then ExitLong("수청3",AtStop,EntryPrice+PriceScale*25); if HH >= EntryPrice+PriceScale*60 and HH < EntryPrice+PriceScale*70 Then ExitLong("수청4",AtStop,EntryPrice+PriceScale*40); if HH >= EntryPrice+PriceScale*70 and HH < EntryPrice+PriceScale*80 Then ExitLong("수청5",AtStop,EntryPrice+PriceScale*50); if HH >= EntryPrice+PriceScale*80 and HH < EntryPrice+PriceScale*90 Then ExitLong("수청6",AtStop,EntryPrice+PriceScale*60); if HH >= EntryPrice+PriceScale*90 and HH < EntryPrice+PriceScale*1200 Then ExitLong("수청7",AtStop,EntryPrice+PriceScale*70); } if MarketPosition == -1 Then{ LL = lowest(L,BarsSinceEntry); if LL <= EntryPrice-PriceScale*39 and LL > EntryPrice-PriceScale*44 Then Exitshort("도청0",AtStop,EntryPrice-PriceScale*0); LL = lowest(L,BarsSinceEntry); if LL <= EntryPrice-PriceScale*50 and LL > EntryPrice-PriceScale*55 Then Exitshort("도청1",AtStop,EntryPrice-PriceScale*15); LL = lowest(L,BarsSinceEntry); if LL <= EntryPrice-PriceScale*44 and LL > EntryPrice-PriceScale*50 Then Exitshort("도청2",AtStop,EntryPrice-PriceScale* 7); if LL <= EntryPrice-PriceScale*55 and LL > EntryPrice-PriceScale*90 Then Exitshort("도청3",AtStop,EntryPrice-PriceScale* 25); if LL <= EntryPrice-PriceScale*60 and LL > EntryPrice-PriceScale*70 Then Exitshort("도청4",AtStop,EntryPrice-PriceScale* 40); if LL <= EntryPrice-PriceScale*70 and LL > EntryPrice-PriceScale*80 Then Exitshort("도청5",AtStop,EntryPrice-PriceScale* 50); if LL <= EntryPrice-PriceScale*80 and LL > EntryPrice-PriceScale*90 Then Exitshort("도청6",AtStop,EntryPrice-PriceScale* 60); if LL <= EntryPrice-PriceScale*90 and LL > EntryPrice-PriceScale*1000 Then Exitshort("도청7",AtStop,EntryPrice-PriceScale* 70); } if MarketPosition == 10 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); ExitLong("dbl",AtStop,EntryPrice-((당일손실+daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); ExitShort("dsl",AtStop,EntryPrice+((당일손실+daypl)/CurrentContracts)); } 두번째식 Inputs: Length(5), Consec(3); Input : 당일손실틱수(500),당일수익틱수(500); var : DH(0),DL(0); var : HH(0),LL(0),T1(0),entry(0); var : cnt(0),count(0),dayPl(0),당일손실(0),당일수익(0); 당일수익 = PriceScale*당일수익틱수; 당일손실 = PriceScale*당일손실틱수; if (sdate != sdate[1] and stime >= 100000) or (sdate == sdate[1] and stime >= 100000 and stime[1] < 100000) Then{ Condition1 = true; DH = H; DL = L; } if Condition1 == true then{ if H > DH Then DH = H; if L < DL Then DL = L; } If DL > 0 and C < DL+PriceScale*300 and stime > 104000 and stime < 115000 and CountIf(Close > Highest(High, Length)[1], Consec) == Consec Then Buy ("매수"); If DH > 0 and C > DH-PriceScale*300 and stime > 104000 and stime < 115000 and CountIf(Close < Lowest(Low, Length)[1], Consec) == Consec Then Sell ("매도"); SetStopLoss(PriceScale*60,PointStop); SetStopProfittarget(PriceScale*110,PointStop); if MarketPosition == 1 Then{ HH = highest(H,BarsSinceEntry); if HH >= EntryPrice+PriceScale*70 and HH < EntryPrice+PriceScale*80 Then ExitLong("bx1",AtStop,EntryPrice+PriceScale*20); if HH >= EntryPrice+PriceScale*80 and HH < EntryPrice+PriceScale*100 Then ExitLong("bx2",AtStop,EntryPrice+PriceScale*40); if HH >= EntryPrice+PriceScale*100 and HH < EntryPrice+PriceScale*200 Then ExitLong("bx3",AtStop,EntryPrice+PriceScale*60); } if MarketPosition == -1 Then{ LL = lowest(L,BarsSinceEntry); if LL <= EntryPrice-PriceScale*70 and LL > EntryPrice-PriceScale*80 Then Exitshort("sx1",AtStop,EntryPrice-PriceScale*20); if LL <= EntryPrice-PriceScale*80 and LL > EntryPrice-PriceScale*100 Then Exitshort("sx2",AtStop,EntryPrice-PriceScale*40); if LL <= EntryPrice-PriceScale*100 and LL > EntryPrice-PriceScale*200 Then Exitshort("sx3",AtStop,EntryPrice-PriceScale*60); } if MarketPosition == 1 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); ExitLong("dbl",AtStop,EntryPrice-((당일손실+daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); ExitShort("dsl",AtStop,EntryPrice+((당일손실+daypl)/CurrentContracts)); }
프로필 이미지
수원
2018-03-27
319
글번호 117722
시스템
답변완료

문의드립니다.

도움주시는 덕분에 도전하고 있습니다. 매번 감사합니다. 1. 기타 진입후 진입 방향과 같은 방향으로 n이상 크기의 캔들이 발생했을 때 청산 가령 매수진입이면 n이상 크기의 양봉이 발생했다면 매수청산. 매도는 반대 2. 기타 1번과 같은 조건일 때(매수면 매수 방향으로 n크기 이상의 봉이 나타났을 때) 해당 봉을 50% 이상(그 봉의 50%) 되돌리면 매수청산. 매도는 반대
프로필 이미지
잡다백수
2018-03-27
294
글번호 117720
시스템
답변완료

수식 요청 드립니다.

안녕하세요. 연결선물 당일청산 시스템에서 진입수식1 연결선물 틱봉차트 적용하고, 진입수식2 연결선물 참조데이타2 분봉차트 적용되도록 수정요청 드립니다. Stime 10:25:00 시간 적용을 당일 장시작부터 85분 까지로 수정요청 드립니다. 감사합니다. //------------------------------------------------------------------------------------------------------- #진입수식1(예제)-연결선물 틱봉차트 적용 Input : Period(12), sigPeriod(9); value1 = TRIX(Period); value2 = EMA(value1, sigPeriod); If CrossUP(value1, value2) Then{ Buy(); } If CrossDown(value1, value2) Then{ Sell(); } #진입수식2(예제)-연결선물 참조데이타2 분봉차트 당일 장시작부터 시간적용 수정요청 input: AMTM(102500); if date != date[1] then{ var1 = 0; var2 = 0; } if stime < AMTM then{ if C > O then var1 = var1 + 1; if C < O then var2 = var2 + 1; } if (Stime >= AMTM and Stime[1] < AMTM) and var1 > var2 and C > DayOpen then buy(); if (Stime >= AMTM and Stime[1] < AMTM) and var1 < var2 and C < DayOpen then sell(); SetStopEndofday(150000); //-------------------------------------------------------------------------------------------------------
프로필 이미지
dandy
2018-03-27
304
글번호 117719
시스템