커뮤니티
문의드립니다
2018-07-17 07:18:33
191
글번호 120655
수정부탁드립니다.
Var : Pivot(0);
var : Wopen(0),Whigh(0),Wlow(0),Whigh1(0),Wlow1(0),Wclose(0),Wclose1(0);
if dayofweek(date) < dayofweek(date[1]) Then{
Wopen = O;
Whigh = H;
Wlow = L;
Whigh1 = Whigh[1];
Wlow1 = Wlow[1];
Wclose1 = Wclose[1];
}
if H > Whigh Then
Whigh = H;
if L < Wlow Then
Wlow = L;
Wclose = C;
Pivot = (Whigh1+Wlow1+WClose1)/3;
Plot1(Whigh1, "전주고");
Plot2(Wlow1, "전주저");
Plot3(Wclose1, "전주종가");
Plot4(Pivot, "주피봇포인트");
해선의 경우 주간시세의 마감시각이 현재 우리시간으로 토요일 0600 인데,
위의식을 0500 마감으로해서 지표값이 plot되게 수정해주세요.
답변 1
예스스탁 예스스탁 답변
2018-07-17 11:03:18
안녕하세요
예스스탁입니다.
Var : Pivot(0);
var : Wopen(0),Whigh(0),Wlow(0),Whigh1(0),Wlow1(0),Wclose(0),Wclose1(0);
var : Tcond(false);
if dayofweek(date) < dayofweek(date[1]) Then
{
Tcond = true;
Wopen = O;
Whigh = H;
Wlow = L;
Whigh1 = Whigh[1];
Wlow1 = Wlow[1];
Wclose1 = Wclose[1];
}
if dayofweek(date) == 6 and
((sdate != sdate[1] and stime >= 050000) or
(sdate == sdate[1] and stime >= 050000)) Then
{
Tcond = true;
}
if Tcond == true then
{
if H > Whigh Then
Whigh = H;
if L < Wlow Then
Wlow = L;
Wclose = C;
Pivot = (Whigh1+Wlow1+WClose1)/3;
}
Plot1(Whigh1, "전주고");
Plot2(Wlow1, "전주저");
Plot3(Wclose1, "전주종가");
Plot4(Pivot, "주피봇포인트");
즐거운 하루되세요
> 뉴스타트 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 수정부탁드립니다.
Var : Pivot(0);
var : Wopen(0),Whigh(0),Wlow(0),Whigh1(0),Wlow1(0),Wclose(0),Wclose1(0);
if dayofweek(date) < dayofweek(date[1]) Then{
Wopen = O;
Whigh = H;
Wlow = L;
Whigh1 = Whigh[1];
Wlow1 = Wlow[1];
Wclose1 = Wclose[1];
}
if H > Whigh Then
Whigh = H;
if L < Wlow Then
Wlow = L;
Wclose = C;
Pivot = (Whigh1+Wlow1+WClose1)/3;
Plot1(Whigh1, "전주고");
Plot2(Wlow1, "전주저");
Plot3(Wclose1, "전주종가");
Plot4(Pivot, "주피봇포인트");
해선의 경우 주간시세의 마감시각이 현재 우리시간으로 토요일 0600 인데,
위의식을 0500 마감으로해서 지표값이 plot되게 수정해주세요.