커뮤니티

부탁드립니다.

프로필 이미지
쌀사비팔
2013-07-28 11:50:30
144
글번호 65820
답변완료
아래식에 두가지만 추가해 주십시요. -당일 매도(수익,손절)가 된 경우, 당일 매수 금지. -매수후 3거래일 14:45시에 매도 =================================================== var : cnt(0),count(0); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition == 0 and dayhigh < DayClose(1)*1.08 Then buy("b",Atlimit,DayClose(1)*0.95); SetStopLoss(11,PercentStop); SetStopProfittarget(11,PercentStop); ------------------------------------------------ > 분봉 사용합니다. <매수조건> 1일 1회만 매수 당일 고가는 전일 종가대비 +8% 이하여야 함 <매수> 전일(일봉) 종가대비 5%하락시 매수 <매도> 11%수익시 매도 11%손실시 매도
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-07-29 09:31:05

안녕하세요 예스스탁입니다. var : cnt(0),count(0),daycnt(0),Xcond(false); if date != date[1] Then daycnt = daycnt+1; Xcond = ExitDate(1) == sdate and (IsExitName("StopLoss",1) == true or IsExitName("StopProfittarget",1) == true); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and Xcond == false and MarketPosition == 0 and dayhigh < DayClose(1)*1.08 Then buy("b",Atlimit,DayClose(1)*0.95); SetStopLoss(11,PercentStop); SetStopProfittarget(11,PercentStop); if MarketPosition == 1 and daycnt == daycnt[BarsSinceEntry]+3 Then SetStopEndofday(144500); Else SetStopEndofday(0); 즐거운 하루되세요 > 쌀사비팔 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 아래식에 두가지만 추가해 주십시요. -당일 매도(수익,손절)가 된 경우, 당일 매수 금지. -매수후 3거래일 14:45시에 매도 =================================================== var : cnt(0),count(0); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition == 0 and dayhigh < DayClose(1)*1.08 Then buy("b",Atlimit,DayClose(1)*0.95); SetStopLoss(11,PercentStop); SetStopProfittarget(11,PercentStop); ------------------------------------------------ > 분봉 사용합니다. <매수조건> 1일 1회만 매수 당일 고가는 전일 종가대비 +8% 이하여야 함 <매수> 전일(일봉) 종가대비 5%하락시 매수 <매도> 11%수익시 매도 11%손실시 매도