커뮤니티
지표식 부탁합니다
2026-04-13 15:14:03
52
글번호 231587
안녕하십니까
수고가 많으십니다
지표식 수정 부탁합니다
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;}
Plot7(OO, "G", Green);}
위 식은 개장 후 90분 마다 시가를 선으로 그은 지표식입니다
그런데 90분마다 시작하는 봉이 양봉일 때는 시가, 음봉일 때는 종가를 선으로 긋고 싶습니다
수정하여 주시면 고맙겠습니다
또한 60분 마다 선이 그어지도록 수정도 부탁합니다
- 1. 스크린샷 2026-04-13 151310.png (0.02 MB)
답변 1
예스스탁 예스스탁 답변
2026-04-13 16:28:40
안녕하세요
예스스탁입니다.
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 = iff(C>O,Open,Close);}
Plot7(OO, "G", Green);}
즐거운 하루되세요
다음글
이전글