커뮤니티

수식작성

프로필 이미지
푸른
2021-05-04 08:30:03
870
글번호 148653
답변완료

첨부 이미지

진행중인 캔들 9개중 5개가 양봉으로 봉 완성시 5분선 위에 있을때 buy 진입신호 진행중인 캔들 9개중 5개가 음봉으로 봉 완성시 5분선 아래에 있을때 buy 청산신호의 수식어를 부탁드립니다. 매매시간은 10 :30 ~ 21: 30 그리고 22 :00 ~ 익일 03 :50 각각 부탁 드립니다 익절 70틱 손절 20틱 목표수익 120틱 --------------------------------------- 진행중인 캔들 9개중 5개가 음봉으로 봉 완성시 5분선 아래에 있을때 sell 진입신호 진행중인 캔들 9개중 5개가 양봉으로 봉 완성시 5분선 위에 있을때 sell 청산신호의 수식어를 부탁드립니다. 매매시간은 10 :30 ~ 21: 30 그리고 22 :00 ~ 익일 03 :50 각각 부탁 드립니다 익절 70틱 손절 20틱 목표수익 120틱
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-05-04 14:34:53

안녕하세요 예스스탁입니다. 1-1 input : StartTime(103000),EndTime(213000); input : 익절틱수(70),손절틱수(20); Input : 당일수익틱수(120); Var : N1(0),dayPl(0),당일수익(0),Xcond(false); var : T(0),Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; Xcond = false; N1 = NetProfit; IF Endtime <= starttime Then { SetStopEndofday(0); } } 당일수익 = PriceScale*당일수익틱수; daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if IsExitName("dbp",1) == true then Xcond = true; } var1 = ma(C,5); if C > O or (C == O and C >= C[1]) Then T = 1; Else T = -1; if Tcond == true Then { if MarketPosition == 0 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then Buy("b"); if MarketPosition == 1 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then ExitLong("bx"); if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 1-2 input : StartTime(220000),EndTime(035000); input : 익절틱수(70),손절틱수(20); Input : 당일수익틱수(120); Var : N1(0),dayPl(0),당일수익(0),Xcond(false); var : T(0),Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; Xcond = false; N1 = NetProfit; IF Endtime <= starttime Then { SetStopEndofday(0); } } 당일수익 = PriceScale*당일수익틱수; daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if IsExitName("dbp",1) == true then Xcond = true; } var1 = ma(C,5); if C > O or (C == O and C >= C[1]) Then T = 1; Else T = -1; if Tcond == true Then { if MarketPosition == 0 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then Buy("b"); if MarketPosition == 1 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then ExitLong("bx"); if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 2-1 input : StartTime(103000),EndTime(213000); input : 익절틱수(70),손절틱수(20); Input : 당일수익틱수(120); Var : N1(0),dayPl(0),당일수익(0),Xcond(false); var : T(0),Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; Xcond = false; N1 = NetProfit; IF Endtime <= starttime Then { SetStopEndofday(0); } } 당일수익 = PriceScale*당일수익틱수; daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if IsExitName("dsp",1) == true then Xcond = true; } var1 = ma(C,5); if C > O or (C == O and C >= C[1]) Then T = 1; Else T = -1; if Tcond == true Then { if MarketPosition == 0 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then Sell("s"); if MarketPosition == -1 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then ExitShort("sx"); if MarketPosition == -1 then { ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 2-2 input : StartTime(220000),EndTime(035000); input : 익절틱수(70),손절틱수(20); Input : 당일수익틱수(120); Var : N1(0),dayPl(0),당일수익(0),Xcond(false); var : T(0),Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; Xcond = false; N1 = NetProfit; IF Endtime <= starttime Then { SetStopEndofday(0); } } 당일수익 = PriceScale*당일수익틱수; daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if IsExitName("dsp",1) == true then Xcond = true; } var1 = ma(C,5); if C > O or (C == O and C >= C[1]) Then T = 1; Else T = -1; if Tcond == true Then { if MarketPosition == 0 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then Sell("s"); if MarketPosition == -1 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then ExitShort("sx"); if MarketPosition == -1 then { ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 수식작성 > 진행중인 캔들 9개중 5개가 양봉으로 봉 완성시 5분선 위에 있을때 buy 진입신호 진행중인 캔들 9개중 5개가 음봉으로 봉 완성시 5분선 아래에 있을때 buy 청산신호의 수식어를 부탁드립니다. 매매시간은 10 :30 ~ 21: 30 그리고 22 :00 ~ 익일 03 :50 각각 부탁 드립니다 익절 70틱 손절 20틱 목표수익 120틱 --------------------------------------- 진행중인 캔들 9개중 5개가 음봉으로 봉 완성시 5분선 아래에 있을때 sell 진입신호 진행중인 캔들 9개중 5개가 양봉으로 봉 완성시 5분선 위에 있을때 sell 청산신호의 수식어를 부탁드립니다. 매매시간은 10 :30 ~ 21: 30 그리고 22 :00 ~ 익일 03 :50 각각 부탁 드립니다 익절 70틱 손절 20틱 목표수익 120틱