커뮤니티

문의드립니다

프로필 이미지
새벽에
2017-11-21 06:43:10
171
글번호 114349
답변완료
안녕하세요? 아래수식에서 현재 신호가발생하고있는 봉기준으로 말씀드려서 한가지 조건을 넣고싶습니다 매수조건경우: 전봉이양봉이고 현신호발생봉(아래수식의경우)도양봉이고 그다음봉도양봉으로 마감된경우 매수신호발생 매도의경우:전봉도음봉이고 현신호발생봉도음봉이고 그다음봉도 음봉마감된경우 매도신호발생 감사드립니다 var : sindex1(0), sindex2(0), Lindex1(0), Lindex2(0); var : sindex3(0), sindex4(0), Hindex1(0), Hindex2(0); value1 = stochasticsD(12,5,5); Condition1 = value1 > value1[1] and value1[1] <= value1[2]; Condition2 = L > L[1] and L[1] <= L[2]; Condition3 = value1 < value1[1] and value1[1] >= value1[2]; Condition4 = H < H[1] and H[1] >= H[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("b1"); sindex3 = MRO(Condition3,15,1); sindex4 = MRO(Condition3,15,2); Hindex1 = MRO(Condition4,15,1); Hindex2 = MRO(Condition4,15,2); if value1[sindex3+1] < value1[sindex4+1] and H[Hindex1+1] > H[Hindex2+1] and Condition3 and Highest(H,5) == Highest(H,15) then sell("s1"); var : v1(0); var : si1(0), si2(0), li1(0), li2(0); var : si3(0), si4(0), hi1(0), hi2(0); v1 = CCI(9); Condition5 = V1 > V1[1] and V1[1] <= V1[2]; Condition6 = L > L[1] and L[1] <= L[2]; Condition7 = V1 < V1[1] and V1[1] >= V1[2]; Condition8 = H < H[1] and H[1] >= H[2]; si1 = MRO(Condition5,15,1); si2 = MRO(Condition5,15,2); li1 = MRO(Condition6,15,1); li2 = MRO(Condition6,15,2); if V1[si1+1] > V1[si2+1] and L[li1+1] < L[li2+1] and Condition5 and lowest(L,5) == lowest(L,15) then buy("b2"); si3 = MRO(Condition7,15,1); si4 = MRO(Condition7,15,2); hi1 = MRO(Condition8,15,1); hi2 = MRO(Condition8,15,2); if V1[si3+1] < v1[si4+1] and H[hi1+1] > H[hi2+1] and Condition7 and Highest(H,5) == Highest(H,15) then sell("s2");
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-11-21 15:42:21

안녕하세요 예스스탁입니다. var : sindex1(0), sindex2(0), Lindex1(0), Lindex2(0); var : sindex3(0), sindex4(0), Hindex1(0), Hindex2(0); value1 = stochasticsD(12,5,5); Condition1 = value1 > value1[1] and value1[1] <= value1[2]; Condition2 = L > L[1] and L[1] <= L[2]; Condition3 = value1 < value1[1] and value1[1] >= value1[2]; Condition4 = H < H[1] and H[1] >= H[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 var1 = index; if var1 > 0 and index == var1+1 and countif(C>O,3) == 3 Then buy("b1"); sindex3 = MRO(Condition3,15,1); sindex4 = MRO(Condition3,15,2); Hindex1 = MRO(Condition4,15,1); Hindex2 = MRO(Condition4,15,2); if value1[sindex3+1] < value1[sindex4+1] and H[Hindex1+1] > H[Hindex2+1] and Condition3 and Highest(H,5) == Highest(H,15) then var2 = index; if var2 > 0 and index == var2+1 and countif(C<O,3) == 3 Then sell("s1"); var : v1(0); var : si1(0), si2(0), li1(0), li2(0); var : si3(0), si4(0), hi1(0), hi2(0); v1 = CCI(9); Condition5 = V1 > V1[1] and V1[1] <= V1[2]; Condition6 = L > L[1] and L[1] <= L[2]; Condition7 = V1 < V1[1] and V1[1] >= V1[2]; Condition8 = H < H[1] and H[1] >= H[2]; si1 = MRO(Condition5,15,1); si2 = MRO(Condition5,15,2); li1 = MRO(Condition6,15,1); li2 = MRO(Condition6,15,2); if V1[si1+1] > V1[si2+1] and L[li1+1] < L[li2+1] and Condition5 and lowest(L,5) == lowest(L,15) then var3 = index; if var3 > 0 and index == var3+1 and countif(C>O,3) == 3 Then buy("b2"); si3 = MRO(Condition7,15,1); si4 = MRO(Condition7,15,2); hi1 = MRO(Condition8,15,1); hi2 = MRO(Condition8,15,2); if V1[si3+1] < v1[si4+1] and H[hi1+1] > H[hi2+1] and Condition7 and Highest(H,5) == Highest(H,15) then var4 = index; if var4 > 0 and index == var4+1 and countif(C<O,3) == 3 Then sell("s2"); 즐거운 하루되세요 > 새벽에 님이 쓴 글입니다. > 제목 : 문의드립니다 > 안녕하세요? 아래수식에서 현재 신호가발생하고있는 봉기준으로 말씀드려서 한가지 조건을 넣고싶습니다 매수조건경우: 전봉이양봉이고 현신호발생봉(아래수식의경우)도양봉이고 그다음봉도양봉으로 마감된경우 매수신호발생 매도의경우:전봉도음봉이고 현신호발생봉도음봉이고 그다음봉도 음봉마감된경우 매도신호발생 감사드립니다 var : sindex1(0), sindex2(0), Lindex1(0), Lindex2(0); var : sindex3(0), sindex4(0), Hindex1(0), Hindex2(0); value1 = stochasticsD(12,5,5); Condition1 = value1 > value1[1] and value1[1] <= value1[2]; Condition2 = L > L[1] and L[1] <= L[2]; Condition3 = value1 < value1[1] and value1[1] >= value1[2]; Condition4 = H < H[1] and H[1] >= H[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("b1"); sindex3 = MRO(Condition3,15,1); sindex4 = MRO(Condition3,15,2); Hindex1 = MRO(Condition4,15,1); Hindex2 = MRO(Condition4,15,2); if value1[sindex3+1] < value1[sindex4+1] and H[Hindex1+1] > H[Hindex2+1] and Condition3 and Highest(H,5) == Highest(H,15) then sell("s1"); var : v1(0); var : si1(0), si2(0), li1(0), li2(0); var : si3(0), si4(0), hi1(0), hi2(0); v1 = CCI(9); Condition5 = V1 > V1[1] and V1[1] <= V1[2]; Condition6 = L > L[1] and L[1] <= L[2]; Condition7 = V1 < V1[1] and V1[1] >= V1[2]; Condition8 = H < H[1] and H[1] >= H[2]; si1 = MRO(Condition5,15,1); si2 = MRO(Condition5,15,2); li1 = MRO(Condition6,15,1); li2 = MRO(Condition6,15,2); if V1[si1+1] > V1[si2+1] and L[li1+1] < L[li2+1] and Condition5 and lowest(L,5) == lowest(L,15) then buy("b2"); si3 = MRO(Condition7,15,1); si4 = MRO(Condition7,15,2); hi1 = MRO(Condition8,15,1); hi2 = MRO(Condition8,15,2); if V1[si3+1] < v1[si4+1] and H[hi1+1] > H[hi2+1] and Condition7 and Highest(H,5) == Highest(H,15) then sell("s2");