커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

Re : 선긋기 부탁드립니다.

적극 도와주셔서 감사드립니다. 아래 내용의 결과가 맞을때도 있지만 대부분 틀리게 나타납니다.(그림 참조) 다시한번 더 검토를 부탁드리며 컬러로도 예약어든 RGB든 선택할 수 있도록 부탁드립니다. 감사합니다. input : p(2),굵기(1); var : cnt(0),sum(0),mav(0); var : TL1(0),TL2(0),TL3(0),TL4(0); sum = 0; For cnt = 0 to P-1 { sum = sum + DayClose(cnt); } mav = sum/P; if Index == 0 or (sTime >= 143000 and sTime[1] < 143000) Then { var1 = sDate; Var2 = stime; } if Bdate != Bdate[1] Then { if var1 > 0 and Var2 > 0 Then { TL1 = TL_New(var1,Var2,mav,sDate,sTime,mav); TL_SetColor(TL1,RGB(255,0,0)); TL_SetSize(TL1, 굵기); } } Else { if sTime < 103000 Then { TL_SetBegin(TL1,var1,Var2,mav); TL_SetEnd(TL1,sDate,sTime,mav); } } > 포보스 님이 쓴 글입니다. > 제목 : Re : Re : 선긋기 부탁드립니다. > 빠른 답변 감사드립니다. 그런데 분봉(틱)챠트에서 당일 시초가 데이터가 반영되어 그려지는 일봉의 2일선이 맞는지요? 데이터가 다른 것 같습니다. 다시한번 검토 부탁드립니다. 선 굵기도 선택할 수 있었으면 합니다. 감사합니다.
프로필 이미지
포보스
2021-05-05
1234
글번호 148696
지표
답변완료

문의 드립니다.

안녕하세요 항상 빠른 답변 감사드립니다. 영웅문 지표식 변환 문의 드립니다. 상단 A = SUM(1); A1 = ValueWhen(1, date(1)!=date, A(1)); A2 = A- A1; B = (O+C+H+L)/4; B1 = SUM(B); B2 = ValueWhen(1, date(1)!=date, B1(1)); B3 = B1-B2; (B3/A2)+((B3/A2)*Percent/100); (중심) A = SUM(1); A1 = ValueWhen(1, date(1)!=date, A(1)); A2 = A- A1; B = (O+C+H+L)/4; B1 = SUM(B); B2 = ValueWhen(1, date(1)!=date, B1(1)); B3 = B1-B2; 하단 A1 = ValueWhen(1, date(1)!=date, A(1)); A2 = A- A1; B = (O+C+H+L)/4; B1 = SUM(B); B2 = ValueWhen(1, date(1)!=date, B1(1)); B3 = B1-B2; (B3/A2)-((B3/A2)*Percent/100); 지표조건설정> Percent 3 스케일> 가격 그럼 수고하세요^^
프로필 이미지
느와르
2021-05-05
1248
글번호 148695
지표

대박내자잉 님에 의해서 삭제되었습니다.

프로필 이미지
대박내자잉
2021-05-05
6
글번호 148694
시스템
답변완료

수식작성

input : StartTime(103000),EndTime(213000); input : 익절틱수(70),손절틱수(20); Input : 당일수익틱수(120); Var : N1(0),dayPl(0),당일수익(0),Xcond(false); var : T(0),Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; Xcond = false; N1 = NetProfit; IF Endtime <= starttime Then { SetStopEndofday(0); } } 당일수익 = PriceScale*당일수익틱수; daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if IsExitName("dbp",1) == true then Xcond = true; } var1 = ma(C,5); if C > O or (C == O and C >= C[1]) Then T = 1; Else T = -1; if Tcond == true Then { if MarketPosition == 0 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then Buy("b"); if MarketPosition == 1 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then ExitLong("bx"); if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 1-2 input : StartTime(220000),EndTime(035000); input : 익절틱수(70),손절틱수(20); Input : 당일수익틱수(120); Var : N1(0),dayPl(0),당일수익(0),Xcond(false); var : T(0),Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; Xcond = false; N1 = NetProfit; IF Endtime <= starttime Then { SetStopEndofday(0); } } 당일수익 = PriceScale*당일수익틱수; daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if IsExitName("dbp",1) == true then Xcond = true; } var1 = ma(C,5); if C > O or (C == O and C >= C[1]) Then T = 1; Else T = -1; if Tcond == true Then { if MarketPosition == 0 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then Buy("b"); if MarketPosition == 1 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then ExitLong("bx"); if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ---------------------- True Strength Index 지표의 +30.5 ~-30.5 사이 진입신호금지 수식어의 추가와 매매시간을 10시부터 익일 05시까지로 수정을 부탁드립니다. 늘 감사합니다.
프로필 이미지
푸른
2021-05-06
1192
글번호 148693
시스템
답변완료

안녕하세요?

1.키움 1분봉수식입니다. 이수식을 신호와 검색식으로 부탁드립니다. 2. 검색식에서 20일 최고가도 추가해서 부탁드리겠습니다. Q = sum(if(o<c,c*v,0))-sum(if(o>c,c*v,0)); Q2 = valueWhen(1, date(1)!=date, B(1) ); Q - Q2>금액 감사합니다.
프로필 이미지
상쿠대
2021-05-04
1099
글번호 148692
종목검색
답변완료

수식 부탁드립니다

분봉 에서 가중 이동평균 정배열 매수 5/20/60 주가가 5일 이평 골든 크로스 매수 분봉 에서 가중 이동평균 역배열 매도 5/20/60 주가가 5일 이평 데드 크로스 매도 감사합니다
프로필 이미지
미스포터
2021-05-04
1063
글번호 148691
시스템

양치기 님에 의해서 삭제되었습니다.

프로필 이미지
양치기
2021-05-04
2
글번호 148690
시스템
답변완료

안녕하세요?

제가 수식과 거래대금 상위 10개종목을가지고 검색을 하고싶은데요... 거래대금 상위 10개종목(순위는상관없습니다) 과 분봉상 신호가 발생하였을때를 검색하고 싶 은데요 가능할까요??
프로필 이미지
상쿠대
2021-05-04
1142
글번호 148689
검색
답변완료

수식작성

input : StartTime(223000),EndTime(0350000); input : 익절틱수(70),손절틱수(20); Input : 당일수익틱수(120); Var : N1(0),dayPl(0),당일수익(0),Xcond(false); var : T(0),Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; Xcond = false; N1 = NetProfit; IF Endtime <= starttime Then { SetStopEndofday(0); } } 당일수익 = PriceScale*당일수익틱수; daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if IsExitName("dbp",1) == true or IsExitName("dsp",1) == true then Xcond = true; } var1 = ma(C,5); if C > O or (C == O and C >= C[1]) Then T = 1; Else T = -1; if Tcond == true Then { if MarketPosition <= 0 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then Buy("b"); if MarketPosition >= 0 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then Sell("s"); if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then { ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ------------------- 매매시간 이외에 진입신호가 있습니다. 수정 부탁드려요~
프로필 이미지
푸른
2021-05-06
1083
글번호 148688
시스템
답변완료

문의

안녕하세요. 선물특정가격(변경가능)을 기준으로 아래 위로 2포인트(변경가능) 간격으로 10개정도의 라인을 긋고 그 라인을 돌파하면 매수신호, 그 라인을 붕괴하면 매도신호가 발생하도록 부탁드립니다. 감사합니다.
프로필 이미지
타이밍승부사
2021-05-04
1129
글번호 148687
시스템