예스스탁
예스스탁 답변
2024-05-02 11:18:41
안녕하세요
예스스탁입니다.
1
input : 분(60),P(6);
var : S1(0),D1(0),TF(0),TM(0);;
var : cnt(0),hh(0),ll(0);
Array : H1[100](0),L1[100](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 = 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 = 49 downto 1
{
H1[cnt] = H1[cnt-1];
L1[cnt] = L1[cnt-1];
}
H1[0] = H;
L1[0] = L;
}
if H1[0] > 0 and H > H1[0] Then
H1[0] = H;
if L1[0] > 0 and L < L1[0] Then
L1[0] = L;
if hh[P] > 0 and LL[P] > 0 Then
{
hh = 0;
ll = 0;
For cnt = 1 to P
{
if hh == 0 or (hh > 0 and H1[cnt] > hh) Then
hh = H1[cnt];
if ll == 0 or (ll > 0 and L1[cnt] < ll) Then
ll = L1[cnt];
}
if C > O and c > hh Then
PlotPaintBar(H,L,"강조",Blue);
if C < O and c < ll Then
PlotPaintBar(H,L,"강조",Red);
}
}
2
input : 분(60),P1(9),P2(3);
var : S1(0),D1(0),TF(0),TM(0);;
var : cnt(0),hh1(0),ll1(0),hh2(0),ll2(0);
Array : H1[100](0),L1[100](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 = 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 = 49 downto 1
{
H1[cnt] = H1[cnt-1];
L1[cnt] = L1[cnt-1];
}
H1[0] = H;
L1[0] = L;
}
if H1[0] > 0 and H > H1[0] Then
H1[0] = H;
if L1[0] > 0 and L < L1[0] Then
L1[0] = L;
if h1[P1] > 0 and L1[P1] > 0 Then
{
hh1 = 0;
ll1 = 0;
For cnt = 1 to P1
{
if hh1 == 0 or (hh1 > 0 and H1[cnt] > hh1) Then
hh1 = H1[cnt];
if ll1 == 0 or (ll1 > 0 and L1[cnt] < ll1) Then
ll1 = L1[cnt];
}
hh2 = 0;
ll2 = 0;
For cnt = 1 to P2
{
if hh2 == 0 or (hh2 > 0 and H1[cnt] > hh2) Then
hh2 = H1[cnt];
if ll2 == 0 or (ll2 > 0 and L1[cnt] < ll2) Then
ll2 = L1[cnt];
}
if C > O and c < hh1 and C > hh2 Then
PlotPaintBar(H,L,"강조",Blue);
if C < O and c > ll1 and C < ll2 Then
PlotPaintBar(H,L,"강조",Red);
}
}
즐거운 하루되세요
> 서태공 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 1.종가가 양봉이면서 최근 6시간이내 최고가보다 높으면 파란색으로, 종가가 음봉이면서 최근 6시간이내 최저가보다 낮으면 빨강색으로 구현해 주세요
2.종가가 양봉이면서 최근 9시간이내 최고가보다는 낮고, 최근 3시간이내 최고가보다 높으면 파란색으로, 종가가 음봉이면서 최근 9시간이내 최저가보다는 높고, 최근 3시간이내 최저가보다 낮으면 빨강색으로 구현해 주세요
고맙습니다.