커뮤니티

부탁드립니다

프로필 이미지
와우리
2026-03-05 06:50:33
80
글번호 230906
답변완료

if Bdate != Bdate[1] Then

{

Condition1 = true;

      HH = H;

      LL = L;

      HH1 = HH[1];

      LL1 = LL[1];

}


if Condition1 == true then

{

if H > HH Then

      HH = H;


if L < LL Then

      LL = L;


    if HH > 0 and LL > 0 Then

{

S = Max(DayHigh(1), DayHigh());

Z = Min(DayLow(1), DayLow());


위의 수식을 60분 봉으로 수정부탁드립니다

지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2026-03-05 14:15:31

안녕하세요 예스스탁입니다. input : 분주기(60); var : S1(0),D1(0),TM(0),TF(0),cnt(0); var : S(0),Z(0); Array : HH[50](0),LL[50](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 { HH[cnt] = HH[cnt-1]; LL[cnt] = LL[cnt-1]; } HH[0] = H; LL[0] = L; } if HH[0] > 0 and H > HH[0] Then HH[0] = H; if LL[0] > 0 and L < LL[0] Then LL[0] = L; if HH[1] > 0 and LL[1] > 0 Then { S = Max(HH[1],HH[0]); Z = Min(LL[1],LL[0]); } } 즐거운 하루되세요