커뮤니티

질문입니다.

프로필 이미지
뚜벅뚜벅
2010-09-08 02:11:12
962
글번호 32233
답변완료
Input : Period(12), Period1(5), Period2(5); value1 = StochasticsK(Period,Period1); value2 = StochasticsD(Period,Period1,Period2); if crossup(value1,value2) and countif(CrossDown(value1,value2),3) < 1 Then var1 = value1; if CrossDown(value1,value2) and countif(CrossUp(value1,value2),3) < 1 then var1 = value1; plot1(var1); 위의 식을 엠에이시디로도 가능한지요? 가능하시면 부탁합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2010-09-08 11:14:29

안녕하세요 예스스탁입니다. Input : Period(12), Period1(5), Period2(5); Input : MP1(12), MP2(5), MP3(5); var : MACDV(0),MACDS(0); value1 = StochasticsK(Period,Period1); value2 = StochasticsD(Period,Period1,Period2); if crossup(value1,value2) and countif(CrossDown(value1,value2),3) < 1 Then var1 = value1; if CrossDown(value1,value2) and countif(CrossUp(value1,value2),3) < 1 then var1 = value1; MACDV = ema(var1,MP1)-ema(var1,MP2); MACDS = ema(MACDV,MP3); plot1(MACDV); plot2(MACDS); 즐거운 하루되세요 > 뚜벅뚜벅 님이 쓴 글입니다. > 제목 : 질문입니다. > Input : Period(12), Period1(5), Period2(5); value1 = StochasticsK(Period,Period1); value2 = StochasticsD(Period,Period1,Period2); if crossup(value1,value2) and countif(CrossDown(value1,value2),3) < 1 Then var1 = value1; if CrossDown(value1,value2) and countif(CrossUp(value1,value2),3) < 1 then var1 = value1; plot1(var1); 위의 식을 엠에이시디로도 가능한지요? 가능하시면 부탁합니다.