커뮤니티

지표 문의 드립니다

프로필 이미지
yosong
2016-02-17 10:10:22
147
글번호 95433
답변완료

첨부 이미지

if high[3]<high[2] then sa=True; sd=False; if high[2]<high[1] then sb=True; if high[1]<high then sc=True; if sa==true and sb==true and sc==True then sd=true; sa=False; sb=False; sc=False; if low[3]>low[2] then sa1=True; sd1=False; if low[2]>low[1] then sb1=True; if low[1]>low then sc1=True; if sa1==true and sb1==true and sc1==True then sd1=true; sa1=False; sb1=False; sc1=False; 2번구간은 다음과 같은 식으로 3번연속 저가갱신이 처리가 되는데 1번에 경우 연속 봉으로 저가이 갱신 된게 아니라서 처리가 되지 않습니다. 어떻게 할수 있는지 문의 드립니다. 한가지 더 추가 하고 싶은게 이전 봉에 고가을 넘으로 3번연속에서 제외하고 싶습니다.. 도움 주셔서 감사합니다~
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-02-17 17:16:04

안녕하세요 예스스탁입니다. var : Hcnt(0),Lcnt(0); #전봉대비 고가가 크면 if H > H[1] Then{ #Lcnt는 0 Lcnt = 0; #저가가 전봉대비 작지 않으면 if L >= L[1] Then Hcnt = Hcnt+1; #Hcnt는 1씩 증가 } #전봉대비 저가가 작아지면 if L < L[1] Then{ #Hcnt는 0 Hcnt = 0; #고가가 전봉대비 커지지 않으면 if H <= H[1] Then Lcnt = Lcnt+1; #Lcnt는 1씩 증가 } plot1(Lcnt); plot2(Hcnt); 즐거운 하루되세요 > yosong 님이 쓴 글입니다. > 제목 : 지표 문의 드립니다 > if high[3]<high[2] then sa=True; sd=False; if high[2]<high[1] then sb=True; if high[1]<high then sc=True; if sa==true and sb==true and sc==True then sd=true; sa=False; sb=False; sc=False; if low[3]>low[2] then sa1=True; sd1=False; if low[2]>low[1] then sb1=True; if low[1]>low then sc1=True; if sa1==true and sb1==true and sc1==True then sd1=true; sa1=False; sb1=False; sc1=False; 2번구간은 다음과 같은 식으로 3번연속 저가갱신이 처리가 되는데 1번에 경우 연속 봉으로 저가이 갱신 된게 아니라서 처리가 되지 않습니다. 어떻게 할수 있는지 문의 드립니다. 한가지 더 추가 하고 싶은게 이전 봉에 고가을 넘으로 3번연속에서 제외하고 싶습니다.. 도움 주셔서 감사합니다~