커뮤니티

문의드립니다

프로필 이미지
새벽에
2023-02-22 05:50:54
1142
글번호 166533
답변완료

첨부 이미지

안녕하세요? 아래의 진입조건에서 if var28 == 1 then buy(); if CrossUp(stoK, 20) and ma(C,5) > ma(C,20) then buy(); if var37 == 1 then Sell(); if CrossDown(stok,80) Then Sell(); 1.연속봉 신호발생(두봉연속 진입조건 만족할때 신호가 발생하게) ,그림1 2.전전봉에 신호가 있고 신호가발생할때 신호발생하게 ,그림2 3. 1또는 2 일때 신호발생한다 , (그림1또는 그림2) 이렇게 각각 3가지 를 알고싶습니다 감사드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-02-22 10:08:47

안녕하세요 예스스탁입니다. 1 var : B(0),S(0); B = 0; if var28 == 1 then B = 1; if CrossUp(stoK, 20) and ma(C,5) > ma(C,20) then B = 1; S = 0; if var37 == 1 then S = 1; if CrossDown(stok,80) Then S = 1; if CountIf(B==1,2) == 2 and B[2] == 0 Then Buy(); if CountIf(S==1,2) == 2 and S[2] == 0 Then Sell(); 2 var : B(0),S(0); B = 0; if var28 == 1 then B = 1; if CrossUp(stoK, 20) and ma(C,5) > ma(C,20) then B = 1; S = 0; if var37 == 1 then S = 1; if CrossDown(stok,80) Then S = 1; if CountIf(B==1,3) == 2 and B[1] == 0 and B[3] == 0 Then Buy(); if CountIf(S==1,3) == 2 and S[1] == 0 and S[3] == 0 Then Sell(); 3 var : B(0),S(0); B = 0; if var28 == 1 then B = 1; if CrossUp(stoK, 20) and ma(C,5) > ma(C,20) then B = 1; S = 0; if var37 == 1 then S = 1; if CrossDown(stok,80) Then S = 1; if (CountIf(B==1,2) == 2 and B[2] == 0) or (CountIf(B==1,3) == 2 and B[1] == 0 and B[3] == 0) Then Buy(); if (CountIf(S==1,2) == 2 and S[2] == 0 ) or (CountIf(S==1,3) == 2 and S[1] == 0 and S[3] == 0) Then Sell(); 즐거운 하루되세요 > 새벽에 님이 쓴 글입니다. > 제목 : 문의드립니다 > 안녕하세요? 아래의 진입조건에서 if var28 == 1 then buy(); if CrossUp(stoK, 20) and ma(C,5) > ma(C,20) then buy(); if var37 == 1 then Sell(); if CrossDown(stok,80) Then Sell(); 1.연속봉 신호발생(두봉연속 진입조건 만족할때 신호가 발생하게) ,그림1 2.전전봉에 신호가 있고 신호가발생할때 신호발생하게 ,그림2 3. 1또는 2 일때 신호발생한다 , (그림1또는 그림2) 이렇게 각각 3가지 를 알고싶습니다 감사드립니다.