예스스탁
예스스탁 답변
2023-11-14 11:33:41
안녕하세요
예스스탁입니다.
1
input : 분(60);
var : S1(0),D1(0),TM(0),TF(0),cnt(0);
Array : HH[50](0),LL[50](0),OO[50](0),CC[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 = TimeToMinutes(stime)%분;
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 = 49 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 H > HH[0] Then
HH[0] = H;
if L < LL[0] Then
LL[0] = L;
CC[0] = C;
if CC[1] > 0 and C > CC[1] Then
PlotPaintBar(H,L,"강조",Red);
if CC[1] > 0 and C < CC[1] Then
PlotPaintBar(H,L,"강조",Blue);
}
2
input : 분(60);
var : S1(0),D1(0),TM(0),TF(0),cnt(0);
Array : HH[50](0),LL[50](0),OO[50](0),CC[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 = TimeToMinutes(stime)%분;
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 = 49 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 H > HH[0] Then
HH[0] = H;
if L < LL[0] Then
LL[0] = L;
CC[0] = C;
if OO[1] > 0 and C > OO[1] and C > OO[0] Then
PlotPaintBar(H,L,"강조",Red);
if OO[1] > 0 and C < OO[1] and C < OO[0] Then
PlotPaintBar(H,L,"강조",Blue);
}
즐거운 하루되세요
> 서태공 님이 쓴 글입니다.
> 제목 : 부탁드립니다
> 1. 60분마다 현재봉이 전시간대 종가를 기준으로 위로는 빨강색, 아래로는 파란색으로 구현해 주세요
2. 60분마다 현재 시가와 전시간대 시가 위에 있으면 빨강색으로, 아래에 있으면 파란색으로 구현해 주세요
2.
고맙습니다.