커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

당일저가 시간대

당일저가 시간대가 9시~10시59분 까지를 1 11시~12시59분 까지를 2 13시~장마감 까지를 3 으로 하는 수식 위 수식의 결과가 1이 나올때 n일 동안의 총합을 나타내는 수식 부탁드립니다
프로필 이미지
팔보채
2023-10-24
860
글번호 173362
지표
답변완료

손절,익절을 방향에 따라서 다르게 하는 시스템 지표식 부탁합니다.

제가 쓰는 시스템은 매도, 매수 양방향이 가능한 옵션 시스템입니다. 아래와 같이 손절 익절 포인트를 정하여 쓰고있는데 SetStopLoss(30,PercentStop); SetStopProfittarget(50,PercentStop); SetStopEndofday(152920); 위에 식은 일괄적으로 같기 때문에 이것 대신에 매수 익절은 크게 잡고 매도 익절은 작게 잡고 싶습니다. 그리고는 당일 매매는 중지하게 하려구요. 이게 가능 할까요? 없다면 매수청산, 매도 청산식으로 익절,손절 라인을 넣는 방법밖에는 없는데 어떻게 안 될까요? 불가능하다면 매수시 30%손절, 50% 익절 매도시 30%손절, 40% 익절 식이라도 부탁드립니다.
프로필 이미지
몸통공격
2023-10-24
589
글번호 173361
시스템

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

프로필 이미지
hakona
2023-10-24
141
글번호 173350
시스템

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

프로필 이미지
hakona
2023-10-24
100
글번호 173349
지표
답변완료

시가등락률

수고많으십니다 1봉전(전일)종가대비 0봉전(당일) 시가등락률이 5%이하 설정법 알고싶습니다
프로필 이미지
높은뫼
2023-10-24
516
글번호 173346
검색
답변완료

문의 드립니다....

수고많으십니다 항상 많은 도움이 되고있습니다. 1분봉에서 현재봉이 2번이 검색되면서 전봉이 1번인 캔들이 검색되는식 부탁드립니다. 1번 var : a(0),b(0),d(0),d1(0),a1(0),b1(0),b2(0),a3(0),b3(0),b4(0),b5(0); a=ma(c,5); b=ma(c,20); d=ma(c,60); D1=(A+B+D)/3; A1=(highest(high,9)+lowest(low,9))/2; B1=(highest(high,26)+lowest(low,26))/2; B2=(A1+B1)/2; A3=RSI(9)-50; B3=CMO(12)*0.5; B4=A3+B3; B5=Ema(C,120); if (CROSSDOWN(B2,D1) OR CROSSDOWN(D1,B5) OR CROSSDOWN(B2,B5)) AND B4<0 AND bw(20,12,5,3)> -4 Then Find(1); 2번 input : 배분1(0.236),배분2(1.02); var : 중최고가(0),중최저가(0); var : 경계(0),경계1(False),경계2(False); var : 기준봉(0),기준봉1(False),기준봉2(False); var : 결과기준(0),결과기준1(False),결과기준2(False); var : 평균(0),평균라인(0); var : a(0), m5(0),m10(0),m20(0),m60(0),m120(0),m240(0),m480(0); var : bh(0),bc(0),b(0),aa(0); 중최고가=highest(h,20); 중최저가=lowest(l,20); 경계=(중최고가+중최저가)/2-(중최고가-중최저가)*배분1; 경계1=crossup(c, 경계)&& c>o*배분2; 경계2=crossdown(c, 경계); if 경계1 or 경계2 Then 기준봉 = O; 기준봉1=crossup(c, 기준봉); 기준봉2=crossdown(c, 기준봉); if 기준봉1 or 기준봉2 Then 결과기준=o; 결과기준1=crossup(c, 결과기준); 결과기준2=crossdown(c, 결과기준); if 결과기준1 or 결과기준2 Then A=o; M5=ema(C,5); M10=ema(C,10); M20=ema(C,20); M60=ema(C,60); M120=ema(C,120); M240=ema(C,240); M480=ema(C,480); BH=BollBandUp(20,2); BC=ma(c,20); 평균=((M5*2)+(M10*2)+(M20*3)+(M60*2)+(M120*3)+(M240*2)+(M480*2)+(BH*1)+(BC*1)) / 18; 평균라인=Ema(Ema(Ema(평균, 5), 5), 5); B=평균라인 + 20*std(평균라인,5); AA=sar(0.02,0.2); if C>=A && CROSSUP(C,B) && AA<=C Then Find(1);
프로필 이미지
wkri
2023-10-24
645
글번호 173343
종목검색
답변완료

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

15분 지연으로라도 떳었는데 오늘은 아예 나스닥 종합 시세가 안뜨네요 휴장도 아닌데요
프로필 이미지
돈을잃자
2023-10-24
556
글번호 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
572
글번호 173341
시스템
답변완료

문의드립니다.

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