커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

수식 부탁드립니다

강조식 부탁드립니다 조건 현재 봉(가격)이 5일 이평과 20일 이평 위에 있을 때 캔들위에 붉은색 "★"로 표시 현재 봉이 5일 이평 아래 20일 이평 위에 있을 때 노란색 캔들로 표시 현재 봉이 5일 이평과 20일 이평 아래 있을 때 캔들아래에 파란색 "★"로 표시 현재 봉이 5일 이평 위 20일 이평 아래 있을 때 노란색 캔들로 표시
프로필 이미지
knp116
2021-10-11
1073
글번호 152797
강조
답변완료

변경부탁드립니다

키움수식 변경 좀 부탁드립니다 항상 감사합니다 D2=MA(종가, 240, 지수); D5=MA(종가,8, 지수); D6=MA(종가, 20, 지수); D7=crossup(d5,d6); x5=sum(1)-valuewhen(1,d7 ,sum(1)); x6=1<=x5 && x5<=20; a2= x6 && d2<c;
프로필 이미지
장군777
2021-10-11
958
글번호 152796
지표
답변완료

RSI만드는 방법에 대해 문의드립니다.

사용자함수에서 보여지는 읽기전용 RSI 함수를 활용하려고 했으나 잘 되지 않아서 이렇게 문의글 남깁니다. RSI의 연산 수식의 기본이 C (종가로 만들어지는걸로 알고있습니다) 해당 연산을 종가가 아닌 캔들의 중간값으로 만들고 싶은데 잘 되지 않아 이렇게 글을 올립니다. 기존 RSI 함수와 동일하게 하여 C(종가가 아닌) C+O / 2 중간값으로 하고싶습니다.
프로필 이미지
카카보오12
2021-10-11
888
글번호 152795
지표
답변완료

부탁 드립니다.

도움에 감사 드립니다. 첨부 그림과 같이 부탁 드립니다. input : N(5),sig(9); Array : sumc[60](0),sumi[60](0); var : accumo(0),accumh(0),accuml(0),accumc(0),accumi(0); var : avgo(0),avgh(0),avgl(0),avgc(0); var : s1(0),d1(0),tm(0),tf(0),cnt(0); if bdate != Bdate[1] Then{ sumc[0] = 0; sumi[0] = 0; for cnt = 1 to 59{ sumc[cnt] = sumc[cnt-1][1]; sumi[cnt] = sumi[cnt-1][1]; } S1 = TimeToMinutes(stime); D1 = sdate; } sumc[0] = sumc[0]+c; sumi[0] = sumi[0]+1; accumc = 0; accumi = 0; for cnt = 0 to N{ accumc = accumc+sumc[cnt]; accumi = accumi+sumi[cnt]; } avgc = accumc/accumi; if D1 > 0 then{ if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = 120; if bdate != bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then{ var4 = avgc; } } var98=c-var4; Var99=ma(Var98,sig); Plot1(Var99); PlotBaseLine1(0);
프로필 이미지
yes
2021-10-11
884
글번호 152793
지표

비듬싸순 님에 의해서 삭제되었습니다.

프로필 이미지
비듬싸순
2021-10-11
16
글번호 152792
시스템
답변완료

문의

항상감사합니다 1수식을 넣으면 챠트상신호도 나오고 거래내역도 나옵니다 2수식은 1수식을 구체화 한 수식입니다 오늘 해외챠트적용시 신호도 거래내용도 나오지않습니다 차이점이나 수정내용 부탁드립니다. 1수식] Input : Length(20), D1(2); # 매수/매도청산 If CrossUP(H,BollBandUp(20, 2)) then Buy(); # 매도/매수청산 If CrossDown(L,BollBandDown(20, 2)) then Sell(); 2수식]input : StartTime(101800),EndTime(114000); input : Length(20), D1(2); input : 익절1(30),손절1(30),청산구분시간(103000),익절2(50),손절2(30),익절연속횟수(3),손절연속횟수(3); var : Tcond(false),profit(0),loss(0); 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; profit = 0; loss = 0; } if TotalTrades > TotalTrades[1] Then { if IsExitName("bp.",1) or IsExitName("bp1",1) or IsExitName("bp2",21) or IsExitName("sp.",1) or IsExitName("sp1",1) or IsExitName("sp2",1) Then profit = profit+1; Else profit = 0; if IsExitName("bl.",1) or IsExitName("bl1",1) or IsExitName("bl2",1) or IsExitName("sl.",1) or IsExitName("sl1",1) or IsExitName("sl2",1) Then loss = loss+1; Else loss = 0; } var1 = BollBandUp(Length,D1); var2 = BollBandDown(Length,D1); if Tcond == true Then { If CrossUP(H,var1) and c > o and profit < 익절연속횟수 and loss < 손절연속횟수 then { Buy("b",OnClose,DEF,1); ExitLong("bp.",AtLimit,C+PriceScale*익절1,"",1,1); ExitLong("bl.",AtStop,C-PriceScale*손절1,"",1,1); } If CrossDown(L,Var2) and C < O and profit < 익절연속횟수 and loss < 손절연속횟수 then { Sell("s",OnClose,DEF,1); ExitShort("sp.",AtLimit,C-PriceScale*익절1,"",1,1); ExitShort("sl.",AtStop,C+PriceScale*손절1,"",1,1); } } if MarketPosition == 1 Then { if sTime >= StartTime and sTime < 청산구분시간 Then { ExitLong("bp1",AtLimit,EntryPrice+PriceScale*익절1,"",1,1); ExitLong("bl1",AtStop,EntryPrice-PriceScale*손절1,"",1,1); } if sTime >= 청산구분시간 and sTime < Endtime Then { ExitLong("bp2",AtLimit,EntryPrice+PriceScale*익절2,"",1,1); ExitLong("bl2",AtStop,EntryPrice-PriceScale*손절2,"",1,1); } } if MarketPosition == -1 Then { if sTime >= StartTime and sTime < 103000 Then { ExitShort("sp1",AtLimit,EntryPrice-PriceScale*익절1,"",1,1); ExitShort("sl1",AtStop,EntryPrice+PriceScale*손절1,"",1,1); } if sTime >= 103000 and sTime < Endtime Then { ExitShort("sp2",AtLimit,EntryPrice-PriceScale*익절2,"",1,1); ExitShort("sl2",AtStop,EntryPrice+PriceScale*손절2,"",1,1); } } 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 { IF Endtime <= starttime Then { SetStopEndofday(0); } }
프로필 이미지
에리카
2021-10-11
701
글번호 152791
시스템

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

프로필 이미지
에리카
2021-10-11
1
글번호 152790
시스템

신대륙발견 님에 의해서 삭제되었습니다.

프로필 이미지
신대륙발견
2021-10-11
7
글번호 152789
시스템
답변완료

수평선

수평선을 고정이 아닌 지표를 따라 다니게 할 수 있는 수식을 부탁드립니다. 3개의 수평선이 볼린져밴드 상단선과 중심, 하단선의 변동에 따라 따라 다닐수 있도록 설정할 수 있는 수식을 부탁드립니다
프로필 이미지
로켓맨
2021-10-11
544
글번호 152788
지표
답변완료

전 지표값을 참조해야하만 출력되는 지표

안녕하세요 지표를 만들려고 하고 있는데 어려움을 겪고 있습니다. 해당 지표가 완성이 되려면, 해당 지표의 그 전값을 알고 있어야하는데, 지표가 완성이 안되었기 때문에 그 전 지표값도 알 수가 없습니다. ㅠㅠ 도와주세요 지표1 = X * Y + Z * 지표1[1]; 지표 2 = X * Y/지표3 + 5; 지표 3 = 지표1 + 지표3[1];
프로필 이미지
이만스닥
2021-10-11
451
글번호 152787
지표