예스스탁
예스스탁 답변
2024-12-06 15:58:33
안녕하세요
예스스탁입니다.
INPUT : LENGTH(200);
VAR : TCHAN(0), BCHAN(0),TL(0),ii(0);
if Bdate != Bdate[1] Then
{
ii = 0;
TCHAN = H;
BCHAN = L;
}
ii = ii +1;
if ii < Length Then
{
if H > TCHAN Then
TCHAN = H;
if L < BCHAN Then
BCHAN = L;
}
else
{
TCHAN = HIGHEST(HIGH, LENGTH);
BCHAN = LOWEST(LOW, LENGTH);
}
PLOT1(TCHAN, "TOP");
PLOT2(BCHAN, "BOT");
if H == TCHAN and (var11 == 0 or (var11 > 0 and Index > var11+100)) Then
{
var11 = Index;
TL= TL_New(sdate,sTime,0,sDate,sTime,999);
TL_SetSize(TL,2);
TL_SetColor(TL,Cyan);
}
if L == BCHAN and (var21 == 0 or (var21 > 0 and Index > var21+100)) Then
{
var21 = Index;
TL= TL_New(sdate,sTime,0,sDate,sTime,999);
TL_SetSize(TL,2);
TL_SetColor(TL,Gold);
}
즐거운 하루되세요
> 고성 님이 쓴 글입니다.
> 제목 : 가격채널 당일
> INPUT : LENGTH(200);
VAR : TCHAN(0), BCHAN(0),TL(0);
TCHAN = HIGHEST(HIGH, LENGTH);
BCHAN = LOWEST(LOW, LENGTH);
PLOT1(TCHAN, "TOP");
PLOT2(BCHAN, "BOT");
if H == TCHAN and (var11 == 0 or (var11 > 0 and Index > var11+100)) Then
{
var11 = Index;
TL= TL_New(sdate,sTime,0,sDate,sTime,999);
TL_SetSize(TL,2);
TL_SetColor(TL,Cyan);
}
if L == BCHAN and (var21 == 0 or (var21 > 0 and Index > var21+100)) Then
{
var21 = Index;
TL= TL_New(sdate,sTime,0,sDate,sTime,999);
TL_SetSize(TL,2);
TL_SetColor(TL,Gold);
}
전일과 연관없이 당일 시초부터 계산. 감사합니다.