커뮤니티

질문 드립니다.

프로필 이미지
하우즐영
2010-01-19 12:41:29
674
글번호 27536
답변완료
다이버젼스 예제를 게시판에서 보다가 다음 사항이 의미하는 것이 궁굼해서 질문드립니다. var : SLindex1(0), SLindex2(0), Lindex1(0), Lindex2(0); value1 = stochasticsD(10,5,5); Condition2 = value1 > value1[1] and value1[1] <= value1[2]; Condition3 = L > L[1] and L[1] <= L[2]; SLindex1 = MRO(Condition2,50,1); SLindex2 = MRO(Condition2,50,2); Lindex1 = MRO(Condition3,50,1); Lindex2 = MRO(Condition3,50,2); # stochasticsD의 상승형 divergence 발생시 매수 if value1[1] <= 20 and value1[SLindex1+1] > value1[SLindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition2 and lowest(L,5) == lowest(L,15) then {buy(); exitshort(); } 질문) 위 식에서 L[Lindex1+1], [SLindex1+1]등이 나오는대 [ ] 안에서 "+1"이 의미하는 것이 무엇인지 궁굼합니다. 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2010-01-19 16:54:30

안녕하세요 예스스탁입니다. Condition3 = L > L[1] and L[1] <= L[2]; Lindex1 = MRO(Condition3,50,1); L[Lindex1]로 값을 사용할 경우 L > L[1] and L[1] <= L[2];조건이 발생한 봉의 L값을 가져오게 됩니다. 즉 저가가 상승전환시의 &#44846;지점이 아닌 전환이 된봉의 저가입니다. 그러므로 L[Lindex1+1]을 하여 &#44846;지점값을 가져올수 있게 만들어 준것입니다. L[2] >= L[1] < L 100 >= 98 < 99 L[Lindex1] --> 99값을 가져옴 L[Lindex1+1] --> 98값을 가져옴 참고하시기 바랍니다. 즐거운 하루되세요 > 하우즐영 님이 쓴 글입니다. > 제목 : 질문 드립니다. > 다이버젼스 예제를 게시판에서 보다가 다음 사항이 의미하는 것이 궁굼해서 질문드립니다. var : SLindex1(0), SLindex2(0), Lindex1(0), Lindex2(0); value1 = stochasticsD(10,5,5); Condition2 = value1 > value1[1] and value1[1] <= value1[2]; Condition3 = L > L[1] and L[1] <= L[2]; SLindex1 = MRO(Condition2,50,1); SLindex2 = MRO(Condition2,50,2); Lindex1 = MRO(Condition3,50,1); Lindex2 = MRO(Condition3,50,2); # stochasticsD의 상승형 divergence 발생시 매수 if value1[1] <= 20 and value1[SLindex1+1] > value1[SLindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition2 and lowest(L,5) == lowest(L,15) then {buy(); exitshort(); } 질문) 위 식에서 L[Lindex1+1], [SLindex1+1]등이 나오는대 [ ] 안에서 "+1"이 의미하는 것이 무엇인지 궁굼합니다. 감사합니다.