커뮤니티

분봉에서...

프로필 이미지
티끌
2016-12-19 13:14:48
111
글번호 105053
답변완료
1)30분봉에서 봉의 H와 L사이에 일봉의 20이평과 60이평선이 있는종목을 선정하려면 어떻게 해야 하나요? 2)5%이상 상승한 일봉의 저가를 기억하고 그 일봉이 7일이내발생했고 30분봉차트에서 봉의 H와 L사이에 그일봉의 저가가 있을때등을 산식으로만 표현하고자 합니다 3)아래의 제가 질문한 내용중 요부분이 문법에러가 나옵니다 검토부탁드립니다 if MarketPosition == 1 Then { ExitLong("bx1",atlimit,EntryPrice*1.05,"",1,Floor(MaxContracts*0.3),1); ExitLong("bx2",atlimit,EntryPrice*1.10,"",1,Floor(MaxContracts*0.3),1); ExitLong("bx3",atlimit,EntryPrice*1.15,"",1,Floor(MaxContracts*0.3),1); }
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-12-19 14:28:56

안녕하세요 예스스탁입니다. 1. input : P1(20),P2(60); var : cnt(0),sum1(0), mav1(0),sum2(0),mav2(0); sum1 = 0; sum2= 0; for cnt = 0 to P2 { if cnt < P1 Then sum1 = sum1+DayClose(cnt); if cnt < P2 Then sum2 = sum2+DayClose(cnt); } mav1 = sum1 / P1; mav2 = sum2 / P2; if H >= max(mav1,mav2) and min(mav1,mav2) >= L Then find(1); 2 var : cnt(0); Condition1 = false; for cnt = 1 to 7{ if Condition1 == false and DayLow(cnt) > DayClose(cnt+1) Then{ var1 = daylow(1); Condition1 = true; } } if Condition1 == true and H >= var1 and var1 >= L Then find(1); 3 if MarketPosition == 1 Then { ExitLong("bx1",atlimit,EntryPrice*1.05,"",Floor(MaxContracts*0.3),1); ExitLong("bx2",atlimit,EntryPrice*1.10,"",Floor(MaxContracts*0.3),1); ExitLong("bx3",atlimit,EntryPrice*1.15,"",Floor(MaxContracts*0.3),1); } 즐거운 하루되세요 > 티끌 님이 쓴 글입니다. > 제목 : 분봉에서... > 1)30분봉에서 봉의 H와 L사이에 일봉의 20이평과 60이평선이 있는종목을 선정하려면 어떻게 해야 하나요? 2)5%이상 상승한 일봉의 저가를 기억하고 그 일봉이 7일이내발생했고 30분봉차트에서 봉의 H와 L사이에 그일봉의 저가가 있을때등을 산식으로만 표현하고자 합니다 3)아래의 제가 질문한 내용중 요부분이 문법에러가 나옵니다 검토부탁드립니다 if MarketPosition == 1 Then { ExitLong("bx1",atlimit,EntryPrice*1.05,"",1,Floor(MaxContracts*0.3),1); ExitLong("bx2",atlimit,EntryPrice*1.10,"",1,Floor(MaxContracts*0.3),1); ExitLong("bx3",atlimit,EntryPrice*1.15,"",1,Floor(MaxContracts*0.3),1); }