커뮤니티

시스템 수식 수정 부탁드립니다.

프로필 이미지
승부사1
2016-07-08 06:13:38
129
글번호 99869
답변완료
아래의 수식을 수정해 주시면 감사하겠습니다. 매수조건 1. 갭상승시 전일종가 매수 2. 갭상승 후 전일종가까지 내려오지 않고 반등시 시가돌파시 매수 3. 갭하락시 반등하여 시가돌파시 매수 4. 시초가가 전일종가와 같을시는 시가매수 5. 7%이상 갭상승시 매수금지 매도조건 매수조건 2의 경우로 매수된 경우는 아래의 익절조건을 무시하고 고점대비 3%하락시 매도 - 아래 - input : 날짜 (20160701); if sdate == 날짜 and dayindex > 0 and dayopen > DayClose(1) and dayopen < DayClose(1)*1.03 and crossup(c,DayClose(1)) Then Buy("매수1"); if sdate == 날짜 and dayindex > 0 and dayopen >= DayClose(1)*1.03 and crossup(c,DayOpen) Then Buy("매수2"); if sdate == 날짜 and dayindex > 0 and dayopen <= DayClose(1)*0.97 and crossup(c,DayOpen) Then Buy("매수3"); SetStopProfittarget(5,PercentStop); SetStopLoss(3,PercentStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-07-08 10:37:26

안녕하세요 예스스탁입니다. input : 날짜 (20160701); if sdate == 날짜 and dayindex > 0 and dayopen < DayClose(1)*1.07 and dayopen > DayClose(1) and CrossDown(C,DayClose(1)) Then Buy("매수1"); if sdate == 날짜 and dayindex > 0 and dayopen > DayClose(1) and dayopen < DayClose(1)*1.07 and C[1] < dayopen and crossup(c,dayopen) Then Buy("매수2"); if sdate == 날짜 and dayindex > 0 and dayopen < DayClose(1) and C[1] < dayopen and crossup(c,dayopen) Then Buy("매수3"); if NextBarSdate == 날짜 and NextBarOpen == C Then Buy("매수4",AtMarket); SetStopProfittarget(5,PercentStop); SetStopLoss(3,PercentStop); if MarketPosition == 1 and IsEntryName("b2") == false Then ExitLong("bx1",AtStop,EntryPrice*1.05); if MarketPosition == 1 and IsEntryName("b2") == true Then ExitLong("bx2",AtStop,highest(H,BarsSinceEntry)*0.97); SetStopLoss(3,PercentStop); 즐거운 하루되세요 > 승부사1 님이 쓴 글입니다. > 제목 : 시스템 수식 수정 부탁드립니다. > 아래의 수식을 수정해 주시면 감사하겠습니다. 매수조건 1. 갭상승시 전일종가 매수 2. 갭상승 후 전일종가까지 내려오지 않고 반등시 시가돌파시 매수 3. 갭하락시 반등하여 시가돌파시 매수 4. 시초가가 전일종가와 같을시는 시가매수 5. 7%이상 갭상승시 매수금지 매도조건 매수조건 2의 경우로 매수된 경우는 아래의 익절조건을 무시하고 고점대비 3%하락시 매도 - 아래 - input : 날짜 (20160701); if sdate == 날짜 and dayindex > 0 and dayopen > DayClose(1) and dayopen < DayClose(1)*1.03 and crossup(c,DayClose(1)) Then Buy("매수1"); if sdate == 날짜 and dayindex > 0 and dayopen >= DayClose(1)*1.03 and crossup(c,DayOpen) Then Buy("매수2"); if sdate == 날짜 and dayindex > 0 and dayopen <= DayClose(1)*0.97 and crossup(c,DayOpen) Then Buy("매수3"); SetStopProfittarget(5,PercentStop); SetStopLoss(3,PercentStop);