커뮤니티

수정부탁드립니다.

프로필 이미지
sc2018
2018-08-09 16:38:27
141
글번호 121262
답변완료
input : 금액(500000); If NextBarSdate >sDate Then Buy("b1%", AtLimit, dayclose*0.99, Floor(금액/C)); If NextBarSdate >sDate Then Buy("b1.5%", AtLimit, dayclose*0.985, floor(금액/C)); If NextBarSdate >sDate Then Buy("b2%", AtLimit, dayclose*0.98, floor(금액/C)); If NextBarSdate >sDate Then Buy("b2.5%", AtLimit, dayclose*0.975, Floor(금액/C)); If NextBarSdate >sDate Then Buy("b3%", AtLimit, dayclose*0.97, floor(금액/C)); If NextBarSdate >sDate Then Buy("b4%", AtLimit, dayclose*0.96, floor(금액/C)); if stime >= 090600 and dayhigh == H and C<O Then var1 = o; Buy("b1%1음봉", Atlimit, o*0.99, floor(금액/c)); if stime >= 090600 and dayhigh == H[1] and C[1]>O[1] and C<o Then Buy("b1%2음봉", Atlimit, DayHigh*0.99, floor(금액/c)); if stime >= 090600 and dayhigh == H[2] and C[2]>O[2] and C[1]<o[1] and C<O Then Buy("b1%3음봉", Atlimit, O*0.99, floor(금액/c)); if marketposition == 1 and ((latestEntryName == "b1%1음봉" )) Then buy("b1%1음봉2%추매", atlimit, var1*0.98, floor(금액/c)); //매도 1% SetStopProfittarget(1,PercentStop); SetStopInactivity (1, 50, PercentStop); 항상 수고가 많으십니다. 1. 3분봉에서 시뮬레이션을 하고 있는데. 9시3분에 "b1%1음봉" 이 거래가 일어난다고 뜹니다. 어느부분이 잘못되었을까요? 2. if marketposition == 1 and ((latestEntryName == "b1%1음봉" )) Then buy("b1%1음봉2%추매", atlimit, var1*0.98, floor(금액/c)); 이 매수가 b1%1음봉 한번당 한번만 진입 하고 싶습니다.(중간에 b1%2음봉 신호가 나와도 매수 할수 있는 방법도 알려주세요.) 3. SetStopInactivity (1, 50, PercentStop); 이 신호가 나오면 그 이후 매수를 중지고 싶습니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-08-10 12:34:16

안녕하세요 예스스탁입니다. 1 atlimit은 봉완성시에 지정한 가격을 셋팅하고 다음봉 현재가와 셋팅된 가격과 비교해 신호를 발생합니다. 일간 마지막봉에 셋팅이 되고 다음날 첫봉에 가격조건 충족되면 신호가 발생할수 있습니다. 그러므로 일간 마지막봉에서는 셋팅이 되지 않게 하시면 됩니다. if marketposition == 1 and NextBarSdate == sdate and ((latestEntryName == "b1%1음봉" )) Then buy("b1%1음봉2%추매", atlimit, var1*0.98, floor(금액/c)); 2 최근진입신호가 b1%1음봉이면 그 뒤에 한번만 발생합니다. 해당 내용은 별도로 수정할 내용은 없습니다. 3 input : 금액(500000); if bdate != bdate[1] Then Condition1 = false; if (TotalTrades > TotalTrades[1] and LatestExitName(1) == "StopInactivity") or CurrentContracts < CurrentContracts and LatestExitName(0) == "StopInactivity" Then Condition1 = true; If NextBarSdate >sDate Then Buy("b1%", AtLimit, dayclose*0.99, Floor(금액/C)); If NextBarSdate >sDate Then Buy("b1.5%", AtLimit, dayclose*0.985, floor(금액/C)); If NextBarSdate >sDate Then Buy("b2%", AtLimit, dayclose*0.98, floor(금액/C)); If NextBarSdate >sDate Then Buy("b2.5%", AtLimit, dayclose*0.975, Floor(금액/C)); If NextBarSdate >sDate Then Buy("b3%", AtLimit, dayclose*0.97, floor(금액/C)); If NextBarSdate >sDate Then Buy("b4%", AtLimit, dayclose*0.96, floor(금액/C)); if Condition1 == false then { if stime >= 090600 and dayhigh == H and C<O Then { var1 = o; Buy("b1%1음봉", Atlimit, o*0.99, floor(금액/c)); } if stime >= 090600 and dayhigh == H[1] and C[1]>O[1] and C<o Then Buy("b1%2음봉", Atlimit, DayHigh*0.99, floor(금액/c)); if stime >= 090600 and dayhigh == H[2] and C[2]>O[2] and C[1]<o[1] and C<O Then Buy("b1%3음봉", Atlimit, O*0.99, floor(금액/c)); if marketposition == 1 and NextBarSdate == sdate and ((latestEntryName == "b1%1음봉" )) Then buy("b1%1음봉2%추매", atlimit, var1*0.98, floor(금액/c)); } //매도 1% SetStopProfittarget(1,PercentStop); SetStopInactivity (1, 50, PercentStop); 즐거운 하루되세요 > sc2018 님이 쓴 글입니다. > 제목 : 수정부탁드립니다. > input : 금액(500000); If NextBarSdate >sDate Then Buy("b1%", AtLimit, dayclose*0.99, Floor(금액/C)); If NextBarSdate >sDate Then Buy("b1.5%", AtLimit, dayclose*0.985, floor(금액/C)); If NextBarSdate >sDate Then Buy("b2%", AtLimit, dayclose*0.98, floor(금액/C)); If NextBarSdate >sDate Then Buy("b2.5%", AtLimit, dayclose*0.975, Floor(금액/C)); If NextBarSdate >sDate Then Buy("b3%", AtLimit, dayclose*0.97, floor(금액/C)); If NextBarSdate >sDate Then Buy("b4%", AtLimit, dayclose*0.96, floor(금액/C)); if stime >= 090600 and dayhigh == H and C<O Then var1 = o; Buy("b1%1음봉", Atlimit, o*0.99, floor(금액/c)); if stime >= 090600 and dayhigh == H[1] and C[1]>O[1] and C<o Then Buy("b1%2음봉", Atlimit, DayHigh*0.99, floor(금액/c)); if stime >= 090600 and dayhigh == H[2] and C[2]>O[2] and C[1]<o[1] and C<O Then Buy("b1%3음봉", Atlimit, O*0.99, floor(금액/c)); if marketposition == 1 and ((latestEntryName == "b1%1음봉" )) Then buy("b1%1음봉2%추매", atlimit, var1*0.98, floor(금액/c)); //매도 1% SetStopProfittarget(1,PercentStop); SetStopInactivity (1, 50, PercentStop); 항상 수고가 많으십니다. 1. 3분봉에서 시뮬레이션을 하고 있는데. 9시3분에 "b1%1음봉" 이 거래가 일어난다고 뜹니다. 어느부분이 잘못되었을까요? 2. if marketposition == 1 and ((latestEntryName == "b1%1음봉" )) Then buy("b1%1음봉2%추매", atlimit, var1*0.98, floor(금액/c)); 이 매수가 b1%1음봉 한번당 한번만 진입 하고 싶습니다.(중간에 b1%2음봉 신호가 나와도 매수 할수 있는 방법도 알려주세요.) 3. SetStopInactivity (1, 50, PercentStop); 이 신호가 나오면 그 이후 매수를 중지고 싶습니다.