커뮤니티

문의 드립니다.~~~~

프로필 이미지
예스요
2022-12-17 18:33:13
1073
글번호 164668
답변완료
수고하십니다. 다음식의 자세한 주석 부탁드립니다. input : N(3),N1(30),T1(10),T2(50); var : cnt(0),loss1(0); loss1 = 0; for cnt = 1 to N { if IsEntryName("s1",cnt) == true and PositionProfit(cnt) < 0 Then loss1 = loss1+1; } if CountIf(C>O and H >= L+PriceScale*T1,N) == N and H >= L[n-1]+PriceScale*T2 Then Sell("s1"); if Bdate == Bdate[n-1] and CountIf(C<O,3) == 3 and H[n-1] >= L+PriceScale*n1 Then Buy("b1");
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-12-20 10:56:42

안녕하세요 예스스탁입니다. input : N(3),N1(30),T1(10),T2(50); var : cnt(0),loss1(0); #최근 N개 거래에서 #s1매도진입후 손실난 횟수 loss1 = 0; for cnt = 1 to N { if IsEntryName("s1",cnt) == true and PositionProfit(cnt) < 0 Then loss1 = loss1+1; } # N봉연속 양봉이고 고가가 저가대비 T1틱이상이고 # 연속양봉의 첫봉저가보가 마지막봉 고가는 T2틱 이상이면 # 매도 if CountIf(C>O and H >= L+PriceScale*T1,N) == N and H >= L[n-1]+PriceScale*T2 Then Sell("s1"); #장시작후 n봉이후에 #3연속 음봉이고 #연속음봉 첫봉의 고가와 마지막음봉 저가가 차이가 n1틱이상이면 #매수 if Bdate == Bdate[n-1] and CountIf(C<O,3) == 3 and H[n-1] >= L+PriceScale*n1 Then Buy("b1"); 즐거운 하루되세요 > 예스요 님이 쓴 글입니다. > 제목 : 문의 드립니다.~~~~ > 수고하십니다. 다음식의 자세한 주석 부탁드립니다. input : N(3),N1(30),T1(10),T2(50); var : cnt(0),loss1(0); loss1 = 0; for cnt = 1 to N { if IsEntryName("s1",cnt) == true and PositionProfit(cnt) < 0 Then loss1 = loss1+1; } if CountIf(C>O and H >= L+PriceScale*T1,N) == N and H >= L[n-1]+PriceScale*T2 Then Sell("s1"); if Bdate == Bdate[n-1] and CountIf(C<O,3) == 3 and H[n-1] >= L+PriceScale*n1 Then Buy("b1");