커뮤니티

파라볼릭 매수 시 왜 가끔 바로 진입하지 않는지?

프로필 이미지
MFJ
2010-12-16 13:51:24
867
글번호 34376
답변완료

첨부 이미지

위 차트와 같이 파라볼릭 매수 시에, 가끔보면 파라볼릭이 전환되고 나서 다음봉에 바로 매수 진입이 안되는 경우가 있는데, 저의 식이 잘 못 되었는 지 검증부탁드립니다. 위 그림의 경우도 파라볼릭 전환 후 3봉이 지난 뒤에 매수가 진입이 됩니다. 바로 진입될 때도 있고 경우에 따라 차이가 있습니다. 저의 식을 보시고 무엇 때문에 그런지 확인 좀 부탁드립니다. Input : af(0.01), maxAF(0.15), Period(5), NoEntryTime(144000), StartTime(093000), stoplossPercent(12), trailingstopdrop(5), trailingstopfloor(16), AddPercent(0.1), JiJung(0.01); Var : value(0); value = Sar(af,maxAF); # 매수 If (C > value) && (Diplus(Period) > DiMinus(Period)) && (Time < NoEntryTime) && (Time > StartTime) && !(value > value[1] and value[1] > value[2] and value[2] > value[3] and value[3] > value[4]) Then { Buy("Buy",AtLimit,C-JiJung,1); } # 추가매수 IF CurrentEntries() == 1 and C < EntryPrice()*(1-AddPercent) and C*0.97 > value Then buy("BAdd",AtLimit,C-JiJung,1); # 매수청산 If (C < value) Then { ExitLong("XL",OnClose,CurrentContracts()); } If CurrentContracts() == 1 and (C <= AvgEntryPrice()*0.86) Then { ExitLong("손절",OnClose,CurrentContracts(),DEF); } If CurrentContracts() >= 2 and (C <= AvgEntryPrice()*0.86) Then { ExitLong("합손절",OnClose,CurrentContracts(),DEF); } # 당일청산 if 옵션만기일() == true then { SetStopEndofday(1448); } if 옵션만기일() == false then { SetStopEndofday(1459); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2010-12-16 17:38:21

안녕하세요 예스스탁입니다. 진입식 내용이 파라볼릭 전환하면 바로 진입하라는 내용이 아닙니다. 매수식은 (조건1) 종가가 파라볼릭위에 있고 (조건2) di+가 di-보다 크고 (조건3) 파라볼릭이 4봉연속 상승이 아니면 다음봉에서 진입하라는 내용이므로 위3가지 조건이 모두 충족되어야 만 진입합니다. 간단한 예로 조건1과 조건2만 보더라도 종가가 파라볼릭을 상향한 봉에서 di+가 di-보자 작으면 진입할 수 없고 di+가 di-보다 클때까지 기다렸다 들어가게 됩니다. 이용에 참고하시기 바랍니다. 즐거운 하루되세요 > MFJ 님이 쓴 글입니다. > 제목 : 파라볼릭 매수 시 왜 가끔 바로 진입하지 않는지? > 위 차트와 같이 파라볼릭 매수 시에, 가끔보면 파라볼릭이 전환되고 나서 다음봉에 바로 매수 진입이 안되는 경우가 있는데, 저의 식이 잘 못 되었는 지 검증부탁드립니다. 위 그림의 경우도 파라볼릭 전환 후 3봉이 지난 뒤에 매수가 진입이 됩니다. 바로 진입될 때도 있고 경우에 따라 차이가 있습니다. 저의 식을 보시고 무엇 때문에 그런지 확인 좀 부탁드립니다. Input : af(0.01), maxAF(0.15), Period(5), NoEntryTime(144000), StartTime(093000), stoplossPercent(12), trailingstopdrop(5), trailingstopfloor(16), AddPercent(0.1), JiJung(0.01); Var : value(0); value = Sar(af,maxAF); # 매수 If (C > value) && (Diplus(Period) > DiMinus(Period)) && (Time < NoEntryTime) && (Time > StartTime) && !(value > value[1] and value[1] > value[2] and value[2] > value[3] and value[3] > value[4]) Then { Buy("Buy",AtLimit,C-JiJung,1); } # 추가매수 IF CurrentEntries() == 1 and C < EntryPrice()*(1-AddPercent) and C*0.97 > value Then buy("BAdd",AtLimit,C-JiJung,1); # 매수청산 If (C < value) Then { ExitLong("XL",OnClose,CurrentContracts()); } If CurrentContracts() == 1 and (C <= AvgEntryPrice()*0.86) Then { ExitLong("손절",OnClose,CurrentContracts(),DEF); } If CurrentContracts() >= 2 and (C <= AvgEntryPrice()*0.86) Then { ExitLong("합손절",OnClose,CurrentContracts(),DEF); } # 당일청산 if 옵션만기일() == true then { SetStopEndofday(1448); } if 옵션만기일() == false then { SetStopEndofday(1459); }