커뮤니티

수식부탁드려요

프로필 이미지
해피오
2021-11-05 19:19:16
933
글번호 153437
답변완료
일자(기간)변경에 따른 기준선지표 1. 분봉상 기준일자(시간)변경기준: 08시 00분 00초 상단선:【 { 2 * < ( predayhigh()+predaylow()+predayclose() )/3 > - predaylow() } + ( predayhigh()+predaylow()+predayclose() )/3 + predayhigh() - predaylow() 】/ 2 ; 하단선:【 { 2 * < ( predayhigh()+predaylow()+predayclose() )/3 > - predayhigh() } + ( predayhigh()+predaylow()+predayclose() )/3 - predayhigh() + predaylow() 】/ 2 ; 상하중심선: ( predayhigh() + predaylow() + predayclose() )/3 ; 디마크상단선: 디마크하단선: 디마크기준선: 2. 1번의 라인들을 기준시간만 달리해서 설정하는 수식 가. 기준시간1 : 08시 00분 00초 나. 기준시간2 : 16시 00분 00초 다 기준시간3 : 22시 30분 00초 변경되는 시간기준을 세가지 모두 적용되는 수식 1과 2의 수식지표를 부탁드립니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-11-09 12:56:23

안녕하세요 예스스탁입니다. 1 var : 상단선(0),하단선(0),중심선(0); 상단선 = ((2 * ((dayhigh(1)+daylow(1)+dayclose(1))/3) - daylow(1)) + (dayhigh(1)+daylow(1)+dayclose(1))/3 + dayhigh(1) - daylow(1))/ 2 ; 하단선 = ((2 * ((dayhigh(1)+daylow(1)+dayclose(1))/3) - dayhigh(1)) + (dayhigh(1)+daylow(1)+dayclose(1))/3 - dayhigh(1) + daylow(1))/ 2 ; 중심선 = (dayhigh(1)+daylow(1)+dayclose(1))/3 ; Plot1(상단선); Plot2(하단선); Plot3(중심선); 2 input : time1(80000),time2(160000),time3(223000); var : 상단선(0),하단선(0),중심선(0); var : HH(0),LL(0),CC(0),HH1(0),LL1(0),CC1(0); if (sdate != sdate[1] and stime >= Time1) or (sdate == sdate[1] and stime >= Time1 and stime[1] < Time1) Then { hh = h; ll = l; hh1 = hh[1]; ll1 = ll[1]; cc1 = cc[1]; } if (sdate != sdate[1] and stime >= Time2) or (sdate == sdate[1] and stime >= Time2 and stime[1] < Time2) Then { hh = h; ll = l; hh1 = hh[1]; ll1 = ll[1]; cc1 = cc[1]; } if (sdate != sdate[1] and stime >= Time3) or (sdate == sdate[1] and stime >= Time3 and stime[1] < Time3) Then { hh = h; ll = l; hh1 = hh[1]; ll1 = ll[1]; cc1 = cc[1]; } if hh > 0 and h > hh Then hh = h; if ll > 0 and l < ll Then ll = l; cc = c; if hh1 > 0 Then { 상단선 = ((2 * ((hh1+ll1+cc1)/3) - ll1) + (hh1+ll1+cc1)/3 + hh1 - ll1)/ 2 ; 하단선 = ((2 * ((hh1+ll1+cc1)/3) - hh1) + (hh1+ll1+cc1)/3 - hh1 + ll1)/ 2 ; 중심선 = (hh1+ll1+cc1)/3 ; Plot1(상단선); Plot2(하단선); Plot3(중심선); } 즐거운 하루되세요 > 해피오 님이 쓴 글입니다. > 제목 : 수식부탁드려요 > 일자(기간)변경에 따른 기준선지표 1. 분봉상 기준일자(시간)변경기준: 08시 00분 00초 상단선:【 { 2 * < ( predayhigh()+predaylow()+predayclose() )/3 > - predaylow() } + ( predayhigh()+predaylow()+predayclose() )/3 + predayhigh() - predaylow() 】/ 2 ; 하단선:【 { 2 * < ( predayhigh()+predaylow()+predayclose() )/3 > - predayhigh() } + ( predayhigh()+predaylow()+predayclose() )/3 - predayhigh() + predaylow() 】/ 2 ; 상하중심선: ( predayhigh() + predaylow() + predayclose() )/3 ; 디마크상단선: 디마크하단선: 디마크기준선: 2. 1번의 라인들을 기준시간만 달리해서 설정하는 수식 가. 기준시간1 : 08시 00분 00초 나. 기준시간2 : 16시 00분 00초 다 기준시간3 : 22시 30분 00초 변경되는 시간기준을 세가지 모두 적용되는 수식 1과 2의 수식지표를 부탁드립니다.