커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

왜 예스트레이더 간밤에 나스닥 시세가 안뜨나요?

15분 지연으로라도 떳었는데 오늘은 아예 나스닥 종합 시세가 안뜨네요 휴장도 아닌데요
프로필 이미지
돈을잃자
2023-10-24
537
글번호 173342
지표
답변완료

문의 드립니다.

1. input : StartTime(150000),EndTime(50000); input : 익절틱수(800),손절틱수(0); var : Tcond(False),entry(0); Variables: Mom(0); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if L ==lowest(L,2) and highest(H,2) >= lowest(L,2)+PriceScale*1 Then { Buy("b",AtStop,(highest(H,2)+lowest(L,2))/2); } if MarketPosition == 1 and BarsSinceEntry == 8 Then ExitShort(); } if H == highest(H,2) and lowest(L,2) <= highest(H,2)+PriceScale*1 Then { Sell("s",AtStop,(lowest(L,2)+highest(H,2))/2); } if MarketPosition == -1 and BarsSinceEntry == 8 Then ExitLong(); if L ==lowest(L,1) and highest(H,3) >= lowest(L,2)+PriceScale*10 Then { Buy("b1",AtStop,(highest(H,3)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 4 Then ExitShort(); if H == highest(H,1) and lowest(L,3) <= highest(H,2)+PriceScale*10 Then { Sell("s1",AtStop,(lowest(L,3)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 4 Then ExitLong(); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 2. input : StartTime(150000),EndTime(50000),midtime(210000); input : 익절틱수1(800),손절틱수1(0); input : 익절틱수2(300),손절틱수2(0); var : Tcond(False),entry(0),T(0); Variables: Mom(0); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } T = 1; } if (sdate != sdate[1] and stime >= midtime) or (sdate == sdate[1] and stime >= midtime and stime[1] < midtime) Then { Tcond = False; T = 2; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; T = 0; } if Tcond == true Then { if L ==lowest(L,2) and highest(H,2) >= lowest(L,2)+PriceScale*1 Then { Buy("b",AtStop,(highest(H,2)+lowest(L,2))/2); } if MarketPosition == 1 and BarsSinceEntry == 4 Then ExitShort(); } if H == highest(H,2) and lowest(L,2) <= highest(H,2)+PriceScale*1 Then { Sell("s",AtStop,(lowest(L,2)+highest(H,2))/2); } if MarketPosition == -1 and BarsSinceEntry == 4 Then ExitLong(); if L ==lowest(L,1) and highest(H,3) >= lowest(L,2)+PriceScale*10 Then { Buy("b1",AtStop,(highest(H,3)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 4 Then ExitShort(); if H == highest(H,1) and lowest(L,3) <= highest(H,2)+PriceScale*10 Then { Sell("s1",AtStop,(lowest(L,3)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 4 Then ExitLong(); if L ==lowest(L,1) and highest(H,3) >= lowest(L,2)+PriceScale*10 Then { Buy("b2",AtStop,(highest(H,3)+lowest(L,1))/2); } if MarketPosition == 1 and BarsSinceEntry == 4 Then ExitShort(); if H == highest(H,1) and lowest(L,3) <= highest(H,2)+PriceScale*10 Then { Sell("s2",AtStop,(lowest(L,3)+highest(H,1))/2); } if MarketPosition == -1 and BarsSinceEntry == 4 Then ExitLong(); if T == 1 Then { SetStopProfittarget(PriceScale*익절틱수2,PointStop); SetStopLoss(PriceScale*손절틱수2,PointStop); } Else { SetStopProfittarget(PriceScale*익절틱수1,PointStop); SetStopLoss(PriceScale*손절틱수1,PointStop); } 위 2가지 수식어에서 1번 한번의 익절후 매매정지 2번 두번의 익절후 매매정지가 되는 수식어를 추가로 부탁드립니다. 실제로 매매정지가 되지 않아서 재차 문의 드립니다.
프로필 이미지
푸른
2023-10-24
554
글번호 173341
시스템
답변완료

문의드립니다.

MACD 보조지표를 셋팅하고서 MACD(12,26,9) ==> 보조지표 이름인 MACD만 보이게 하고 괄호"()" 안의 값을 안보이게 할 수 있는건가요? 가능하다면 RSI나 스톡캐스틱도 할 수 있는 건지요?
프로필 이미지
chochobo
2023-10-24
588
글번호 173340
지표
답변완료

문의드립니다

주기 10분봉기준 당일첫봉(09.00-09:10) 거래량 500주 추세선값500 당일 두번째봉(09:10-09:20)거래량 200주 추세선값(200+500=700) 다일 세번재봉(09:20-09:30) 거래량 300주 추세선값(200+500+300=1000) ........... ............ 그다음날 첫봉 800 추세선값 다시 800 로지정 2봉 100 추세선값 (800+100=900).... ''''''' ''''''' ''''''' 이런 추세선가능한가요? 감사합니다.
프로필 이미지
약수삼천
2023-10-24
467
글번호 173339
지표
답변완료

gup 파일문의드립니다.

종목 번호로 gup 파일에 직접 관심종목을 저장하고싶은데 파일을 열어도 어떻게 해야할지감이안잡히네요 어떻게쓰면되느지 알려주십시오 관심종목을 매번 하나씩 수동으로타이핑해서 만드는게 비효율적이고 힘드네요
프로필 이미지
여유로운투자
2023-10-24
470
글번호 173338
시스템

서민순 님에 의해서 삭제되었습니다.

프로필 이미지
서민순
2023-10-23
10
글번호 173337
종목검색
답변완료

문의드립니다,

다음시스템식을 적용해보았으니 매수매도신호가 나지 않습니다.ㅠㅠ 수식점검부탁드립니다. 매일오후3시5분매수 다음날 오전9시10분매도--다음날갭상승출발시5일선 1/2이상 내려온 봉 출현시매도 또는 다음날 오전9시 갭하락시매도 if (NextBarSdate != sDate and NextBarStime >= 150500) or (NextBarSdate == sDate and NextBarStime >= 150500 and sTime < 150500) Then Buy("b",AtMarket); if MarketPosition == 1 and NextBarSdate > EntryDate Then { if dayopen <= DayClose(1) and ((NextBarSdate != sDate and NextBarStime >= 91000) or (NextBarSdate == sDate and NextBarStime >= 91000 and sTime < 91000)) Then ExitLong("bx ",AtMarket); Else { if (H+L)/2 <= ma(c,5) Then ExitLong("bx2"); } }
프로필 이미지
qormswhd
2023-10-23
585
글번호 173336
시스템
답변완료

문의 드립니다

안녕하세요 1. 0봉전 RSI(14.9) SIGNAL 이상 2. Demark 0봉전 종가 > 목표고가 3. 0봉전 일목균형표(9.26.52) 주가 전환선 근접률 3%이내 제외 위 조건식을 변환 부탁드립니다
프로필 이미지
힘찬하루
2023-10-23
705
글번호 173335
종목검색
답변완료

전환추세 거래량

Input : 전환(0.5); Var:j(0),jj(0),HH(0),LL(0),hiBar(0),loBar(0),최종꼭지점(""),처리구분(""), TL(0),TX(0),TX2(0); Array:고[10,4](0),저[10,4](0); HH = H; LL = L; If Index == 0 Then { 고[1,1] = HH; 고[1,2] = 0; 고[1,3] = sDate; 고[1,4] = sTime; 저[1,1] = LL; 저[1,2] = 0; 저[1,3] = sDate; 저[1,4] = sTime; } If Index > 0 Then { hiBar = hiBar + 1; loBar = loBar + 1; } If HH[hiBar] < HH Then hiBar = 0; If LL[loBar] > LL Then loBar = 0; Condition1 = 저[1,1]+전환 <= HH and hiBar == 0; Condition2 = 고[1,1]-전환 >= LL and loBar == 0; 처리구분 = ""; If Condition1 and Condition2 Then { If 최종꼭지점 == "저점" Then { If 저[1,1] > LL Then 처리구분 = "저점처리"; Else 처리구분 = "고점처리"; } Else If 최종꼭지점 == "고점" Then { If 고[1,1] < HH Then 처리구분 = "고점처리"; Else 처리구분 = "저점처리"; } } Else If Condition1 Then 처리구분 = "고점처리"; Else If Condition2 Then 처리구분 = "저점처리"; If 처리구분 == "고점처리" Then { If 최종꼭지점 == "저점" Then { For j = 10 DownTo 2 { For jj = 1 To 4 { 고[j,jj] = 고[j-1,jj]; } } 고[1,1] = HH[hiBar]; 고[1,2] = Index - hiBar; 고[1,3] = sDate[hiBar]; 고[1,4] = sTime[hiBar]; hiBar = -1; loBar = -1; TL = TL_New(저[1,3],저[1,4],저[1,1],고[1,3],고[1,4],고[1,1]); TL_SetSize(TL,2); TL_SetColor(TL,RED); } Else If 고[1,1] < HH[hiBar] Then { 고[1,1] = HH[hiBar]; 고[1,2] = Index - hiBar; 고[1,3] = sDate[hiBar]; 고[1,4] = sTime[hiBar]; hiBar = -1; loBar = -1; TL_SetEnd(TL,고[1,3],고[1,4],고[1,1]); Text_SetString(TX,NumToStr(고[1,1]-저[1,1],2)); Text_SetLocation(TX,고[1,3],고[1,4],고[1,1]); } 최종꼭지점 = "고점"; Plot1(고[1,1]); NoPlot(2); } If 처리구분 == "저점처리" Then { If 최종꼭지점 == "고점" Then { For j = 10 DownTo 2 { For jj = 1 To 4 { 저[j,jj] = 저[j-1,jj]; } } 저[1,1] = LL[loBar]; 저[1,2] = Index - loBar; 저[1,3] = sDate[loBar]; 저[1,4] = sTime[loBar]; hiBar = -1; loBar = -1; TL = TL_New(고[1,3],고[1,4],고[1,1],저[1,3],저[1,4],저[1,1]); TL_SetSize(TL,2); TL_SetColor(TL,BLUE); } Else If 저[1,1] > LL[loBar] Then { 저[1,1] = LL[loBar]; 저[1,2] = Index - loBar; 저[1,3] = sDate[loBar]; 저[1,4] = sTime[loBar]; hiBar = -1; loBar = -1; TL_SetEnd(TL,저[1,3],저[1,4],저[1,1]); Text_SetString(TX,NumToStr(고[1,1]-저[1,1],2)); Text_SetLocation(TX,저[1,3],저[1,4],저[1,1]); } 최종꼭지점 = "저점"; Plot2(저[1,1]); NoPlot(1); } 초봉에서 하락추세선의 크기가 1p 이상일 때, 거래량이 500 이상이고 직전봉보다 2.5배 이상이면 매수,다음봉에 매수청산. 상승은 반대. 봉 완성 전이라도 조건이 되면 즉시 매매 가능하면 더 좋겠네요. 감사합니다.
프로필 이미지
고성
2023-10-23
981
글번호 173334
시스템
답변완료

문의 드립니다.

study("Multi Time Frame Exponential Moving Average", "MTF EMA", overlay=true) ma_len = input(title="Length", type=integer, defval=100) src = input(title="Source", type=source, defval=close) ma_offset = input(title="Offset", type=integer, defval=0) res = input(title="Resolution", type=resolution, defval="240") htf_ma = ema(src, ma_len) out = security(tickerid, res, htf_ma) plot(out, color=red, offset=ma_offset) 트레이딩뷰 지표입니다. 예스 수식으로 만들어주세요.
프로필 이미지
신대륙발견
2023-10-23
752
글번호 173330
지표