커뮤니티

지표문의드립니다.

프로필 이미지
리나이
2018-10-24 23:45:21
228
글번호 123018
답변완료

첨부 이미지

지표문의드립니다. 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-10-25 16:19:16

안녕하세요 예스스탁입니다. input : starttime(90000),endtime(153000); var : Tcond(false),Lcount(0),Hcount(0),mav(0),tx(0); var : L1(0),LL(0),H1(0),HH(0),T(0); if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; Lcount = 0; Hcount = -1; } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then { Tcond = false; } mav = ma(c,5); if Tcond == true then { if Lcount == 0 and C > O and C < mav Then { L1 = L; LL = L; Lcount = 1; tx = Text_New(sdate,stime,L-PriceScale*1,NumToStr(Lcount,0)); Text_SetStyle(tx,2,0); Text_SetColor(tx,BLUE); } if Lcount >= 1 then { if L < LL Then LL = L; if C > O and LL < L1 Then { Lcount = Lcount+2; L1 = LL; LL = LL; tx = Text_New(sdate,stime,L-PriceScale*1,NumToStr(Lcount,0)); Text_SetStyle(tx,2,0); Text_SetColor(tx,BLUE); if Lcount >= 5 Then Hcount = 0; } } if Hcount == 0 and C < O and C > mav Then { H1 = H; HH = H; Hcount = 1; tx = Text_New(sdate,stime,H+PriceScale*1,NumToStr(Hcount,0)); Text_SetStyle(tx,2,1); Text_SetColor(tx,RED); } if Hcount >= 1 then { if H > HH Then HH = H; if C < O and HH > H1 Then { Hcount = Hcount+2; H1 = HH; HH = HH; tx = Text_New(sdate,stime,H+PriceScale*1,NumToStr(Hcount,0)); Text_SetStyle(tx,2,1); Text_SetColor(tx,RED); if Hcount >= 5 Then Lcount = 0; } } } plot1(mav); 즐거운 하루되세요 > 리나이 님이 쓴 글입니다. > 제목 : 지표문의드립니다. > 지표문의드립니다. 감사합니다.