커뮤니티

문의 드립니다

프로필 이미지
푸른
2023-10-06 07:23:20
518
글번호 172863
답변완료
1 input : StartTime(170000),EndTime(50000); input : 익절틱수(0),손절틱수(30); var : Tcond(False),entry(0); Variables: Mom(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if L ==lowest(L,2) and highest(H,2) >= lowest(L,2)+PriceScale*1 and C > ma(C,120) Then { Buy("b",AtStop,(highest(H,2)+lowest(L,2))/2); } if MarketPosition == 1 and BarsSinceEntry == 8 Then ExitLong(); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 2 input : StartTime(170000),EndTime(50000); input : 익절틱수(0),손절틱수(30); var : Tcond(False),entry(0); Variables: Mom(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then if H == highest(H,2) and lowest(L,2) <= highest(H,2)+PriceScale*1 and C < ma(c,120) Then { Sell("s",AtStop,(lowest(L,2)+highest(H,2))/2); } if MarketPosition == -1 and BarsSinceEntry == 8 Then ExitShort(); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 3 input : StartTime(210000),EndTime(60000); input : 익절틱수(0),손절틱수(40); var : Tcond(False),entry(0); Variables: Mom(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if L ==lowest(L,2) and highest(H,2) >= lowest(L,2)+PriceScale*1 and C > ma(c,120) Then { Buy("b",AtStop,(highest(H,2)+lowest(L,2))/2); } if MarketPosition == 1 and BarsSinceEntry == 8 Then ExitLong(); } if H == highest(H,2) and lowest(L,2) <= highest(H,2)+PriceScale*1 and C < ma(c,120) Then { Sell("s",AtStop,(lowest(L,2)+highest(H,2))/2); } if MarketPosition == -1 and BarsSinceEntry == 8 Then ExitShort(); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 위 3가지 수식어에 매수나 매도의 진입후 손절시 청산 소멸이 되질 않고 매도나 매수 체결이 됩니다. 그리고 그 체결의 역 방향으로 갈 때는 손절이 되질 않습니다. 수식어 수정이 가능한지 문의 드립니다. ------------------------------------- 아래 내용의 2가지 수식어를 부탁드립니다. 4. * 매매시간 20 :00~ 익일 06:00 * 익절 100 손절 100 * 매수 캔들 저점이 낮아지는 6번의 음봉 (저점이 엇비슷하면 음봉이 아님) 이후 7번이 양봉 일때 8번의 매수 조건은 7번의 전체 폭 하단을 100% 가정했을때 하단 80% 매수 * 청산 캔들 고점이 높아지는 8번양봉 이후 12번 양봉에 (고점이 엇비슷하면 양봉이 아님) 청산 5. * 매매시간 20 :00~ 익일 06:00 * 익절 100 손절 100 * 매도 캔들 고점이 높아지는 6번의 양봉 (저점이 엇비슷하면 음봉이 아님) 이후 7번이 음봉 일때 8번의 매도 조건은 7번의 전체 폭 하단을 100% 가정했을때 상단 20% 매도 * 청산 캔들 저점이 낮아지는 8번음봉 이후 12번 음봉에 (고점이 엇비슷하면 음봉이 아님) 청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-10-06 09:58:58

안녕하세요 예스스탁입니다. 1,2,3 랭귀지는 차트 봉 데이터를 이용해 조건에 따라 신호를 발생합니다. 신호발생후 체결여부에 따른 내용은 수식에서 처리를 할 수 없습니다. 4 input : StartTime(200000),EndTime(60000); input : 익절틱수(0),손절틱수(40); var : Tcond(False),entry(0); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if C > O and CountIf(C<O and L < L[1],6)[1] == 6 Then { Buy("b",AtLimit, highest(H,7)-(highest(H,7)-lowest(L,7))*0.8); } if MarketPosition == 1 Then { if CountIf(C > O and H > H[1],6) == 6 Then Condition1 = true; if Condition1 == true and CountIf(C>O,BarsSinceEntry) >= 12 Then ExitLong(); } Else Condition1 = False; } 5 input : StartTime(200000),EndTime(60000); input : 익절틱수(0),손절틱수(40); var : Tcond(False),entry(0); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if C < O and CountIf(C>O and H > H[1],6)[1] == 6 Then { Sell("s",AtLimit, lowest(L,7)+(highest(H,7)-lowest(L,7))*0.8); } if MarketPosition == -1 Then { if CountIf(C < O and L < L[1],6) == 6 Then Condition1 = true; if Condition1 == true and CountIf(C<O,BarsSinceEntry) >= 12 Then ExitShort(); } Else Condition1 = False; } 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 문의 드립니다 > 1 input : StartTime(170000),EndTime(50000); input : 익절틱수(0),손절틱수(30); var : Tcond(False),entry(0); Variables: Mom(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if L ==lowest(L,2) and highest(H,2) >= lowest(L,2)+PriceScale*1 and C > ma(C,120) Then { Buy("b",AtStop,(highest(H,2)+lowest(L,2))/2); } if MarketPosition == 1 and BarsSinceEntry == 8 Then ExitLong(); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 2 input : StartTime(170000),EndTime(50000); input : 익절틱수(0),손절틱수(30); var : Tcond(False),entry(0); Variables: Mom(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then if H == highest(H,2) and lowest(L,2) <= highest(H,2)+PriceScale*1 and C < ma(c,120) Then { Sell("s",AtStop,(lowest(L,2)+highest(H,2))/2); } if MarketPosition == -1 and BarsSinceEntry == 8 Then ExitShort(); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 3 input : StartTime(210000),EndTime(60000); input : 익절틱수(0),손절틱수(40); var : Tcond(False),entry(0); Variables: Mom(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if Tcond == true Then { if L ==lowest(L,2) and highest(H,2) >= lowest(L,2)+PriceScale*1 and C > ma(c,120) Then { Buy("b",AtStop,(highest(H,2)+lowest(L,2))/2); } if MarketPosition == 1 and BarsSinceEntry == 8 Then ExitLong(); } if H == highest(H,2) and lowest(L,2) <= highest(H,2)+PriceScale*1 and C < ma(c,120) Then { Sell("s",AtStop,(lowest(L,2)+highest(H,2))/2); } if MarketPosition == -1 and BarsSinceEntry == 8 Then ExitShort(); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 위 3가지 수식어에 매수나 매도의 진입후 손절시 청산 소멸이 되질 않고 매도나 매수 체결이 됩니다. 그리고 그 체결의 역 방향으로 갈 때는 손절이 되질 않습니다. 수식어 수정이 가능한지 문의 드립니다. ------------------------------------- 아래 내용의 2가지 수식어를 부탁드립니다. 4. * 매매시간 20 :00~ 익일 06:00 * 익절 100 손절 100 * 매수 캔들 저점이 낮아지는 6번의 음봉 (저점이 엇비슷하면 음봉이 아님) 이후 7번이 양봉 일때 8번의 매수 조건은 7번의 전체 폭 하단을 100% 가정했을때 하단 80% 매수 * 청산 캔들 고점이 높아지는 8번양봉 이후 12번 양봉에 (고점이 엇비슷하면 양봉이 아님) 청산 5. * 매매시간 20 :00~ 익일 06:00 * 익절 100 손절 100 * 매도 캔들 고점이 높아지는 6번의 양봉 (저점이 엇비슷하면 음봉이 아님) 이후 7번이 음봉 일때 8번의 매도 조건은 7번의 전체 폭 하단을 100% 가정했을때 상단 20% 매도 * 청산 캔들 저점이 낮아지는 8번음봉 이후 12번 음봉에 (고점이 엇비슷하면 음봉이 아님) 청산