input : 시가시간(90000);
var : TF(0),hh(0),ll(0);
TF = TimeToMinutes(stime)%59;
if (sdate != sdate[1] and stime >= 시가시간) or
(sdate == sdate[1] and stime >= 시가시간 and stime[1] < 시가시간) Then
var1 = O;
if (bdate != bdate[1] or (bdate == bdate[1] and TF < TF[1])) Then{
hh = h;
ll = l;
}
if h > hh Then
hh = h;
if l < ll Then
ll = l;
var2 = (hh+ll)/2;
plot1(var1,"싯가");
plot2(var2,"시간당중심값");
plot3(C,"현재가",iff(C>var2,red,blue));
Plot4((H+L)/2);
위수식을 시스템으로 부탁드립니다.
plot1(var1,"싯가");라인을 현제가가 교차할때
화살표로 해주세요.
답변 1
예스스탁
예스스탁 답변
2020-01-15 15:59:16
안녕하세요
예스스탁입니다.
input : 시가시간(90000);
var : TF(0),hh(0),ll(0);
TF = TimeToMinutes(stime)%59;
if (sdate != sdate[1] and stime >= 시가시간) or
(sdate == sdate[1] and stime >= 시가시간 and stime[1] < 시가시간) Then
var1 = O;
if (bdate != bdate[1] or (bdate == bdate[1] and TF < TF[1])) Then{
hh = h;
ll = l;
}
if h > hh Then
hh = h;
if l < ll Then
ll = l;
var2 = (hh+ll)/2;
if crossup(c,var1) Then
buy();
if CrossDown(c,var1) Then
sell();
즐거운 하루되세요
> 뚜벅뚜벅 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> input : 시가시간(90000);
var : TF(0),hh(0),ll(0);
TF = TimeToMinutes(stime)%59;
if (sdate != sdate[1] and stime >= 시가시간) or
(sdate == sdate[1] and stime >= 시가시간 and stime[1] < 시가시간) Then
var1 = O;
if (bdate != bdate[1] or (bdate == bdate[1] and TF < TF[1])) Then{
hh = h;
ll = l;
}
if h > hh Then
hh = h;
if l < ll Then
ll = l;
var2 = (hh+ll)/2;
plot1(var1,"싯가");
plot2(var2,"시간당중심값");
plot3(C,"현재가",iff(C>var2,red,blue));
Plot4((H+L)/2);
위수식을 시스템으로 부탁드립니다.
plot1(var1,"싯가");라인을 현제가가 교차할때
화살표로 해주세요.