커뮤니티

시스템 분석 부탁드립니다.

프로필 이미지
승부사1
2015-01-07 22:29:47
170
글번호 82018
답변완료

첨부 이미지

해당 수식으로 그림 파일의 동그라미 친 부분의 시초가에 매수가 안됩니다. 그리고 또 하나는 피라미딩에서 모든신호허용 2회로 설정을 걸었는데 역시나 시초가에 매수가 안됩니다. 분석 좀 부탁드립니다. - 수 식 - if MarketPosition == 0 and stime == 150000 Then{ if NextBarOpen <= C Then buy("매수1",AtStop,DayOpen); if NextBarOpen > C Then buy("매수2",AtLimit,DayOpen); } if MarketPosition == 0 and ExitDate(1) != sdate Then{ if DayOpen < DayClose(1) Then{ buy("매수11",AtStop,min(DayOpen,DayLow*1.02)); } if dayopen > DayClose(1) Then buy("매수22",AtLimit,min(DayClose(1),DayClose(1)*1.01)); } SetStopLoss(3,PercentStop); if MarketPosition == 1 Then ExitLong("매도",AtStop,highest(H,BarsSinceEntry)*0.95); var1 = ma(c,20); var2 = ma(c,60); var3 = ma(C,120); Condition1 = c < var3 and var1 < var2; if MarketPosition == 1 and Condition1 == true and Condition1[1] == false Then ExitLong("매도1");
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-01-08 14:53:15

안녕하세요 예스스탁입니다. 1.고려포리머 해당 종목은 6일 갭상승으로 시작을 했습니다. 갭상승시 전일종가와 +1%사이 최저점에서 매수하는데 해당 가격까지 내려간적이 없으므로 신호가 발생하지 않았습니다. 식도 아래내용으로 변경하시기 바랍니다. 첫봉에서 신호가 발생하는부분에 시가로 지정이 되어 있었습니다. if MarketPosition == 0 and stime == 150000 Then{ if NextBarOpen <= C Then buy("매수1",AtStop,c); if NextBarOpen > C Then buy("매수2",AtLimit,c); } if MarketPosition == 0 and ExitDate(1) != sdate Then{ if DayOpen < DayClose(1) Then{ buy("매수11",AtStop,min(DayOpen,DayLow*1.02)); } if dayopen > DayClose(1) Then buy("매수22",AtLimit,min(DayClose(1),DayClose(1)*1.01)); } SetStopLoss(3,PercentStop); if MarketPosition == 1 Then ExitLong("매도",AtStop,highest(H,BarsSinceEntry)*0.95); var1 = ma(c,20); var2 = ma(c,60); var3 = ma(C,120); Condition1 = c < var3 and var1 < var2; if MarketPosition == 1 and Condition1 == true and Condition1[1] == false Then ExitLong("매도1"); 2. 위닉스 해당 종목의 경우 6일에 이미 매수가 진입되어 있는 상태이기 때문에 7일에 매수신호가 발생하지 않은것입니다. 해당식은 무포지션 상태일때만 진입되게 되어 있어 피라미딩은 되지 않습니다. 피라미딩해서 추가로 매수하고자 하시면 식을 아래와 같이 변경해야 합니다. var : Entry(0); if date != date[1] Then Entry = 0; if CurrentContracts > CurrentContracts[1] Then Entry = Entry+1; if stime == 150000 Then{ if NextBarOpen <= C Then buy("매수1",AtStop,C); if NextBarOpen > C Then buy("매수2",AtLimit,C); } if Entry == 0 Then{ if DayOpen < DayClose(1) Then{ buy("매수11",AtStop,min(DayOpen,DayLow*1.02)); } if dayopen > DayClose(1) Then buy("매수22",AtLimit,min(DayClose(1),DayClose(1)*1.01)); } SetStopLoss(3,PercentStop); if MarketPosition == 1 Then ExitLong("매도",AtStop,highest(H,BarsSinceEntry)*0.95); var1 = ma(c,20); var2 = ma(c,60); var3 = ma(C,120); Condition1 = c < var3 and var1 < var2; if MarketPosition == 1 and Condition1 == true and Condition1[1] == false Then ExitLong("매도1"); 즐거운 하루되세요 > 승부사1 님이 쓴 글입니다. > 제목 : 시스템 분석 부탁드립니다. > 해당 수식으로 그림 파일의 동그라미 친 부분의 시초가에 매수가 안됩니다. 그리고 또 하나는 피라미딩에서 모든신호허용 2회로 설정을 걸었는데 역시나 시초가에 매수가 안됩니다. 분석 좀 부탁드립니다. - 수 식 - if MarketPosition == 0 and stime == 150000 Then{ if NextBarOpen <= C Then buy("매수1",AtStop,DayOpen); if NextBarOpen > C Then buy("매수2",AtLimit,DayOpen); } if MarketPosition == 0 and ExitDate(1) != sdate Then{ if DayOpen < DayClose(1) Then{ buy("매수11",AtStop,min(DayOpen,DayLow*1.02)); } if dayopen > DayClose(1) Then buy("매수22",AtLimit,min(DayClose(1),DayClose(1)*1.01)); } SetStopLoss(3,PercentStop); if MarketPosition == 1 Then ExitLong("매도",AtStop,highest(H,BarsSinceEntry)*0.95); var1 = ma(c,20); var2 = ma(c,60); var3 = ma(C,120); Condition1 = c < var3 and var1 < var2; if MarketPosition == 1 and Condition1 == true and Condition1[1] == false Then ExitLong("매도1");