커뮤니티

문의드립니다

프로필 이미지
새벽에
2022-02-14 08:22:05
1039
글번호 156225
답변완료
안녕하세요? 아래수식에서 현재 매수매도 신호가발생하는 다음봉에서 신호가발생하게되면 합니다 감사합니다 var : sindex1(0), sindex2(0), Lindex1(0), Lindex2(0); value1 = stochasticsD(12,5,5); Condition1 = value1 > value1[1] and value1[1] <= value1[2]; Condition2 = L > L[1] and L[1] <= L[2]; sindex1 = MRO(Condition1,15,1); sindex2 = MRO(Condition1,15,2); Lindex1 = MRO(Condition2,15,1); Lindex2 = MRO(Condition2,15,2); if value1[sindex1+1] > value1[sindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition1 and lowest(L,5) == lowest(L,15) then buy(); //// var : sindex3(0), sindex4(0), Hindex1(0), Hindex2(0); Condition11 = value1 < value1[1] and value1[1] >= value1[2]; Condition12 = H < H[1] and H[1] >= H[2]; sindex3 = MRO(Condition11,15,1); sindex4 = MRO(Condition11,15,2); Hindex1 = MRO(Condition12,15,1); Hindex2 = MRO(Condition12,15,2); if value1[sindex3+1] < value1[sindex4+1] and H[Hindex1+1] > H[Hindex2+1] and Condition11 and Highest(H,5) == Highest(H,15) then sell();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-02-14 15:15:11

안녕하세요 예스스탁입니다. var : sindex1(0), sindex2(0), Lindex1(0), Lindex2(0); var : bi(0),si(0); value1 = stochasticsD(12,5,5); Condition1 = value1 > value1[1] and value1[1] <= value1[2]; Condition2 = L > L[1] and L[1] <= L[2]; sindex1 = MRO(Condition1,15,1); sindex2 = MRO(Condition1,15,2); Lindex1 = MRO(Condition2,15,1); Lindex2 = MRO(Condition2,15,2); if value1[sindex1+1] > value1[sindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition1 and lowest(L,5) == lowest(L,15) then bi = Index; if bi > 0 and Index == bi+1 Then buy(); //// var : sindex3(0), sindex4(0), Hindex1(0), Hindex2(0); Condition11 = value1 < value1[1] and value1[1] >= value1[2]; Condition12 = H < H[1] and H[1] >= H[2]; sindex3 = MRO(Condition11,15,1); sindex4 = MRO(Condition11,15,2); Hindex1 = MRO(Condition12,15,1); Hindex2 = MRO(Condition12,15,2); if value1[sindex3+1] < value1[sindex4+1] and H[Hindex1+1] > H[Hindex2+1] and Condition11 and Highest(H,5) == Highest(H,15) then si = Index; if Index == si+1 Then sell(); 즐거운 하루되세요 > 새벽에 님이 쓴 글입니다. > 제목 : 문의드립니다 > 안녕하세요? 아래수식에서 현재 매수매도 신호가발생하는 다음봉에서 신호가발생하게되면 합니다 감사합니다 var : sindex1(0), sindex2(0), Lindex1(0), Lindex2(0); value1 = stochasticsD(12,5,5); Condition1 = value1 > value1[1] and value1[1] <= value1[2]; Condition2 = L > L[1] and L[1] <= L[2]; sindex1 = MRO(Condition1,15,1); sindex2 = MRO(Condition1,15,2); Lindex1 = MRO(Condition2,15,1); Lindex2 = MRO(Condition2,15,2); if value1[sindex1+1] > value1[sindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition1 and lowest(L,5) == lowest(L,15) then buy(); //// var : sindex3(0), sindex4(0), Hindex1(0), Hindex2(0); Condition11 = value1 < value1[1] and value1[1] >= value1[2]; Condition12 = H < H[1] and H[1] >= H[2]; sindex3 = MRO(Condition11,15,1); sindex4 = MRO(Condition11,15,2); Hindex1 = MRO(Condition12,15,1); Hindex2 = MRO(Condition12,15,2); if value1[sindex3+1] < value1[sindex4+1] and H[Hindex1+1] > H[Hindex2+1] and Condition11 and Highest(H,5) == Highest(H,15) then sell();