커뮤니티

피보나치 수식 점검 부탁드립니다.

프로필 이미지
승부사1
2018-06-19 06:40:46
169
글번호 119857
답변완료
아래의 수식에서 추매부분을 수정하고 싶습니다. 도움 주시면 감사하겠습니다. 1) 0.618 매수이후 주가가 흘러내려서 0.618 이하에 있고 3거래일 동안 돌파를 하지 못하면 음봉종가(150000)에 매수를 하되 2회까지 즉, 4거래일째 음봉이면 1회 매수, 5거래일째 또 음봉이면 2회째 매수입니다. 2) 매수포인트중에서 피보나치 0.5와 0.618은 돌파시 매수로 수정 부탁드리겠습니다. 부탁드리겠습니다. - 아 래 - input : n(120),진입금액(3000000),지정일(20180601); var : cnt(0),hh(0),ll(0),rr(0),dd(0),d1(0); if bdate != bdate[1] Then dd = dd+1; if DayHigh(n) > 0 and DayLow(n) > 0 and sdate >= 지정일 Then { hh = DayHigh(1); ll = DayLow(1); for cnt = 1 to n { if DayHigh(cnt) > hh Then hh = DayHigh(cnt); if DayLow(cnt) < ll Then ll = DayHigh(cnt); } rr = (HH-LL); if MarketPosition == 0 and L > hh-rr*0.5 Then Buy("매수_0.5",AtLimit,hh-rr*0.5,Floor(진입금액/C)); if MarketPosition == 1 Then { ExitLong("수익",atlimit,AvgEntryPrice*1.10); if MaxEntries == 1 and L > hh-rr*0.618 Then Buy("매수_0.618",AtLimit,hh-rr*0.618,Floor(진입금액/C)); if CurrentContracts > CurrentContracts and MaxEntries == 1 Then d1 = dd; if dd >= d1+4 and MaxEntries >= 2 and MaxEntries < 4 and stime >= 150000 and stime[1] < 150000 and c < dayopen Then Buy("추매",OnClose,def,Floor(진입금액/C)); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-06-19 11:35:54

안녕하세요 예스스탁입니다. input : n(120),진입금액(3000000),지정일(20180601); var : cnt(0),hh(0),ll(0),rr(0),dd(0),d1(0); if bdate != bdate[1] Then dd = dd+1; if DayHigh(n) > 0 and DayLow(n) > 0 and sdate >= 지정일 Then { hh = DayHigh(1); ll = DayLow(1); for cnt = 1 to n { if DayHigh(cnt) > hh Then hh = DayHigh(cnt); if DayLow(cnt) < ll Then ll = DayHigh(cnt); } rr = (HH-LL); if MarketPosition == 0 and CrossDown(C,hh-rr*0.5) Then Buy("매수_0.5",OnClose,def,Floor(진입금액/C)); if MarketPosition == 1 Then { ExitLong("수익",atlimit,AvgEntryPrice*1.10); if MaxEntries == 1 and CrossDown(C,hh-rr*0.618) Then Buy("매수_0.618",OnClose,def,Floor(진입금액/C)); if CurrentContracts > CurrentContracts and MaxEntries == 1 Then d1 = dd; if dd >= d1+4 and dd <= d1+5 and C < HH-RR*0.618 and MaxEntries >= 2 and MaxEntries < 4 and stime >= 150000 and stime[1] < 150000 and c < dayopen Then Buy("추매",OnClose,def,Floor(진입금액/C)); } } 즐거운 하루되세요 > 승부사1 님이 쓴 글입니다. > 제목 : 피보나치 수식 점검 부탁드립니다. > 아래의 수식에서 추매부분을 수정하고 싶습니다. 도움 주시면 감사하겠습니다. 1) 0.618 매수이후 주가가 흘러내려서 0.618 이하에 있고 3거래일 동안 돌파를 하지 못하면 음봉종가(150000)에 매수를 하되 2회까지 즉, 4거래일째 음봉이면 1회 매수, 5거래일째 또 음봉이면 2회째 매수입니다. 2) 매수포인트중에서 피보나치 0.5와 0.618은 돌파시 매수로 수정 부탁드리겠습니다. 부탁드리겠습니다. - 아 래 - input : n(120),진입금액(3000000),지정일(20180601); var : cnt(0),hh(0),ll(0),rr(0),dd(0),d1(0); if bdate != bdate[1] Then dd = dd+1; if DayHigh(n) > 0 and DayLow(n) > 0 and sdate >= 지정일 Then { hh = DayHigh(1); ll = DayLow(1); for cnt = 1 to n { if DayHigh(cnt) > hh Then hh = DayHigh(cnt); if DayLow(cnt) < ll Then ll = DayHigh(cnt); } rr = (HH-LL); if MarketPosition == 0 and L > hh-rr*0.5 Then Buy("매수_0.5",AtLimit,hh-rr*0.5,Floor(진입금액/C)); if MarketPosition == 1 Then { ExitLong("수익",atlimit,AvgEntryPrice*1.10); if MaxEntries == 1 and L > hh-rr*0.618 Then Buy("매수_0.618",AtLimit,hh-rr*0.618,Floor(진입금액/C)); if CurrentContracts > CurrentContracts and MaxEntries == 1 Then d1 = dd; if dd >= d1+4 and MaxEntries >= 2 and MaxEntries < 4 and stime >= 150000 and stime[1] < 150000 and c < dayopen Then Buy("추매",OnClose,def,Floor(진입금액/C)); } }