커뮤니티

부탁드립니다.

프로필 이미지
yes
2017-04-20 14:59:14
187
글번호 108990
답변완료
도움주심에 감사 드립니다. trix지표가 아래수식처럼 시작일시에 0으로 출발하도록 부탁 드립니다. 미리 경배로 감사 드립니다. input : 시작일(0),시작시간(0); Input : Period1(12),Period2(26),Period3(9); Var : Ep1(0), JISU1(0),Ep2(0), JISU2(0),Ep3(0),Jisu3(0); var : MACDVal(0),MACDSig(0),idx(0); var:cond15(false); if sdate == 시작일 and (stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간)) then cond15 = true; Ep1 = 2/(Period1+1); Ep2 = 2/(Period2+1); Ep3 = 2/(Period3+1); if cond15 == true and cond15[1] == false Then idx = 0; if cond15 == true then{ idx = idx+1; if idx == 1 then { JISU1 = C; JISU2 = C; MACDVal = JiSu1-Jisu2; MACDsig = MACDVal; } else{ JISU1 = C * EP1 + JISU1[1] * (1-EP1); JISU2 = C * EP2 + JISU2[1] * (1-EP2); MACDVal = JiSu1-Jisu2; MACDsig = MACDVal * EP3 + MACDsig[1] * (1-EP3); } plot1(MACDVal); plot2(MACDsig); PlotBaseLine1(0); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-04-21 11:31:36

안녕하세요 예스스탁입니다. input : 시작일(0),시작시간(0); Input : Period(10); Var : EP(0), JISU1(0),JISU2(0),Jisu3(0); var : idx(0), cond15(false),TRIXv(0); if sdate == 시작일 and (stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간)) then cond15 = true; Ep = 2/(Period+1); if cond15 == true and cond15[1] == false Then idx = 0; if cond15 == true then{ idx = idx+1; if idx <= 1 then { JISU1 = C; JISU2 = Jisu1; JISU3 = Jisu2; } else{ JISU1 = C * EP + JISU1[1] * (1-EP); JISU2 = JISU1 * EP + JISU2[1] * (1-EP); JISU3 = JISU2 * EP + JISU3[1] * (1-EP); } TRIXv = (JISU3 - JISU3[1]) / JISU3[1] * 100; plot1(TRIXv); PlotBaseLine1(0); } 즐거운 하루되세요 > yes 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 도움주심에 감사 드립니다. trix지표가 아래수식처럼 시작일시에 0으로 출발하도록 부탁 드립니다. 미리 경배로 감사 드립니다. input : 시작일(0),시작시간(0); Input : Period1(12),Period2(26),Period3(9); Var : Ep1(0), JISU1(0),Ep2(0), JISU2(0),Ep3(0),Jisu3(0); var : MACDVal(0),MACDSig(0),idx(0); var:cond15(false); if sdate == 시작일 and (stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간)) then cond15 = true; Ep1 = 2/(Period1+1); Ep2 = 2/(Period2+1); Ep3 = 2/(Period3+1); if cond15 == true and cond15[1] == false Then idx = 0; if cond15 == true then{ idx = idx+1; if idx == 1 then { JISU1 = C; JISU2 = C; MACDVal = JiSu1-Jisu2; MACDsig = MACDVal; } else{ JISU1 = C * EP1 + JISU1[1] * (1-EP1); JISU2 = C * EP2 + JISU2[1] * (1-EP2); MACDVal = JiSu1-Jisu2; MACDsig = MACDVal * EP3 + MACDsig[1] * (1-EP3); } plot1(MACDVal); plot2(MACDsig); PlotBaseLine1(0); }