커뮤니티

질문드립니다.

프로필 이미지
미카엘
2014-10-28 14:22:03
158
글번호 79830
답변완료

첨부 이미지

input : P(14); var1 = RSI(P); if date != date[1] Then{ Condition1 = false; Condition2 = false; Condition3 = false; } if dayindex > 0 and crossup(var1,34) Then{ Condition1 = true; var2 = dayindex; } if dayindex > 0 and crossup(c,기준조건) Then{ Condition2 = true; var3 = dayindex; } Condition3 = Condition1 == true and Condition2 == true and var1 > 34 and C > 기준조건; Condition4 = ExitDate(1) == sdate and PositionProfit(1) > 0; if dayindex > 0 and dayindex < 40 and abs(var3-var2) <= 6 and Condition4 == false and Condition3 == true and Condition3[1] == false and c>open Then buy(); * 위의 매수식에서 기준조건 돌파는 종가기준이지만, 돌파 이前까지의 캔들이 적어도 1개 이상 몸통 전체(시가와 종가 포함,꼬리 제외)가 기준조건 미만이었을 때만 돌파시 매수한다는 조건을 붙여 주세요. (위의 그림을 참고하세요.)
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-10-28 15:45:12

안녕하세요 예스스탁입니다. input : P(14); var : count(0); var1 = RSI(P); if date != date[1] Then{ Condition1 = false; Condition2 = false; Condition3 = false; } if dayindex > 0 and crossup(var1,34) Then{ Condition1 = true; var2 = dayindex; } if dayindex == 0 or CrossDown(c,기준조건) Then count = 0; if C < 기준조건 and H < 기준조건 Then count = count+1; if dayindex > 0 and count >= 1 and crossup(c,기준조건) Then{ Condition2 = true; var3 = dayindex; } Condition3 = Condition1 == true and Condition2 == true and var1 > 34 and C > 기준조건; Condition4 = ExitDate(1) == sdate and PositionProfit(1) > 0; if dayindex > 0 and dayindex < 40 and abs(var3-var2) <= 6 and Condition4 == false and Condition3 == true and Condition3[1] == false and c>open Then buy(); 즐거운 하루되세요 > 미카엘 님이 쓴 글입니다. > 제목 : 질문드립니다. > input : P(14); var1 = RSI(P); if date != date[1] Then{ Condition1 = false; Condition2 = false; Condition3 = false; } if dayindex > 0 and crossup(var1,34) Then{ Condition1 = true; var2 = dayindex; } if dayindex > 0 and crossup(c,기준조건) Then{ Condition2 = true; var3 = dayindex; } Condition3 = Condition1 == true and Condition2 == true and var1 > 34 and C > 기준조건; Condition4 = ExitDate(1) == sdate and PositionProfit(1) > 0; if dayindex > 0 and dayindex < 40 and abs(var3-var2) <= 6 and Condition4 == false and Condition3 == true and Condition3[1] == false and c>open Then buy(); * 위의 매수식에서 기준조건 돌파는 종가기준이지만, 돌파 이前까지의 캔들이 적어도 1개 이상 몸통 전체(시가와 종가 포함,꼬리 제외)가 기준조건 미만이었을 때만 돌파시 매수한다는 조건을 붙여 주세요. (위의 그림을 참고하세요.)