예스스탁
예스스탁 답변
2025-12-26 14:27:45
안녕하세요
예스스탁입니다.
1
if Bdate != Bdate[1] Then
{
var1 = 0;
var2 = 0;
}
if C > O and abs(c-O) > var1 Then
{
var1 = abs(C-O);
PlotPaintBar(H,L,"강조",Blue);
}
if C < O and abs(c-O) < var2 Then
{
var2 = abs(C-O);
PlotPaintBar(H,L,"강조",Red);
}
2
Input : ntime(60);
var : S1(0),D1(0),TM(0),TF1(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;
TF1 = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF1 < TF1[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
var1 = 0;
var2 = 0;
}
if C > O and abs(c-O) > var1 Then
{
var1 = abs(C-O);
PlotPaintBar(H,L,"강조",Blue);
}
if C < O and abs(c-O) < var2 Then
{
var2 = abs(C-O);
PlotPaintBar(H,L,"강조",Red);
}
}
3
var : MO(Nan);
if Bdate > Bdate[1]+30 Then
MO = O;
if C > O and C > MO Then
PlotPaintBar(H,L,"강조",Blue);
if C < O and C < MO Then
PlotPaintBar(H,L,"강조",Red);
4
var : WO(Nan);
if Bdate != Bdate[1] and
(DayOfWeek(Bdate) < DayOfWeek(Bdate[1]) or
DateToJulian(Bdate) > DateToJulian(Bdate[1])+7) Then
WO = O;
if C > O and C > WO Then
PlotPaintBar(H,L,"강조",Blue);
if C < O and C < WO Then
PlotPaintBar(H,L,"강조",Red);
5
if C > O and C > DayOpen Then
PlotPaintBar(H,L,"강조",Blue);
if C < O and C < DayOpen Then
PlotPaintBar(H,L,"강조",Red);
6
Input : ntime(60);
var : S1(0),D1(0),TM(0),TF1(0),OO(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;
TF1 = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF1 < TF1[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
OO = O;
if C > O and C > OO Then
PlotPaintBar(H,L,"강조",Blue);
if C < O and C < OO Then
PlotPaintBar(H,L,"강조",Red);
}
7
input : P(5);
var : mav(0),T(0);
var : LL(0),LD(0),LT(0),LL1(0),LD1(0),LT1(0),HTL(0);
var : HH(0),HD(0),HT(0),HH1(0),HD1(0),HT1(0),LTL(0);
mav = ma(C,P);
Plot1(mav,"이평");
if CrossUp(c,mav) Then
{
T = 1;
HD = sDate;
HT = sTime;
HH = mav;
HD1 = HD[1];
HT1 = HT[1];
HH1 = HH[1];
TL_SetExtRight(LTL,False);
if LL1 > 0 Then
{
LTL = TL_New(LD1,LT1,LL1,LD,LT,LL);
TL_SetExtRight(LTL,true);
TL_SetColor(LTL,Blue);
}
}
if CrossDown(c,mav) Then
{
T = -1;
LL = mav;
LD = sDate;
LT = sTime;
LL1 = LL[1];
LD1 = LD[1];
LT1 = LT[1];
TL_SetExtRight(HTL,False);
if LL1 > 0 Then
{
HTL = TL_New(HD1,HT1,HH1,HD,HT,HH);
TL_SetExtRight(HTL,true);
TL_SetColor(HTL,Red);
}
}
if T == 1 Then
{
if mav > HH Then
{
HH = mav;
HD = sDate;
HT = sTime;
}
}
if T == -1 Then
{
if mav < LL Then
{
LL = mav;
LD = sDate;
LT = sTime;
}
}
8
input : P(5);
var : mav(0),T(0);
var : LL(0),LD(0),LT(0),LL1(0),LD1(0),LT1(0),HTL(0);
var : HH(0),HD(0),HT(0),HH1(0),HD1(0),HT1(0),LTL(0);
mav = ma(C,P);
Plot1(mav,"이평");
if CrossUp(c,mav) Then
{
T = 1;
HD = sDate;
HT = sTime;
HH = mav;
HD1 = HD[1];
HT1 = HT[1];
HH1 = HH[1];
TL_SetExtRight(LTL,False);
if LL1 > 0 Then
{
LTL = TL_New(LD,LT,LL,sDate,sTime,LL);
TL_SetExtRight(LTL,true);
TL_SetColor(LTL,Blue);
}
}
if CrossDown(c,mav) Then
{
T = -1;
LL = mav;
LD = sDate;
LT = sTime;
LL1 = LL[1];
LD1 = LD[1];
LT1 = LT[1];
TL_SetExtRight(HTL,False);
if LL1 > 0 Then
{
HTL = TL_New(HD,HT,HH,sDate,sTime,HH);
TL_SetExtRight(HTL,true);
TL_SetColor(HTL,Red);
}
}
if T == 1 Then
{
if mav > HH Then
{
HH = mav;
HD = sDate;
HT = sTime;
}
}
if T == -1 Then
{
if mav < LL Then
{
LL = mav;
LD = sDate;
LT = sTime;
}
}
즐거운 하루되세요