커뮤니티

질문드립니다^^

프로필 이미지
반포동
2011-02-19 18:32:47
835
글번호 35902
답변완료

첨부 이미지

피봇시스템입니다 지표식 Var : value(0),value1(0); value = (DayHigh(1)+DayLow(1))/2; value1=dayhigh(1); Plot1((dayHigh(1)+daylow(1))/2, "중간값"); Plot2(dayHigh(1), "고가"); Plot3(dayLow(1), "저가"); plot4(dayhigh(1)-(value1-value)/2,"중간의중간"); plot5(daylow(1)+(value1-value)/2,"중간의중간2"); 시스템식 Vars : value(0),value1(0),value2(0),value3(0),value4(0); value = (DayHigh(1)+DayLow(1))/2; value1=dayhigh(1); value2=(dayHigh(1)+daylow(1))/2;##중간값 value3=(dayhigh(1)-(value1-value)/2);#중고 value4=(daylow(1)+(value1-value)/2);#중저 setstopendofday(1500); var : cnt(0),count(0); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if MarketPosition() == 0 and count == 0 Then{ if stime >=093000 and stime <= 150000 then{if c>value2 then Buy("첫매수",atstop,value3);} if stime >=093000 and stime <= 150000 then{if c<value2 then sell("첫매도",atstop,Value4);} } if MarketPosition() != 0 Then{ if stime >=093000 and stime <= 150000 then ExitLong ("콜손절",atstop,value2); if stime >=093000 and stime <= 150000 then exitshort("풋손절",atstop,value2);} if MarketPosition() == 0 and count >= 1 Then{ if stime >=093000 and stime <= 150000 Then{if c>value2 then Buy("두번째매수",atstop,value3);} if stime >=093000 and stime <= 150000 Then{if c<value2 then sell("두번째매도",atstop,value4);} } 이런식인데 요약하자면 중간값위에서 피봇선에서 매수 중간값아래서 피봇선에서 매도인데 보통 첫그림처럼 atstop주문이라 그값에서 주문이 나갑니다 근데 갭이떠버리면 10:30분 이후주문이 atstop을 무시하고 그냥 나가게 됩니다 어찌해야할까요?^^;
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-02-21 14:41:34

안녕하세요 예스스탁입니다. atstop은 지정된 if조건이 만족하고 다음봉이 atstop가격조건만 만족하면 바로 신호발생합니다. 해당 내용은 추가적으로 조건을 설정하셔서 수식으로 추가해야 합니다. 아래식은 시가가 전일 고저폭 안에서 발생시만 신호나오게 내용을 추가했습니다. Vars : value(0),value1(0),value2(0),value3(0),value4(0); value = (DayHigh(1)+DayLow(1))/2; value1=dayhigh(1); value2=(dayHigh(1)+daylow(1))/2;##중간값 value3=(dayhigh(1)-(value1-value)/2);#중고 value4=(daylow(1)+(value1-value)/2);#중저 setstopendofday(1500); var : cnt(0),count(0); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if MarketPosition() == 0 and count == 0 and dayopen > daylow(1) and dayopen < dayhigh(1) Then{ if stime >=093000 and stime <= 150000 then{if c>value2 then Buy("첫매수",atstop,value3);} if stime >=093000 and stime <= 150000 then{if c<value2 then sell("첫매도",atstop,Value4);} } if MarketPosition() != 0 Then{ if stime >=093000 and stime <= 150000 then ExitLong ("콜손절",atstop,value2); if stime >=093000 and stime <= 150000 then exitshort("풋손절",atstop,value2);} if MarketPosition() == 0 and count >= 1 Then{ if stime >=093000 and stime <= 150000 Then{if c>value2 then Buy("두번째매수",atstop,value3);} if stime >=093000 and stime <= 150000 Then{if c<value2 then sell("두번째매도",atstop,value4);} } 즐거운 하루되세요 > 반포동 님이 쓴 글입니다. > 제목 : 질문드립니다^^ > 피봇시스템입니다 지표식 Var : value(0),value1(0); value = (DayHigh(1)+DayLow(1))/2; value1=dayhigh(1); Plot1((dayHigh(1)+daylow(1))/2, "중간값"); Plot2(dayHigh(1), "고가"); Plot3(dayLow(1), "저가"); plot4(dayhigh(1)-(value1-value)/2,"중간의중간"); plot5(daylow(1)+(value1-value)/2,"중간의중간2"); 시스템식 Vars : value(0),value1(0),value2(0),value3(0),value4(0); value = (DayHigh(1)+DayLow(1))/2; value1=dayhigh(1); value2=(dayHigh(1)+daylow(1))/2;##중간값 value3=(dayhigh(1)-(value1-value)/2);#중고 value4=(daylow(1)+(value1-value)/2);#중저 setstopendofday(1500); var : cnt(0),count(0); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if MarketPosition() == 0 and count == 0 Then{ if stime >=093000 and stime <= 150000 then{if c>value2 then Buy("첫매수",atstop,value3);} if stime >=093000 and stime <= 150000 then{if c<value2 then sell("첫매도",atstop,Value4);} } if MarketPosition() != 0 Then{ if stime >=093000 and stime <= 150000 then ExitLong ("콜손절",atstop,value2); if stime >=093000 and stime <= 150000 then exitshort("풋손절",atstop,value2);} if MarketPosition() == 0 and count >= 1 Then{ if stime >=093000 and stime <= 150000 Then{if c>value2 then Buy("두번째매수",atstop,value3);} if stime >=093000 and stime <= 150000 Then{if c<value2 then sell("두번째매도",atstop,value4);} } 이런식인데 요약하자면 중간값위에서 피봇선에서 매수 중간값아래서 피봇선에서 매도인데 보통 첫그림처럼 atstop주문이라 그값에서 주문이 나갑니다 근데 갭이떠버리면 10:30분 이후주문이 atstop을 무시하고 그냥 나가게 됩니다 어찌해야할까요?^^;