커뮤니티

시간설정

프로필 이미지
상암동
2024-05-04 17:38:53
1073
글번호 179150
답변완료
늘 감사합니다. 아래의 수식을 data4용으로 변경해 주세요. 색상과 두께를 지정할수 있도록 해 주세요. ------- if (sdate != sdate[1] and stime >= 093000) or (sdate == sdate[1] and stime >= 093000 and stime[1] < 093000) Then TL_New(sdate,stime,99999999,sdate,stime,0); if (sdate != sdate[1] and stime >= 123000) or (sdate == sdate[1] and stime >= 123000 and stime[1] < 123000) Then TL_New(sdate,stime,99999999,sdate,stime,0); ---------- 감사합니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-05-07 11:19:57

안녕하세요 예스스탁입니다. TL_New는 기본종목 위에만 적용됩니다. data4에 적용하시기 위해서는 TL_New_Self함수를 이용하셔야 합니다. 바로 data4위로 지정은 가능하지 않고 아래식 적용하신 후에 마우스로 끌어서 data4위에 올리셔야 합니다. 수식에서 그려지는 추세선은 마우스로 클릭이 되지 않으므로 data4의 시초가를 그리는 plot도 추가해 드립니다. 해당선 잡아서 data4위로 올리시면 됩니다. if data4((sdate != sdate[1] and stime >= 093000) or (sdate == sdate[1] and stime >= 093000 and stime[1] < 093000)) Then TL_New_Self(data4(sdate),data4(stime),99999999,data4(sdate),data4(stime),0); if data4((sdate != sdate[1] and stime >= 123000) or (sdate == sdate[1] and stime >= 123000 and stime[1] < 123000)) Then TL_New_Self(data4(sdate),data4(stime),99999999,data4(sdate),data4(stime),0); Plot1(data4(OpenD(0))); 즐거운 하루되세요 > 상암동 님이 쓴 글입니다. > 제목 : 시간설정 > 늘 감사합니다. 아래의 수식을 data4용으로 변경해 주세요. 색상과 두께를 지정할수 있도록 해 주세요. ------- if (sdate != sdate[1] and stime >= 093000) or (sdate == sdate[1] and stime >= 093000 and stime[1] < 093000) Then TL_New(sdate,stime,99999999,sdate,stime,0); if (sdate != sdate[1] and stime >= 123000) or (sdate == sdate[1] and stime >= 123000 and stime[1] < 123000) Then TL_New(sdate,stime,99999999,sdate,stime,0); ---------- 감사합니다