예스스탁
예스스탁 답변
2020-07-16 13:52:50
안녕하세요
예스스탁입니다.
1
input : N1(20),N2(6);
var : cnt(0);
var :H11(0),H12(0),L11(0),L12(0);
var :H21(0),H22(0),L21(0),L22(0);
H11 = highest(H,N1);
L11 = lowest(L,N1);
if H11 > 0 and L11 > 0 then
{
H12 = 0;
L12 = 0;
for cnt = 0 to N1-1
{
if H[cnt] < H11 and
(H12 == 0 or (H12 > 0 and H[cnt] > H12)) then
H12 = H[cnt];
if L[cnt] > L11 and
(L12 == 0 or (L12 > 0 and L[cnt] < L12)) then
L12 = L[cnt];
}
plot1(H11);
plot2(H12);
plot3((H11+H12)/2);
plot4(L11);
plot5(L12);
plot6((L11+L12)/2);
}
H21 = highest(H,N2);
L21 = lowest(L,N2);
if H21 > 0 and L21 > 0 then
{
H22 = 0;
L22 = 0;
for cnt = 0 to N2-1
{
if H[cnt] < H21 and
(H22 == 0 or (H22 > 0 and H[cnt] > H22)) then
H22 = H[cnt];
if L[cnt] > L21 and
(L22 == 0 or (L22 > 0 and L[cnt] < L22)) then
L22 = L[cnt];
}
plot7(H21);
plot8(H22);
plot9((H21+H22)/2);
plot10(L21);
plot11(L22);
plot12((L21+L22)/2);
}
2-1 월
input : N1(20),N2(6);
var : cnt(0);
var :H11(0),H12(0),L11(0),L12(0);
var :H21(0),H22(0),L21(0),L22(0);
Array : C1[50](0),H1[50](0),L1[50](0);
if Bdate > Bdate[1]+30 Then
{
H1[0] = H;
L1[0] = L;
for cnt = 1 to 49
{
C1[cnt] = C1[cnt-1][1];
H1[cnt] = H1[cnt-1][1];
L1[cnt] = L1[cnt-1][1];
}
}
C1[0] = C;
if H1[0] > 0 and H > H1[0] then
H1[0] = H;
if L1[0] > 0 and L < L1[0] then
L1[0] = L;
if H1[N1-1] > 0 and L1[N1-1] > 0 then
{
H11 = H1[0];
L11 = L1[0];
for cnt = 0 to N1-1
{
if H1[cnt] > H11 then
H11 = H1[cnt];
if L1[cnt] < L11 then
L11 = L1[cnt];
}
H12 = 0;
L12 = 0;
for cnt = 0 to N1-1
{
if H[cnt] < H11 and
(H12 == 0 or (H12 > 0 and H[cnt] > H12)) then
H12 = H[cnt];
if L[cnt] > L11 and
(L12 == 0 or (L12 > 0 and L[cnt] < L12)) then
L12 = L[cnt];
}
plot1(H11);
plot2(H12);
plot3((H11+H12)/2);
plot4(L11);
plot5(L12);
plot6((L11+L12)/2);
}
if H1[N2-1] > 0 and L1[N2-1] > 0 then
{
H21 = H1[0];
L21 = L1[0];
for cnt = 0 to N2-1
{
if H1[cnt] > H21 then
H21 = H1[cnt];
if L1[cnt] < L21 then
L21 = L1[cnt];
}
H22 = 0;
L22 = 0;
for cnt = 0 to N2-1
{
if H[cnt] < H21 and
(H22 == 0 or (H22 > 0 and H[cnt] > H22)) then
H22 = H[cnt];
if L[cnt] > L21 and
(L22 == 0 or (L22 > 0 and L[cnt] < L22)) then
L22 = L[cnt];
}
plot7(H21);
plot8(H22);
plot9((H21+H22)/2);
plot10(L21);
plot11(L22);
plot12((L21+L22)/2);
}
2-2 주
input : N1(20),N2(6);
var : cnt(0);
var :H11(0),H12(0),L11(0),L12(0);
var :H21(0),H22(0),L21(0),L22(0);
Array : C1[50](0),H1[50](0),L1[50](0);
if dayofweek(Bdate) < dayofweek(Bdate[1])+30 Then
{
H1[0] = H;
L1[0] = L;
for cnt = 1 to 49
{
C1[cnt] = C1[cnt-1][1];
H1[cnt] = H1[cnt-1][1];
L1[cnt] = L1[cnt-1][1];
}
}
C1[0] = C;
if H1[0] > 0 and H > H1[0] then
H1[0] = H;
if L1[0] > 0 and L < L1[0] then
L1[0] = L;
if H1[N1-1] > 0 and L1[N1-1] > 0 then
{
H11 = H1[0];
L11 = L1[0];
for cnt = 0 to N1-1
{
if H1[cnt] > H11 then
H11 = H1[cnt];
if L1[cnt] < L11 then
L11 = L1[cnt];
}
H12 = 0;
L12 = 0;
for cnt = 0 to N1-1
{
if H[cnt] < H11 and
(H12 == 0 or (H12 > 0 and H[cnt] > H12)) then
H12 = H[cnt];
if L[cnt] > L11 and
(L12 == 0 or (L12 > 0 and L[cnt] < L12)) then
L12 = L[cnt];
}
plot1(H11);
plot2(H12);
plot3((H11+H12)/2);
plot4(L11);
plot5(L12);
plot6((L11+L12)/2);
}
if H1[N2-1] > 0 and L1[N2-1] > 0 then
{
H21 = H1[0];
L21 = L1[0];
for cnt = 0 to N2-1
{
if H1[cnt] > H21 then
H21 = H1[cnt];
if L1[cnt] < L21 then
L21 = L1[cnt];
}
H22 = 0;
L22 = 0;
for cnt = 0 to N2-1
{
if H[cnt] < H21 and
(H22 == 0 or (H22 > 0 and H[cnt] > H22)) then
H22 = H[cnt];
if L[cnt] > L21 and
(L22 == 0 or (L22 > 0 and L[cnt] < L22)) then
L22 = L[cnt];
}
plot7(H21);
plot8(H22);
plot9((H21+H22)/2);
plot10(L21);
plot11(L22);
plot12((L21+L22)/2);
}
2-3 일
input : N1(20),N2(6);
var : cnt(0);
var :H11(0),H12(0),L11(0),L12(0);
var :H21(0),H22(0),L21(0),L22(0);
if dayhigh(N1-1) > 0 and daylow(N1-1) > 0 then
{
H11 = dayhigh(0);
L11 = daylow(0);
for cnt = 0 to N1-1
{
if dayhigh(cnt) > H11 then
H11 = dayhigh(cnt);
if daylow(cnt) < L11 then
L11 = daylow(cnt);
}
H12 = 0;
L12 = 0;
for cnt = 0 to N1-1
{
if dayhigh(cnt) < H11 and
(H12 == 0 or (H12 > 0 and dayhigh(cnt) > H12)) then
H12 = dayhigh(cnt);
if L[cnt] > L11 and
(L12 == 0 or (L12 > 0 and dayLow(cnt) < L12)) then
L12 = dayLow(cnt);
}
plot1(H11);
plot2(H12);
plot3((H11+H12)/2);
plot4(L11);
plot5(L12);
plot6((L11+L12)/2);
}
if dayhigh(N2-1) > 0 and daylow(N2-1) > 0 then
{
H21 = dayhigh(0);
L21 = daylow(0);
for cnt = 0 to N2-1
{
if dayhigh(cnt) > H21 then
H21 = dayhigh(cnt);
if daylow(cnt) < L21 then
L21 = daylow(cnt);
}
H22 = 0;
L22 = 0;
for cnt = 0 to N2-1
{
if dayhigh(cnt) < H21 and
(H22 == 0 or (H22 > 0 and dayhigh(cnt) > H22)) then
H22 = dayhigh(cnt);
if dayLow(cnt) > L21 and
(L22 == 0 or (L22 > 0 and dayLow(cnt) < L22)) then
L22 = dayLow(cnt);
}
plot7(H21);
plot8(H22);
plot9((H21+H22)/2);
plot10(L21);
plot11(L22);
plot12((L21+L22)/2);
}
2-4 분
input : ntime(60),N1(20),N2(6);
var : S1(0),D1(0),TM(0),TF(0),cnt(0);
var :H11(0),H12(0),L11(0),L12(0);
var :H21(0),H22(0),L21(0),L22(0);
Array : C1[50](0),H1[50](0),L1[50](0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
H1[0] = H;
L1[0] = L;
for cnt = 1 to 49
{
C1[cnt] = C1[cnt-1][1];
H1[cnt] = H1[cnt-1][1];
L1[cnt] = L1[cnt-1][1];
}
}
C1[0] = C;
if H1[0] > 0 and H > H1[0] then
H1[0] = H;
if L1[0] > 0 and L < L1[0] then
L1[0] = L;
if H1[N1-1] > 0 and L1[N1-1] > 0 then
{
H11 = H1[0];
L11 = L1[0];
for cnt = 0 to N1-1
{
if H1[cnt] > H11 then
H11 = H1[cnt];
if L1[cnt] < L11 then
L11 = L1[cnt];
}
H12 = 0;
L12 = 0;
for cnt = 0 to N1-1
{
if H[cnt] < H11 and
(H12 == 0 or (H12 > 0 and H[cnt] > H12)) then
H12 = H[cnt];
if L[cnt] > L11 and
(L12 == 0 or (L12 > 0 and L[cnt] < L12)) then
L12 = L[cnt];
}
plot1(H11);
plot2(H12);
plot3((H11+H12)/2);
plot4(L11);
plot5(L12);
plot6((L11+L12)/2);
}
if H1[N2-1] > 0 and L1[N2-1] > 0 then
{
H21 = H1[0];
L21 = L1[0];
for cnt = 0 to N2-1
{
if H1[cnt] > H21 then
H21 = H1[cnt];
if L1[cnt] < L21 then
L21 = L1[cnt];
}
H22 = 0;
L22 = 0;
for cnt = 0 to N2-1
{
if H[cnt] < H21 and
(H22 == 0 or (H22 > 0 and H[cnt] > H22)) then
H22 = H[cnt];
if L[cnt] > L21 and
(L22 == 0 or (L22 > 0 and L[cnt] < L22)) then
L22 = L[cnt];
}
plot7(H21);
plot8(H22);
plot9((H21+H22)/2);
plot10(L21);
plot11(L22);
plot12((L21+L22)/2);
}
}
즐거운 하루되세요
> 에리카 님이 쓴 글입니다.
> 제목 : 지표
> 1>
20개의 캔들중
가장높은 최고가와
그다음높은 차고가의 중간값
20개의 캔들중
가장높은 최저가와
그다음낮은 차저가의 중간값
6개의 캔들중
가장높은 최고가와
그다음높은 차고가의 중간값
6개의 캔들중
가장높은 최저가와
그다음낮은 차저가의 중간값
2>
이역시
2-1>주봉에월봉지표
2-2>일봉에월주
2-3>60분에월 주 일
2-4>10분에 월주일 60분
대입 식 부탁드립니다