커뮤니티

수식 설명부탁드립니다.

프로필 이미지
미완
2019-03-18 16:10:22
357
글번호 127162
답변완료
아래 지표 함수식 중 ma_p11 ~ ma_p17가 의미하는 내용이 무엇인지 설명 부탁드립니다. 변수값은 이동평균 값을 의미하는것인지? input:b_time1(000000),e_time1(240000), stoK_p11(100),stoK_p12(6),stoK_p13(6), ma_p11(25),ma_p12(5),ma_p13(15),ma_p14(100), ma_p15(10),ma_p16(20),ma_p17(15); Var:stoK(0),stoD(0),TRIXv(0),TRIXsig(0),T(0); If b_time1 <= Time and Time <= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { T = 1; } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { T = -1; } plot1(iff(T==1,100,iff(T==-1,-100,0))); plotbaseline1(0); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-03-19 11:37:44

안녕하세요 예스스탁입니다. ma_p11 ~ ma_p17은 이동평균의 기간입니다. input 선언에 해당 기간값이 지정되어 있습니다. 25이평상승 and 5이평이 15이평 상향돌파 and 100이평 상승 and 10이평 상승 and 20이평 상승 and 15이평 상승이면 지표로 100을 출력 25이평하락 and 5이평이 15이평 하향이탈 and 100이평 하락 and 10이평 하락 and 20이평 하락 and 15이평 하락이면 지표로 -100을 출력 즐거운 하루되세요 > 미완 님이 쓴 글입니다. > 제목 : 수식 설명부탁드립니다. > 아래 지표 함수식 중 ma_p11 ~ ma_p17가 의미하는 내용이 무엇인지 설명 부탁드립니다. 변수값은 이동평균 값을 의미하는것인지? input:b_time1(000000),e_time1(240000), stoK_p11(100),stoK_p12(6),stoK_p13(6), ma_p11(25),ma_p12(5),ma_p13(15),ma_p14(100), ma_p15(10),ma_p16(20),ma_p17(15); Var:stoK(0),stoD(0),TRIXv(0),TRIXsig(0),T(0); If b_time1 <= Time and Time <= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { T = 1; } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { T = -1; } plot1(iff(T==1,100,iff(T==-1,-100,0))); plotbaseline1(0); }