커뮤니티

지표식 부탁합니다

프로필 이미지
등정
2026-05-07 19:29:28
77
글번호 231943
답변완료

안녕하십니까

수고가 많으십니다


글번호231924 관련입니다 지표식 수정 부탁합니다


Input : StartTime(90000),분(90);

var : D1(0),TM(0),TF(0),OO(Nan);


If (sdate!=sDate[1] and sTime>=StartTime) Then

{D1 = sdate;}

If D1>0 then

{

If sdate==D1 Then

TM=TimeToMinutes(stime);

Else

TM=TimeToMinutes(stime)+1440;


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

{

OO = Open;

if OO < OO[1] Then

OO = min(Open,Close);

Else

OO = max(Open,Close);

}


Plot1(OO, "G", Green);

}


위 식을 수정하고 싶습니다

양봉일 경우 선이 내려올 때 시가로, 선이 올라갈 때 종가로 선을 긋고

음봉일 경우 선이 내려올 때나 올라갈 때나 종가로 선을 그을 수 있도록 수정하여 주시면 고맙겠습니다

지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2026-05-08 09:27:38

안녕하세요 예스스탁입니다. Input : StartTime(90000),분(90); var : D1(0),TM(0),TF(0),OO(Nan); If (sdate!=sDate[1] and sTime>=StartTime) Then {D1 = sdate;} If D1>0 then { If sdate==D1 Then TM=TimeToMinutes(stime); Else TM=TimeToMinutes(stime)+1440; 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 { OO = Open; if C > O Then { if OO < OO[1] Then OO = O; Else OO = C; } Else { OO = C; } } Plot1(OO, "G", Green); } 즐거운 하루되세요