커뮤니티

range inactivity 수식

프로필 이미지
목마와숙녀
2019-11-01 10:35:04
243
글번호 131458
답변완료
kospi200선물 1분봉 데이트레이딩 당일 진입제한시간 093000 위 기준이 적용되는 진입수식이 있다고 할 때 아래내용의 청산수식 요청드립니다. 140000부터 150000까지 1시간 동안의 고가와 저가 range를 체크합니다(당일의 고가 저가 아님) range가 1.00 미만이면 청산합니다. 1. buy만 거래하는 수식의 청산수식 input : 체크시간1(140000),체크시간2(150000),range(1.00); 2. sell만 거래하는 수식의 청산수식 input : 체크시간1(140000),체크시간2(150000),range(1.00); 150000에 당일의 고가 저가 range를 체크합니다. range가 4.00 미만이면 청산합니다 3. buy만 거래하는 수식의 청산수식 input : 체크시간(150000),range(4.00); 4. sell만 거래하는 수식의 청산수식 input : 체크시간(150000),range(4.00); 항상 고맙습니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-08-27 11:43:33

안녕하세요 예스스탁입니다. 1 input : 체크시간1(140000),체크시간2(150000),range(1.00); var : Tcond(false),hh(0),ll(0); if (sdate != sdate[1] and stime >= 체크시간1) or (sdate == sdate[1] and stime >= 체크시간1 and stime[1] < 체크시간1) Then { Tcond = true; HH = h; LL = l; } if (sdate != sdate[1] and stime >= 체크시간2) or (sdate == sdate[1] and stime >= 체크시간2 and stime[1] < 체크시간2) Then { Tcond = false; if MarketPosition == 1 and hh-ll < range Then exitlong(); } if Tcond == true Then { if h > HH Then hh = h; if l < ll Then ll = l; } 2 input : 체크시간1(140000),체크시간2(150000),range(1.00); var : Tcond(false),hh(0),ll(0); if (sdate != sdate[1] and stime >= 체크시간1) or (sdate == sdate[1] and stime >= 체크시간1 and stime[1] < 체크시간1) Then { Tcond = true; HH = h; LL = l; } if (sdate != sdate[1] and stime >= 체크시간2) or (sdate == sdate[1] and stime >= 체크시간2 and stime[1] < 체크시간2) Then { Tcond = false; if MarketPosition == -1 and hh-ll < range Then exitshort(); } if Tcond == true Then { if h > HH Then hh = h; if l < ll Then ll = l; } 3 input : 체크시간(150000),range(1.00); var : Tcond(false),hh(0),ll(0); if (sdate != sdate[1] and stime >= 체크시간) or (sdate == sdate[1] and stime >= 체크시간 and stime[1] < 체크시간) Then { Tcond = false; if MarketPosition == 1 and DayHigh(0)-daylow(0) < range Then exitlong(); } 4 input : 체크시간(150000),range(1.00); var : Tcond(false),hh(0),ll(0); if (sdate != sdate[1] and stime >= 체크시간) or (sdate == sdate[1] and stime >= 체크시간 and stime[1] < 체크시간) Then { Tcond = false; if MarketPosition == -1 and DayHigh(0)-daylow(0) < range Then exitshort(); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > kospi200선물 1분봉 데이트레이딩 당일 진입제한시간 093000 위 기준이 적용되는 진입수식이 있다고 할 때 아래내용의 청산수식 요청드립니다. 140000부터 150000까지 1시간 동안의 고가와 저가 range를 체크합니다(당일의 고가 저가 아님) range가 1.00 미만이면 청산합니다. 1. buy만 거래하는 수식의 청산수식 input : 체크시간1(140000),체크시간2(150000),range(1.00); 2. sell만 거래하는 수식의 청산수식 input : 체크시간1(140000),체크시간2(150000),range(1.00); 150000에 당일의 고가 저가 range를 체크합니다. range가 4.00 미만이면 청산합니다 3. buy만 거래하는 수식의 청산수식 input : 체크시간(150000),range(4.00); 4. sell만 거래하는 수식의 청산수식 input : 체크시간(150000),range(4.00); 항상 고맙습니다.