예스스탁
예스스탁 답변
2024-09-30 16:34:15
안녕하세요
예스스탁입니다.
1.pivot
input : 타주기분(60);
var : T1(0),D1(0),TM(0),TF(0),cnt(0);
Var : Pv(0),R1(0),R2(0),S1(0),S2(0);
Array : OO[20](0),HH[20](0),LL[20](0),CC[20](0);
if Bdate != Bdate[1] Then
{
T1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-T1;
Else
TM = TimeToMinutes(stime)+1440-T1;
TF = TM%타주기분;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and 타주기분 > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and 타주기분 > 1 and TM >= TM[1]+타주기분) or
(Bdate == Bdate[1] and 타주기분 == 1 and TM > TM[1]) Then
{
for cnt = 19 downto 1
{
OO[cnt] = OO[cnt-1];
HH[cnt] = HH[cnt-1];
LL[cnt] = LL[cnt-1];
CC[cnt] = CC[cnt-1];
}
OO[0] = O;
HH[0] = H;
LL[0] = L;
}
if HH[0] > 0 and H > HH[0] Then
HH[0] = H;
if LL[0] > 0 and L < LL[0] Then
LL[0] = L;
CC[0] = C;
Pv = (HH[1]+LL[1]+CC[1])/3;
R1 = 2*Pv-LL[1];
R2 = Pv+HH[1]-LL[1];
S1 = 2*Pv-HH[1];
S2 = Pv-HH[1]+LL[1];
Plot1(Pv, "피봇포인트");
Plot2(R1, "1차저항");
Plot3(R2, "2차저항");
Plot4(S1, "1차지지");
Plot5(S2, "2차지지");
}
2 demark
input : 타주기분(60);
var : T1(0),D1(0),TM(0),TF(0),cnt(0);
Array : OO[20](0),HH[20](0),LL[20](0),CC[20](0);
if Bdate != Bdate[1] Then
{
T1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-T1;
Else
TM = TimeToMinutes(stime)+1440-T1;
TF = TM%타주기분;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and 타주기분 > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and 타주기분 > 1 and TM >= TM[1]+타주기분) or
(Bdate == Bdate[1] and 타주기분 == 1 and TM > TM[1]) Then
{
for cnt = 19 downto 1
{
OO[cnt] = OO[cnt-1];
HH[cnt] = HH[cnt-1];
LL[cnt] = LL[cnt-1];
CC[cnt] = CC[cnt-1];
}
OO[0] = O;
HH[0] = H;
LL[0] = L;
}
if HH[0] > 0 and H > HH[0] Then
HH[0] = H;
if LL[0] > 0 and L < LL[0] Then
LL[0] = L;
CC[0] = C;
If CC[1] > OO[1] Then
{
value1 = (HH[1]+LL[1]+CC[1]+HH[1])/2-LL[1];
value2 = (HH[1]+LL[1]+CC[1]+HH[1])/2-HH[1];
}
Else If CC[1] < OO[1] Then
{
value1 = (HH[1]+LL[1]+CC[1]+LL[1])/2-LL[1];
value2 = (HH[1]+LL[1]+CC[1]+LL[1])/2-HH[1];
}
Else
{
value1 = (HH[1]+LL[1]+CC[1]+CC[1])/2-LL[1];
value2 = (HH[1]+LL[1]+CC[1]+CC[1])/2-HH[1];
}
Plot1(value1, "Demark분봉상한");
Plot2(value2, "Demark분봉하한");
}
즐거운 하루되세요
> 2wnwn 님이 쓴 글입니다.
> 제목 : 수고하십니다
> 항상 좋은 일만 있으시기 바랍니다
pivot과 demark지표를 한시간 단위로
나오게 요청 합니다