예스스탁
예스스탁 답변
2021-05-17 12:36:32
안녕하세요
예스스탁입니다.
항셍과 같이 거래소의 영입일 변경시간 대신에 다른시간을
하루의 시작으로 보시면 별도로 시간을 지정해 초기화되게 작성하셔야 합니다.
Input : TH(300);
Input : TL(300);
Input : NH(250);
Input : NL(250);
input : ntime(60);
var : tx1(0),tx2(0),tx3(0),tx4(0),tx5(0),tx6(0),tx7(0),tx8(0),tx9(0),tx10(0),tx11(0),tx12(0),tx13(0),count(0);
var : S1(0),D1(0),TM(0),TF(0),color(0),Tcond(False);
Tcond = (sDate != sDate and sTime >= 101500) or
(sDate == sDate[1] and sTime >= 101500 and sTime[1] < 101500);
if Tcond == true 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 Tcond == true or
(Tcond == False and ntime > 1 and TF < TF[1]) or
(Tcond == False and ntime > 1 and TM >= TM[1]+ntime) or
(Tcond == False and ntime == 1 and TM > TM[1]) Then
{
var1 = O;
var11 = var1[1];
color = RGB(0,0,0);
if var11 > 0 and var1 >= var11+PriceScale*20 Then
color = RGB(192,0,0);
if var11 > 0 and var1 <= var11-PriceScale*20 Then
color = RGB(0,204,255);
if color != color[1] Then
count = 0;
count = count+1;
}
}
즐거운 하루되세요
> 스오어스 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 안녕하세요
아래 수식을 보시면
항셍 차트에서 오후 6시15분 부터 지표가 시작 되는데요
오전 10시15분 부터 시작하게 시간 수정할 수 있는 방법이 무엇이죠?
제가 해보는데 어렵네요 부탁드립니다.
감사합니다.
Input : TH(300);
Input : TL(300);
Input : NH(250);
Input : NL(250);
input : ntime(60);
var : tx1(0),tx2(0),tx3(0),tx4(0),tx5(0),tx6(0),tx7(0),tx8(0),tx9(0),tx10(0),tx11(0),tx12(0),tx13(0),count(0);
var : S1(0),D1(0),TM(0),TF(0),color(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
{
var1 = O;
var11 = var1[1];
color = RGB(0,0,0);
if var11 > 0 and var1 >= var11+PriceScale*20 Then
color = RGB(192,0,0);
if var11 > 0 and var1 <= var11-PriceScale*20 Then
color = RGB(0,204,255);
if color != color[1] Then
count = 0;
count = count+1;
}
}
=============중략===============