커뮤니티

추가문의

프로필 이미지
스카스카
2021-07-14 03:20:20
1479
글번호 150728
답변완료
(A)13시~14시 1분봉, (최고가/최저가)기준을 두고, 1시간이 지난 15시 이후부터 (A)기준 최고가 보다 1pt 높다면 매수 신호 발생 20포인트 익절 / 20포인트 손절 (A)기준 최저가 보다 1pt 낮으면 매도 신호 발생 20포인트 익절 / 20포인트 손절 ------------------------------------------------------------------------------------ input : StartTime(130000),EndTime(140000),ETime(150000); var : Tcond(false),T(0),HH(0),LL(0); if Bdate != Bdate[1] Then T = 0; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { T = 1; HH = H; LL = L; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { T = 2; } if (sdate != sdate[1] and stime >= ETime) or (sdate == sdate[1] and stime >= ETime and stime[1] < ETime) Then { T = 3; } if T == 1 Then { if H > HH Then HH = H; if L < LL Then LL = L; } if T == 3 and HH > 0 and CrossUp(C,HH+1) Then { Buy(); T = 4; } if T == 3 and LL > 0 and CrossDown(C,LL-1) Then { Sell(); T = 4; } SetStopProfittarget(20,PointStop); SetStopLoss(20,PointStop); --------------------------------------------------------------------------------- 위 수식을 만들어 주셔서 감사합니다. ^^ 작동도 잘 되는것 같습니다. 추가 요청이 있어 글을 남깁니다. 1. 매수신호만 체크하여 매수진입/ 만약 익월 03시까지 신호가 없다면 종료! 반대로 매도 신호만 체크하여 매도진입/ 만약 익월 03시까지 신호가 없다면 종료! 변수로 1/-1 선택해도 좋구요.. 감사합니다. ^^
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2021-07-14 10:10:40

안녕하세요 예스스탁입니다. position을 1로 하시면 매수만, -1로 지정하면 매도만 발생하게 됩니다. input : StartTime(130000),EndTime(140000),ETime(150000),position(1); var : Tcond(false),T(0),HH(0),LL(0); if Bdate != Bdate[1] Then T = 0; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { T = 1; HH = H; LL = L; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { T = 2; } if (sdate != sdate[1] and stime >= ETime) or (sdate == sdate[1] and stime >= ETime and stime[1] < ETime) Then { T = 3; } if T == 1 Then { if H > HH Then HH = H; if L < LL Then LL = L; } if T == 3 and HH > 0 and CrossUp(C,HH+1) and position >= 0 Then { Buy(); T = 4; } if T == 3 and LL > 0 and CrossDown(C,LL-1) and position <= 0 Then { Sell(); T = 4; } SetStopProfittarget(20,PointStop); SetStopLoss(20,PointStop); 즐거운 하루되세요 > 스카스카 님이 쓴 글입니다. > 제목 : 추가문의 > (A)13시~14시 1분봉, (최고가/최저가)기준을 두고, 1시간이 지난 15시 이후부터 (A)기준 최고가 보다 1pt 높다면 매수 신호 발생 20포인트 익절 / 20포인트 손절 (A)기준 최저가 보다 1pt 낮으면 매도 신호 발생 20포인트 익절 / 20포인트 손절 ------------------------------------------------------------------------------------ input : StartTime(130000),EndTime(140000),ETime(150000); var : Tcond(false),T(0),HH(0),LL(0); if Bdate != Bdate[1] Then T = 0; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { T = 1; HH = H; LL = L; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { T = 2; } if (sdate != sdate[1] and stime >= ETime) or (sdate == sdate[1] and stime >= ETime and stime[1] < ETime) Then { T = 3; } if T == 1 Then { if H > HH Then HH = H; if L < LL Then LL = L; } if T == 3 and HH > 0 and CrossUp(C,HH+1) Then { Buy(); T = 4; } if T == 3 and LL > 0 and CrossDown(C,LL-1) Then { Sell(); T = 4; } SetStopProfittarget(20,PointStop); SetStopLoss(20,PointStop); --------------------------------------------------------------------------------- 위 수식을 만들어 주셔서 감사합니다. ^^ 작동도 잘 되는것 같습니다. 추가 요청이 있어 글을 남깁니다. 1. 매수신호만 체크하여 매수진입/ 만약 익월 03시까지 신호가 없다면 종료! 반대로 매도 신호만 체크하여 매도진입/ 만약 익월 03시까지 신호가 없다면 종료! 변수로 1/-1 선택해도 좋구요.. 감사합니다. ^^
프로필 이미지

스카스카

2021-07-14 14:53:50

목표수익이 없으면 익일 새벽 3시 종료를 추가하고 싶습니다. 감사합니다~~~ ^^ 너무 좋아요~ -------------------------------------------------------- > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 추가문의 > 안녕하세요 예스스탁입니다. position을 1로 하시면 매수만, -1로 지정하면 매도만 발생하게 됩니다. input : StartTime(130000),EndTime(140000),ETime(150000),position(1); var : Tcond(false),T(0),HH(0),LL(0); if Bdate != Bdate[1] Then T = 0; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { T = 1; HH = H; LL = L; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { T = 2; } if (sdate != sdate[1] and stime >= ETime) or (sdate == sdate[1] and stime >= ETime and stime[1] < ETime) Then { T = 3; } if T == 1 Then { if H > HH Then HH = H; if L < LL Then LL = L; } if T == 3 and HH > 0 and CrossUp(C,HH+1) and position >= 0 Then { Buy(); T = 4; } if T == 3 and LL > 0 and CrossDown(C,LL-1) and position <= 0 Then { Sell(); T = 4; } SetStopProfittarget(20,PointStop); SetStopLoss(20,PointStop); 즐거운 하루되세요 > 스카스카 님이 쓴 글입니다. > 제목 : 추가문의 > (A)13시~14시 1분봉, (최고가/최저가)기준을 두고, 1시간이 지난 15시 이후부터 (A)기준 최고가 보다 1pt 높다면 매수 신호 발생 20포인트 익절 / 20포인트 손절 (A)기준 최저가 보다 1pt 낮으면 매도 신호 발생 20포인트 익절 / 20포인트 손절 ------------------------------------------------------------------------------------ input : StartTime(130000),EndTime(140000),ETime(150000); var : Tcond(false),T(0),HH(0),LL(0); if Bdate != Bdate[1] Then T = 0; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { T = 1; HH = H; LL = L; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { T = 2; } if (sdate != sdate[1] and stime >= ETime) or (sdate == sdate[1] and stime >= ETime and stime[1] < ETime) Then { T = 3; } if T == 1 Then { if H > HH Then HH = H; if L < LL Then LL = L; } if T == 3 and HH > 0 and CrossUp(C,HH+1) Then { Buy(); T = 4; } if T == 3 and LL > 0 and CrossDown(C,LL-1) Then { Sell(); T = 4; } SetStopProfittarget(20,PointStop); SetStopLoss(20,PointStop); --------------------------------------------------------------------------------- 위 수식을 만들어 주셔서 감사합니다. ^^ 작동도 잘 되는것 같습니다. 추가 요청이 있어 글을 남깁니다. 1. 매수신호만 체크하여 매수진입/ 만약 익월 03시까지 신호가 없다면 종료! 반대로 매도 신호만 체크하여 매도진입/ 만약 익월 03시까지 신호가 없다면 종료! 변수로 1/-1 선택해도 좋구요.. 감사합니다. ^^
프로필 이미지

예스스탁 예스스탁 답변

2021-07-14 16:20:29

안녕하세요 예스스탁입니다. input : StartTime(130000),EndTime(140000),ETime(150000),position(1),xtime(30000); var : Tcond(false),T(0),HH(0),LL(0); var : ST(0); if Bdate != Bdate[1] Then { T = 0; ST = sTime; } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { T = 1; HH = H; LL = L; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { T = 2; } if (sdate != sdate[1] and stime >= ETime) or (sdate == sdate[1] and stime >= ETime and stime[1] < ETime) Then { T = 3; } if T == 1 Then { if H > HH Then HH = H; if L < LL Then LL = L; } if T == 3 and HH > 0 and CrossUp(C,HH+1) and position >= 0 Then { Buy(); T = 4; } if T == 3 and LL > 0 and CrossDown(C,LL-1) and position <= 0 Then { Sell(); T = 4; } IF Xtime > ST Then SetStopEndofday(Xtime); Else { if sDate != sDate[1] Then SetStopEndofday(Xtime); } if (sdate != sdate[1] and stime >= ST) or (sdate == sdate[1] and stime >= ST and stime[1] < ST) Then { IF Xtime <= ST Then { SetStopEndofday(0); } } SetStopProfittarget(20,PointStop); SetStopLoss(20,PointStop); 즐거운 하루되세요 > 스카스카 님이 쓴 글입니다. > 제목 : Re : Re : 추가문의 > 목표수익이 없으면 익일 새벽 3시 종료를 추가하고 싶습니다. 감사합니다~~~ ^^ 너무 좋아요~ -------------------------------------------------------- > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 추가문의 > 안녕하세요 예스스탁입니다. position을 1로 하시면 매수만, -1로 지정하면 매도만 발생하게 됩니다. input : StartTime(130000),EndTime(140000),ETime(150000),position(1); var : Tcond(false),T(0),HH(0),LL(0); if Bdate != Bdate[1] Then T = 0; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { T = 1; HH = H; LL = L; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { T = 2; } if (sdate != sdate[1] and stime >= ETime) or (sdate == sdate[1] and stime >= ETime and stime[1] < ETime) Then { T = 3; } if T == 1 Then { if H > HH Then HH = H; if L < LL Then LL = L; } if T == 3 and HH > 0 and CrossUp(C,HH+1) and position >= 0 Then { Buy(); T = 4; } if T == 3 and LL > 0 and CrossDown(C,LL-1) and position <= 0 Then { Sell(); T = 4; } SetStopProfittarget(20,PointStop); SetStopLoss(20,PointStop); 즐거운 하루되세요 > 스카스카 님이 쓴 글입니다. > 제목 : 추가문의 > (A)13시~14시 1분봉, (최고가/최저가)기준을 두고, 1시간이 지난 15시 이후부터 (A)기준 최고가 보다 1pt 높다면 매수 신호 발생 20포인트 익절 / 20포인트 손절 (A)기준 최저가 보다 1pt 낮으면 매도 신호 발생 20포인트 익절 / 20포인트 손절 ------------------------------------------------------------------------------------ input : StartTime(130000),EndTime(140000),ETime(150000); var : Tcond(false),T(0),HH(0),LL(0); if Bdate != Bdate[1] Then T = 0; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { T = 1; HH = H; LL = L; } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { T = 2; } if (sdate != sdate[1] and stime >= ETime) or (sdate == sdate[1] and stime >= ETime and stime[1] < ETime) Then { T = 3; } if T == 1 Then { if H > HH Then HH = H; if L < LL Then LL = L; } if T == 3 and HH > 0 and CrossUp(C,HH+1) Then { Buy(); T = 4; } if T == 3 and LL > 0 and CrossDown(C,LL-1) Then { Sell(); T = 4; } SetStopProfittarget(20,PointStop); SetStopLoss(20,PointStop); --------------------------------------------------------------------------------- 위 수식을 만들어 주셔서 감사합니다. ^^ 작동도 잘 되는것 같습니다. 추가 요청이 있어 글을 남깁니다. 1. 매수신호만 체크하여 매수진입/ 만약 익월 03시까지 신호가 없다면 종료! 반대로 매도 신호만 체크하여 매도진입/ 만약 익월 03시까지 신호가 없다면 종료! 변수로 1/-1 선택해도 좋구요.. 감사합니다. ^^