커뮤니티
문의드립니다....
2016-12-21 12:26:59
97
글번호 105147
안녕하세요^^
늘 깊은 감사를 드립니다...^^
아래 수식 변환 좀 부탁드려요^^
감사합니다^^
========================= 아 래 ==============================
1. 당시
valuewhen(1, crossup(time, 099999), O)
2. 상강
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
중심값+((중심값-((중심값+((중심값*2)-B))/2))/2)
3. 상1
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
중심값+((중심값-D)/2)
4. 상2
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
(중심값+((중심값-D)/2))+((중심값-D)/2)
5. 상3
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k2=(중심값-D)/2;
(중심값+((중심값-D)/2))+((중심값-D)/2)+k2
6. 상4
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k2=(중심값-D)/2;
((중심값+((중심값-D)/2))+((중심값- D)/2)+k2)+k2
7. 하강
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k2=(중심값-D)/2;
음봉저항=((중심값*2-D)+중심값)/2;
중심값-((음봉저항-중심값)/2)
8. 하1
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
중심값-(B-중심값)/2
9. 하2
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
(중심값-(B-중심값)/2)-k3
10. 하3
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
하락2=(중심값-(B-중심값)/2)-k3;
하락2-k3
11. 하4
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
하락3=((중심값-(B-중심값)/2)-k3)-k3;
하락3-k3
12. 중심
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
13. 평균
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
(B+D)/2
14. 상강(일목2)
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
(중심값+((중심값-D)/2))+((중심값-D)/2)
15. 상강(일목3)
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k2=(중심값-D)/2;
(중심값+((중심값-D)/2))+((중심값-D)/2)+k2
16. 하강(일목2)
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
(중심값-(B-중심값)/2)-k3
17. 하강(일목3)
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
하락2=(중심값-(B-중심값)/2)-k3;
하락2-k3
18. 보합상
valuewhen(1, crossup(time, 099999), O) + 75
19. 보합하
valuewhen(1, crossup(time, 099999), O) - 75
20. 피보1
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.236;
D = A2 + B;
D
21. 피보2
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.382;
D = A2 + B;
D
22. 피보3
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.5;
D = A2 + B;
D
23. 피보4
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.618;
D = A2 + B;
D
24. 피보5
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.764;
D = A2 + B;
D
25. 주요선1(2저)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
(A+B+D)/3 +A-B
26. 주요선1(1저)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
2*((A+B+D)/3)-D
27. 주요선1(기)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
(A+B+D)/3
28. 주요선1(1지)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
2*((A+B+D)/3) -A
29. 주요선1(2지)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
(A+B+D)/3-A+B
30. 주요선2(디고)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
E1 = valuewhen(1, crossup(time, 099999), O);
E = valuewhen(1, crossup(time, 099999), E1(1));
if(D > E,
(A+B+D+A)/2-B,
(if(D < E, (A+B+D+B)/2-B, (A+B+D+D)/2-B)))
31. 주요선2(기)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
E1 = valuewhen(1, crossup(time, 099999), O);
E = valuewhen(1, crossup(time, 099999), E1(1));
if(D > E, (A+B+D+A)/4,
(if(D < E, (A+B+D+B)/4, (A+B+D+D)/4)))
32. 주요선2(디저)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
E1 = valuewhen(1, crossup(time, 099999), O);
E = valuewhen(1, crossup(time, 099999), E1(1));
if(D > E,
(A+B+D+A)/2-A,
(if(D < E, (A+B+D+B)/2-A, (A+B+D+D)/2-A)))
33. 주요선2(당중)
A = highestsince(1, crossup(time, 099999), H);
B = lowestsince(1, crossup(time, 099999), L);
E = valuewhen(1, crossup(time, 099999), O);
(E + A + B)/3
================================ 이 상 ===============================
감사합니다^^
답변 1
예스스탁 예스스탁 답변
2016-12-21 15:59:31
안녕하세요
예스스탁입니다.
올려주신 내용 시간관계상 모두 변경해 드릴수 없습니다.
올려주신 식이 valuewhen,highestsince,lowestsince 함수를 이용하므로
아래 내용 참고하셔서 수정해 사용하시기 바랍니다.
1
valuewhen은 특정조건 만족시 지정한 값을 리턴하는 함수이므로
아래와 같이 처리하시면 됩니다.
if 조건 then
변수 = 저장할값;
예를 들어 골든크로스봉의 종가는 아래와 같습니다.
if crossup(ma(c,5),ma(c,20)) then
var1 = C;
2
highestsince는 특정조건 만족후 최고가이므로
if 조건 then
변수 = 저장할값;
if 저장할값 > 변수 then
변수 = 저장할값;
예를 들어 골든크로스 이후 최고가는 아래와 같습니다.
if crossup(ma(c,5),ma(c,20)) then
var2 = H;
if H > var2 then
var2 = H;
3
lowestsince는 특정조건 만족후 최저가이므로
if 조건 then
변수 = 저장할값;
if 저장할값 < 변수 then
변수 = 저장할값;
예를 들어 데드크로스 이후 최저가는 아래와 같습니다.
if crossup(ma(c,5),ma(c,20)) then
var3 = L;
if L < var3 then
var3 = L;
4
아래는 수식은 올리신 내용 중 32번에 관련된 식입니다.
참고하시기 바랍니다.
D는 날짜예약어로 변수로 사용할수 없어 DD로 변경했습니다.
var : A(0),A1(0),B1(0),B(0),DD(0),E1(0),E(0);
if crossup(time,099999) Then{
A1 = H;
A = A1[1];
B1 = L;
B = B1[1];
DD = C[1];
E1 = O;
E = E1[1];
}
if H > A1 Then
A1 = H;
if L < B1 Then
B1 = L;
value1 = iff(DD > E, (A+B+DD+A)/2-A, (iff(DD < E, (A+B+DD+B)/2-A, (A+B+DD+DD)/2-A)));
plot1(value1);
즐거운 하루되세요
> Solomon 님이 쓴 글입니다.
> 제목 : 문의드립니다....
> 안녕하세요^^
늘 깊은 감사를 드립니다...^^
아래 수식 변환 좀 부탁드려요^^
감사합니다^^
========================= 아 래 ==============================
1. 당시
valuewhen(1, crossup(time, 099999), O)
2. 상강
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
중심값+((중심값-((중심값+((중심값*2)-B))/2))/2)
3. 상1
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
중심값+((중심값-D)/2)
4. 상2
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
(중심값+((중심값-D)/2))+((중심값-D)/2)
5. 상3
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k2=(중심값-D)/2;
(중심값+((중심값-D)/2))+((중심값-D)/2)+k2
6. 상4
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k2=(중심값-D)/2;
((중심값+((중심값-D)/2))+((중심값- D)/2)+k2)+k2
7. 하강
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k2=(중심값-D)/2;
음봉저항=((중심값*2-D)+중심값)/2;
중심값-((음봉저항-중심값)/2)
8. 하1
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
중심값-(B-중심값)/2
9. 하2
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
(중심값-(B-중심값)/2)-k3
10. 하3
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
하락2=(중심값-(B-중심값)/2)-k3;
하락2-k3
11. 하4
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
하락3=((중심값-(B-중심값)/2)-k3)-k3;
하락3-k3
12. 중심
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
13. 평균
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
(B+D)/2
14. 상강(일목2)
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
(중심값+((중심값-D)/2))+((중심값-D)/2)
15. 상강(일목3)
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k2=(중심값-D)/2;
(중심값+((중심값-D)/2))+((중심값-D)/2)+k2
16. 하강(일목2)
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
(중심값-(B-중심값)/2)-k3
17. 하강(일목3)
A = valuewhen(1, crossup(time, 099999), C(1));
B1 = highestsince(1, crossup(time, 099999), H);
B = valuewhen(1, crossup(time, 099999), B1(1));
D1 = lowestsince(1, crossup(time, 099999), L);
D = valuewhen(1, crossup(time, 099999), D1(1));
중심값=(A+B+D)/3;
k3=(B-중심값)/2;
하락2=(중심값-(B-중심값)/2)-k3;
하락2-k3
18. 보합상
valuewhen(1, crossup(time, 099999), O) + 75
19. 보합하
valuewhen(1, crossup(time, 099999), O) - 75
20. 피보1
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.236;
D = A2 + B;
D
21. 피보2
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.382;
D = A2 + B;
D
22. 피보3
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.5;
D = A2 + B;
D
23. 피보4
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.618;
D = A2 + B;
D
24. 피보5
x1 = valuewhen(1, crossup(time, 099999), C(1));
x2 = highestsince(1, crossup(time, 099999), H);
x3 = lowestsince(1, crossup(time, 099999), L);
A1 = if(x1 > x2, x1, x2);
A2 = if(x1 < x3, x1, x3);
A = A1 - A2;
B = A * 0.764;
D = A2 + B;
D
25. 주요선1(2저)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
(A+B+D)/3 +A-B
26. 주요선1(1저)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
2*((A+B+D)/3)-D
27. 주요선1(기)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
(A+B+D)/3
28. 주요선1(1지)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
2*((A+B+D)/3) -A
29. 주요선1(2지)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
(A+B+D)/3-A+B
30. 주요선2(디고)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
E1 = valuewhen(1, crossup(time, 099999), O);
E = valuewhen(1, crossup(time, 099999), E1(1));
if(D > E,
(A+B+D+A)/2-B,
(if(D < E, (A+B+D+B)/2-B, (A+B+D+D)/2-B)))
31. 주요선2(기)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
E1 = valuewhen(1, crossup(time, 099999), O);
E = valuewhen(1, crossup(time, 099999), E1(1));
if(D > E, (A+B+D+A)/4,
(if(D < E, (A+B+D+B)/4, (A+B+D+D)/4)))
32. 주요선2(디저)
A1 = highestsince(1, crossup(time, 099999), H);
A = valuewhen(1, crossup(time, 099999), A1(1));
B1 = lowestsince(1, crossup(time, 099999), L);
B = valuewhen(1, crossup(time, 099999), B1(1));
D = valuewhen(1, crossup(time, 099999), C(1));
E1 = valuewhen(1, crossup(time, 099999), O);
E = valuewhen(1, crossup(time, 099999), E1(1));
if(D > E,
(A+B+D+A)/2-A,
(if(D < E, (A+B+D+B)/2-A, (A+B+D+D)/2-A)))
33. 주요선2(당중)
A = highestsince(1, crossup(time, 099999), H);
B = lowestsince(1, crossup(time, 099999), L);
E = valuewhen(1, crossup(time, 099999), O);
(E + A + B)/3
================================ 이 상 ===============================
감사합니다^^