커뮤니티

수식 변환부탁드립니다

프로필 이미지
유빈
2023-07-27 14:18:10
896
글번호 170967
답변완료
키움에서 작성한 수식인데, 예스용으로 변환 부탁드립니다 ******** 일 차트용 ******** 수식1 a=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,H); b=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,L(2)); (a-b)*AA+b 수식2 a=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,H); b=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,L(2)); (a-b)*BB+b 수식3 a=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,H); b=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,L(2)); (a-b)*CC+b 지표조건 kkk 1.15 period 240 AA 0.9 BB 0.8 CC 0.7 =================================================================================== ******** 분 차트용 ******** 수식1 a=max(dayhigh(), npredayhigh(1)); b=min(daylow(), npredaylow(1)); (a-b)*0.9+b 수식2 a=max(dayhigh(), npredayhigh(1)); b=min(daylow(), npredaylow(1)); (a-b)*0.8+b 수식3 a=max(dayhigh(), npredayhigh(1)); b=min(daylow(), npredaylow(1)); (a-b)*0.7+b
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-07-27 16:28:36

안녕하세요 예스스탁입니다. 1 input : kkk(1.15),period(240),AA(0.9),BB(0.8),CC(0.7); var : a(0),b(0); if DayClose > DayClose(1)*kkk and highest(v,Period)==v Then { a = h; b = l[2]; } if a > 0 and b > 0 Then { var1 = (a-b)*AA+b; Var2 = (a-b)*BB+b; Var3 = (a-b)*CC+b; Plot1(var1); Plot2(var2); Plot3(var3); } 2 var : a(0),b(0); a=max(dayhigh(), dayhigh(1)); b=min(daylow(), daylow(1)); var1 = (a-b)*0.9+b; Var2 = (a-b)*0.8+b; Var3 = (a-b)*0.7+b; if a > 0 and b > 0 Then { Plot1(var1); Plot2(var2); Plot3(var3); } 즐거운 하루되세요 > 유빈 님이 쓴 글입니다. > 제목 : 수식 변환부탁드립니다 > 키움에서 작성한 수식인데, 예스용으로 변환 부탁드립니다 ******** 일 차트용 ******** 수식1 a=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,H); b=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,L(2)); (a-b)*AA+b 수식2 a=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,H); b=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,L(2)); (a-b)*BB+b 수식3 a=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,H); b=valuewhen(1,dayclose() >predayclose()* kkk and highEst(v,period)==v,L(2)); (a-b)*CC+b 지표조건 kkk 1.15 period 240 AA 0.9 BB 0.8 CC 0.7 =================================================================================== ******** 분 차트용 ******** 수식1 a=max(dayhigh(), npredayhigh(1)); b=min(daylow(), npredaylow(1)); (a-b)*0.9+b 수식2 a=max(dayhigh(), npredayhigh(1)); b=min(daylow(), npredaylow(1)); (a-b)*0.8+b 수식3 a=max(dayhigh(), npredayhigh(1)); b=min(daylow(), npredaylow(1)); (a-b)*0.7+b