커뮤니티

선물 만기일에

프로필 이미지
구다이전설
2013-07-11 18:16:13
260
글번호 65255
답변완료
당일 청상 오후2 시 49분에 해놨는데 시물레이션에서는 왜 다음날 청산이 일어 나는지 모르겠네요 .. 2012 년 9월 13일 9월 14일 에서 (7분봉) input : pivot_idx(22), pivot_CH(0.3), stopPoint(1.6); Var : PP(0), PR1(0), PR2(0), PS1(0), PS2(0), emaShort(0), CCIvalue(0), bcnt(0), scnt(0); setstoploss(stopPoint, pointstop); setstopendofday(144935); #피봇역추세 //14시 이전에 1차 지지선을 상향돌파하면 매수, 1차 저항선을 하향이탈하면 매도 if dayindex() ==0 then { PP = (DayHigh(1)+DayLow(1)+DayClose(1))/3; PR1 = 2*PP-DayLow(1); PR2 = PP+DayHigh(1)-DayLow(1); PS1 = 2*PP-DayHigh(1); PS2 = PP-DayHigh(1)+DayLow(1); } if stime < 140000 then { if CrossUp(C, Ps1) and bids > asks then buy("PPrev_B"); if CrossDown(c, ps2) or CrossDown(c,pr1) then exitlong("ppbx"); if CrossDown(C, Pr1) and bids < asks then sell("PPrev_S"); if crossup(c,pr2) or CrossUp(c, ps1) then exitshort("ppsx"); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-07-12 15:27:56

안녕하세요 예스스탁입니다. 실시간 트레이딩에서는 초단위 까지 지정해도 되지만 시뮬레이션 차트에서 분데이터는 분단위까지만 시간이 있습니다. 초단위는 모두 00입니다. 아래 지표식 적용해 보시면 plot1(stime); plot2(time); 14시 43분봉의 끝시간이 144900으로 되어 있는 것을 보실수 있습니다. 실전에서는 초단위 까지 지정하시고 시뮬레이션시에는 setstopendofday(144900); 으로 테스트 하시면 됩니다. 즐거운 하루되세요 > 구다이전설 님이 쓴 글입니다. > 제목 : 선물 만기일에 > 당일 청상 오후2 시 49분에 해놨는데 시물레이션에서는 왜 다음날 청산이 일어 나는지 모르겠네요 .. 2012 년 9월 13일 9월 14일 에서 (7분봉) input : pivot_idx(22), pivot_CH(0.3), stopPoint(1.6); Var : PP(0), PR1(0), PR2(0), PS1(0), PS2(0), emaShort(0), CCIvalue(0), bcnt(0), scnt(0); setstoploss(stopPoint, pointstop); setstopendofday(144935); #피봇역추세 //14시 이전에 1차 지지선을 상향돌파하면 매수, 1차 저항선을 하향이탈하면 매도 if dayindex() ==0 then { PP = (DayHigh(1)+DayLow(1)+DayClose(1))/3; PR1 = 2*PP-DayLow(1); PR2 = PP+DayHigh(1)-DayLow(1); PS1 = 2*PP-DayHigh(1); PS2 = PP-DayHigh(1)+DayLow(1); } if stime < 140000 then { if CrossUp(C, Ps1) and bids > asks then buy("PPrev_B"); if CrossDown(c, ps2) or CrossDown(c,pr1) then exitlong("ppbx"); if CrossDown(C, Pr1) and bids < asks then sell("PPrev_S"); if crossup(c,pr2) or CrossUp(c, ps1) then exitshort("ppsx"); }