예스스탁
예스스탁 답변
2020-01-08 13:32:30
안녕하세요
예스스탁입니다.
dayhigh,daylow은 거래소의 영업일변경시간 기준의 일간고가와 저가입니다.
항셍의 경우에는 해당 종목의 거래소에서는 새로운 영업일 변경을 한국시간 18시15분(거래소시간 17시 15분)을 기준으로 합니다.
하루의 시작이 10시 15분이 아니므로 10시15분봉의 중간값은 (H+L)/2로 지정하셔야 합니다.
input : 카운팅시작일자(20191010),카운팅시작시간(101500);
var : XClose(0),Xopen(0),Xhigh(0),Xlow(0),Tcond(false),DO(0);
if sdate >= 카운팅시작일자 and stime >= 카운팅시작시간 Then
Tcond = true;
xClose = (Open+High+Low+Close)/4;
if CurrentBar <= 1 Then
Xopen = (O+C)/2;
Else
xOpen = (XOpen[1] + xClose[1])/2;
xHigh = Max(High, xOpen, xClose);
xLow = Min(Low, xOpen, xClose);
var1=xHigh;
var2=xLow;
if Tcond == true then
{
if (sdate != sdate[1] and stime >= 101500) or
(sdate == sdate[1] and stime >= 101500 and stime[1] < 101500) Then
DO = (H+L)/2;
if c>=do then
{
plot12(var1, "상",RED);
Plot22(do, "하",blue);
}
Else
{
Plot12(do, "상",red);
Plot22(var2, "하",blue);
}
PlotBaseLine1(do, "중심",black);
}
즐거운 하루되세요
> 수색대대 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 수고하십니다.
상기 챠트그림은 항셍15분입니다.
수식은 첫봉고점저점 중간값을 중심으로 표시하는 수식인데
표기되는 숫자가 상이하게 나옵니다.
수식 수정부탁드립니다.
input : 카운팅시작일자(20191010),카운팅시작시간(101500);
var : XClose(0),Xopen(0),Xhigh(0),Xlow(0),Tcond(false),DO(0);
if sdate >= 카운팅시작일자 and stime >= 카운팅시작시간 Then
Tcond = true;
xClose = (Open+High+Low+Close)/4;
if CurrentBar <= 1 Then
Xopen = (O+C)/2;
Else
xOpen = (XOpen[1] + xClose[1])/2;
xHigh = Max(High, xOpen, xClose);
xLow = Min(Low, xOpen, xClose);
var1=xHigh;
var2=xLow;
if Tcond == true then
{
if (sdate != sdate[1] and stime >= 101500) or
(sdate == sdate[1] and stime >= 101500 and stime[1] < 101500) Then
DO = (DayHigh+daylow)/2;
if c>=do then
{
plot12(var1, "상",RED);
Plot22(do, "하",blue);
}
Else
{
Plot12(do, "상",red);
Plot22(var2, "하",blue);
}
PlotBaseLine1(do, "중심",black);
}