감사합니다
월/주/일도 부탁드립니다
전월/전주/전일 도 부탁드립니다
{현캔들의고가/저가/중심
전캔들의 고가/저가/중심}
nput : ntime(60);
var : S1(0),D1(0),TM(0),TF(0),hh(0),ll(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%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[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
{
HH = H;
LL = L;
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
plot1(HH);
plot2(LL);
plot3((HH+LL)/2);
}
답변 1
예스스탁
예스스탁 답변
2020-06-05 14:47:34
안녕하세요
예스스탁입니다.
input : ntime(60);
var : S1(0),D1(0),TM(0),TF(0),HH(0),LL(0),HH1(0),LL1(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%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[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
{
HH = H;
LL = L;
HH1 = HH[1];
LL1 = LL[1];
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
if HH > 0 and LL > 0 then
{
plot1(HH);
plot2(LL);
plot3((HH+LL)/2);
}
if HH1 > 0 and LL1 > 0 then
{
plot4(HH1);
plot5(LL1);
plot6((HH1+LL1)/2);
}
}
#월
var : MH(0),ML(0),MH1(0),ML1(0);
if Bdate > Bdate[1]+30 Then
{
MH = H;
ML = L;
MH1 = MH[1];
MH1 = ML[1];
}
if MH > 0 and H > MH Then
MH = H;
if ML > 0 and L < ML Then
ML = L;
if MH > 0 and ML > 0 then
{
plot11(MH);
plot12(ML);
plot13((MH+ML)/2);
}
if MH1 > 0 and ML1 > 0 then
{
plot14(MH1);
plot15(ML1);
plot16((MH1+ML1)/2);
}
#주
var : WH(0),WL(0),WH1(0),WL1(0);
if Bdate > Bdate[1]+30 Then
{
WH = H;
WL = L;
WH1 = WH[1];
WH1 = WL[1];
}
if WH > 0 and H > WH Then
WH = H;
if WL > 0 and L < WL Then
WL = L;
if WH > 0 and WL > 0 then
{
plot21(WH);
plot22(WL);
plot23((WH+WL)/2);
}
if WH1 > 0 and WL1 > 0 then
{
plot24(WH1);
plot25(WL1);
plot26((WH1+WL1)/2);
}
#일
plot31(DayHigh);
plot32(DayLow);
plot33((DayHigh+DayLow)/2);
plot34(DayHigh(1));
plot35(DayLow(1));
plot36((DayHigh(1)+DayLow(1))/2);
즐거운 하루되세요
> 에리카 님이 쓴 글입니다.
> 제목 : 지표추가
> 감사합니다
월/주/일도 부탁드립니다
전월/전주/전일 도 부탁드립니다
{현캔들의고가/저가/중심
전캔들의 고가/저가/중심}
nput : ntime(60);
var : S1(0),D1(0),TM(0),TF(0),hh(0),ll(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%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[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
{
HH = H;
LL = L;
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
plot1(HH);
plot2(LL);
plot3((HH+LL)/2);
}