커뮤니티

스토캐스틱을 이용한 다이버전스 발생 종목식을 알고 싶어요

프로필 이미지
붉은넥타이
2010-12-19 18:57:49
766
글번호 34424
답변완료
input: shortperiod(12), longperiod(26); var : value(0); value = NthHighest(1, stocastic(shortPeriod, longPeriod), 100) > NthHighest(2, stocastic(shortPeriod, longPeriod), 100) and stocastic(shortPeriod, longPeriod) > stocastic(shortPeriod, longPeriod)[1] and (L < Lowest(L, 30)[1] || L[1] < Lowest(L, 30)[2]); if accumn(iff(value,1,0),dayindex()+1) >= 1 then find(1); 메일로 검색식좀 답변 부탁 드립니다
검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2010-12-20 13:03:32

안녕하세요 예스스탁입니다. 다이버전스는 주관적인 내용이라 자세한 내용에 대해 올려주셔야 식으로 가능합니다. 아래식은 일반적은 식입니다. 검색에 필요한 봉갯수를 최대로 하시고 검색하셔야 합니다. input : p1(12), p2(26), left(3), right(2), Period(50); var : stoK(0), LowVal1(0), LowVal2(0), Lowidx1(0), Lowidx2(0); stoK = stochasticsK(p1,p2); LowVal1 = SwingLow(1,stoK,left,right,Period); LowVal2 = SwingLow(2,stoK,left,right,Period); Lowidx1 = SwingLowbar(1,stoK,left,right,Period); Lowidx2 = SwingLowbar(2,stoK,left,right,Period); if LowVal1 < 20 and LowVal2 < 20 and //최근 저점과 그 이전 저점이 침체권인 20보다 작고 Lowidx2-Lowidx1 > 5 and //두개 저점의 간격이 5봉 이상 떨어져 있고 Lowidx2-Lowidx1 < 15 //두개 저점의 간격이 15봉 이내이고 and stoK[right]== LowVal1 and //2개 전봉에서 최근 저점이 형성되었고 countif(stoK > stoK[1], 2) == 2 //최근 두개봉의 스토캐스틱 값이 연속 상승하면 then find(1); 수식과 관련된 내용은 메일로 질문과 답변이 가능하지 않습니다. 게시판으로만 진행됩니다. 즐거운 하루되세요 > 붉은넥타이 님이 쓴 글입니다. > 제목 : 스토캐스틱을 이용한 다이버전스 발생 종목식을 알고 싶어요 > input: shortperiod(12), longperiod(26); var : value(0); value = NthHighest(1, stocastic(shortPeriod, longPeriod), 100) > NthHighest(2, stocastic(shortPeriod, longPeriod), 100) and stocastic(shortPeriod, longPeriod) > stocastic(shortPeriod, longPeriod)[1] and (L < Lowest(L, 30)[1] || L[1] < Lowest(L, 30)[2]); if accumn(iff(value,1,0),dayindex()+1) >= 1 then find(1); 메일로 검색식좀 답변 부탁 드립니다