커뮤니티

수식 부탁드립니다

프로필 이미지
회원
2013-10-02 00:33:29
106
글번호 68041
답변완료
if stime == 151500 Then var1 = highest(H,36); if stime == 092900 Then var1 = highest(H,30); if stime == 095900 Then var1 = highest(H,30); if stime == 102900 Then var1 = highest(H,30); if stime == 105900 Then var1 = highest(H,30); if stime == 112900 then var1 = highest(H,30); if stime == 115900 then var1 = highest(H,30); if stime == 122900 then var1 = highest(H,30); if stime == 125900 then var1 = highest(H,30); if stime == 132900 then var1 = highest(H,30); if stime == 135900 then var1 = highest(H,30); if stime == 142900 then var1 = highest(H,30); if stime == 151500 then var2 = lowest(L,36); if stime == 092900 then var2 = lowest(L,30); if stime == 095900 then var2 = lowest(L,30); if stime == 102900 then var2 = lowest(L,30); if stime == 105900 then var2 = lowest(L,30); if stime == 112900 then var2 = lowest(L,30); if stime == 115900 then var2 = lowest(L,30); if stime == 122900 then var2 = lowest(L,30); if stime == 125900 then var2 = lowest(L,30); if stime == 132900 then var2 = lowest(L,30); if stime == 135900 then var2 = lowest(L,30); if stime == 142900 then var2 = lowest(L,30); if C > var1 Then value1 = 1; if C < var2 Then value1 = -1; plot1(value1); ---------------------------------------------------------- 위 상태에서 plot1(value1); 값이 1 plot2(value2); 값이 -1 한개를 두개로 해주시면 고맙겠습니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-10-02 11:17:20

안녕하세요 예스스탁입니다. 조건이 만족하면 1이나 -1이 저장되고 만족하지 않으면 모두 0이 저장되게 했습니다. if stime == 151500 Then var1 = highest(H,36); if stime == 092900 Then var1 = highest(H,30); if stime == 095900 Then var1 = highest(H,30); if stime == 102900 Then var1 = highest(H,30); if stime == 105900 Then var1 = highest(H,30); if stime == 112900 then var1 = highest(H,30); if stime == 115900 then var1 = highest(H,30); if stime == 122900 then var1 = highest(H,30); if stime == 125900 then var1 = highest(H,30); if stime == 132900 then var1 = highest(H,30); if stime == 135900 then var1 = highest(H,30); if stime == 142900 then var1 = highest(H,30); if stime == 151500 then var2 = lowest(L,36); if stime == 092900 then var2 = lowest(L,30); if stime == 095900 then var2 = lowest(L,30); if stime == 102900 then var2 = lowest(L,30); if stime == 105900 then var2 = lowest(L,30); if stime == 112900 then var2 = lowest(L,30); if stime == 115900 then var2 = lowest(L,30); if stime == 122900 then var2 = lowest(L,30); if stime == 125900 then var2 = lowest(L,30); if stime == 132900 then var2 = lowest(L,30); if stime == 135900 then var2 = lowest(L,30); if stime == 142900 then var2 = lowest(L,30); if C > var1 Then value1 = 1; Else value1 = 0; if C < var2 Then value2 = -1; Else value2 = 0; plot1(value1); plot2(value2); 즐거운 하루되세요 > HI_yh**** 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다 > if stime == 151500 Then var1 = highest(H,36); if stime == 092900 Then var1 = highest(H,30); if stime == 095900 Then var1 = highest(H,30); if stime == 102900 Then var1 = highest(H,30); if stime == 105900 Then var1 = highest(H,30); if stime == 112900 then var1 = highest(H,30); if stime == 115900 then var1 = highest(H,30); if stime == 122900 then var1 = highest(H,30); if stime == 125900 then var1 = highest(H,30); if stime == 132900 then var1 = highest(H,30); if stime == 135900 then var1 = highest(H,30); if stime == 142900 then var1 = highest(H,30); if stime == 151500 then var2 = lowest(L,36); if stime == 092900 then var2 = lowest(L,30); if stime == 095900 then var2 = lowest(L,30); if stime == 102900 then var2 = lowest(L,30); if stime == 105900 then var2 = lowest(L,30); if stime == 112900 then var2 = lowest(L,30); if stime == 115900 then var2 = lowest(L,30); if stime == 122900 then var2 = lowest(L,30); if stime == 125900 then var2 = lowest(L,30); if stime == 132900 then var2 = lowest(L,30); if stime == 135900 then var2 = lowest(L,30); if stime == 142900 then var2 = lowest(L,30); if C > var1 Then value1 = 1; if C < var2 Then value1 = -1; plot1(value1); ---------------------------------------------------------- 위 상태에서 plot1(value1); 값이 1 plot2(value2); 값이 -1 한개를 두개로 해주시면 고맙겠습니다