커뮤니티

수식작성 부탁드립니다.

프로필 이미지
미수예스
2014-09-12 13:14:36
158
글번호 78481
답변완료
안녕하십니까. 항상 감사드립니다. 1.매수(매도는반대) 10분봉거래 a.조건1 14일(일봉의값) ADX값이 20이상 b.조건2 ADX의 값이 커지는 추세 c.조건3 단기(5일.일봉)-중(20.일일봉)-장기(60일.일봉) 이평선이 정배열 d.조건1.2.3만족후 5봉뒤에서 매수 e.이평선 정배열된 날의 저점에 손절스탑 f.이평선 정배열 무너지면 청산 2.매수(매도는반대) 10분봉거래 a. 조건1 가격이 20지수이평(EMA)과 100단순이평 아래에 있을것 b. 조건2 MACD가 +로 전환된후 5봉이내일것 c. 조건1.2 만족후 가격이 20지수이평(EMA)과 100단순이평을 모두 돌파후 15핍상승 d. 15핍상승한 가격에서 시장가 매수 2계약 e. 이평선 돌파봉의 저점에 손절스탑설정 f. 매수가격 + (매수가격-손절가격)만큼 상승시 1계약 이익청산후 나머지 1계약 손절스탑을 진입가로 수정 g. 가격이 20지수이평(EMA)-15핍에서 이익 트레일링 스탑설정 3.매수(매도는반대) 당일특정시간 분봉거래. a. 전일까지 7거래일 연속 음봉의 조건 만족시 (일봉기준) b. 금일 특정시간(예 120000)이후 분봉기준 양봉이 나올시 2계약 매수진입 c. 진입가 -30핍아래 손절스탑 d. 진입가 +60핍에서 1계약 이익청산후 나머지 1계약 손절스탑을 진입가로 이동 e. 나머지 1계약은 + 120핍의 이익청산 설정 수고하세요
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-09-12 16:29:51

안녕하세요 예스스탁입니다. 1. #N1 진입틱수 #N2 손절틱수 #N3 수익틱수 #N4 트레일링스탑 틱수 input : ADXP(14); var : ADXv(0,data2),mav1(0,data2),mav2(0,data2),mav3(0,data2),bi(0,data1),Si(0,data1); var : Barr(false,data2), Bcond(false,data1),Sarr(false,data2), Scond(false,data1),LL(0,data2),HH(0,data2); ADXv = data2(ADX(ADXP)); mav1 = data2(ma(c,5)); mav2 = data2(ma(c,20)); mav3 = data2(ma(c,60)); Barr = mav1 > mav2 and mav2 > mav3; Sarr = mav1 < mav2 and mav2 < mav3; if Barr == true and Barr[1] == false Then LL = data2(L); if Sarr == true and Sarr[1] == false Then LL = data2(L); Bcond = ADXv > 20 and ADXv > ADXv[1] And barr == true; Scond = ADXv > 20 and ADXv > ADXv[1] And Sarr == true; if Bcond == true and Bcond[1] == false then bi = data1(index); if bi > 0 and data1(index) == bi+5 then buy("b"); if MarketPosition == 1 Then{ ExitLong("bl",AtStop,LL); if Barr == false Then exitlong(); } if Scond == true and Scond[1] == false then Si = data1(index); if Si > 0 and data1(index) == Si+5 then sell("s"); if MarketPosition == -1 Then{ ExitShort("sx",AtStop,HH); if Sarr == false Then ExitShort(); } 2. var1 = ema(c,20); var2 = ma(C,100); var3 = macd(12,26); if crossup(c,var1) Then value1 = 1; if C < var1 Then value1 = -1; if crossup(c,var2) Then value2 = 1; if C < var2 Then value2 = -1; value3 = value1+value2; if value3 == 2 and value3[1] < 2 Then{ value4 = C; value5 = L; } if value3 == 2 Then buy("b",AtStop,value4+PriceScale*15,2); if MarketPosition == 1 Then{ if CurrentContracts == MaxContracts Then{ exitlong("bp1",atlimit,EntryPrice+abs(EntryPrice-value5),"",1,1); exitlong("bx1",AtStop,value5); } if CurrentContracts < MaxContracts Then{ exitlong("bx2",AtStop,EntryPrice); exitlong("btr",AtStop,var1-PriceScale*15); } } if value3 == -2 and value3[1] < -2 Then{ value6 = C; value7 = h; } if value3 == -2 Then sell("s",AtStop,value6-PriceScale*15,2); if MarketPosition == -1 Then{ if CurrentContracts == MaxContracts Then{ ExitShort("sp1",atlimit,EntryPrice-abs(EntryPrice-value7),"",1,1); ExitShort("sx1",AtStop,value7); } if CurrentContracts < MaxContracts Then{ ExitShort("sx2",AtStop,EntryPrice); ExitShort("str",AtStop,var1+PriceScale*15); } } 3. var : cnt(0),count1(0),count2(0); count1 = 0; count2 = 0; for cnt = 1 to 7{ if DayClose(cnt) > dayopen(cnt) Then count1 = count1+1; if DayClose(cnt) < dayopen(cnt) Then count2 = count2+1; } if count2 == 7 and stime >= 120000 and C > O Then buy("b",OnClose,def,2); if count1 == 7 and stime >= 120000 and C < O Then sell("s",OnClose,def,2); if MarketPosition == 1 Then{ if CurrentContracts == MaxContracts Then{ ExitLong("bp1",Atlimit,EntryPrice+PriceScale*60,"",1,1); ExitLong("bl1",AtStop,EntryPrice-PriceScale*30); } if CurrentContracts < MaxContracts Then{ ExitLong("bp2",Atlimit,EntryPrice+PriceScale*120); ExitLong("bl2",AtStop,EntryPrice); } } if MarketPosition == -1 Then{ if CurrentContracts == MaxContracts Then{ ExitShort("sp1",Atlimit,EntryPrice-PriceScale*60,"",1,1); ExitShort("sl1",AtStop,EntryPrice+PriceScale*30); } if CurrentContracts < MaxContracts Then{ ExitShort("sp2",Atlimit,EntryPrice-PriceScale*120); ExitShort("sl2",AtStop,EntryPrice); } } 즐거운 하루되세요 > 미수예스 님이 쓴 글입니다. > 제목 : 수식작성 부탁드립니다. > 안녕하십니까. 항상 감사드립니다. 1.매수(매도는반대) 10분봉거래 a.조건1 14일(일봉의값) ADX값이 20이상 b.조건2 ADX의 값이 커지는 추세 c.조건3 단기(5일.일봉)-중(20.일일봉)-장기(60일.일봉) 이평선이 정배열 d.조건1.2.3만족후 5봉뒤에서 매수 e.이평선 정배열된 날의 저점에 손절스탑 f.이평선 정배열 무너지면 청산 2.매수(매도는반대) 10분봉거래 a. 조건1 가격이 20지수이평(EMA)과 100단순이평 아래에 있을것 b. 조건2 MACD가 +로 전환된후 5봉이내일것 c. 조건1.2 만족후 가격이 20지수이평(EMA)과 100단순이평을 모두 돌파후 15핍상승 d. 15핍상승한 가격에서 시장가 매수 2계약 e. 이평선 돌파봉의 저점에 손절스탑설정 f. 매수가격 + (매수가격-손절가격)만큼 상승시 1계약 이익청산후 나머지 1계약 손절스탑을 진입가로 수정 g. 가격이 20지수이평(EMA)-15핍에서 이익 트레일링 스탑설정 3.매수(매도는반대) 당일특정시간 분봉거래. a. 전일까지 7거래일 연속 음봉의 조건 만족시 (일봉기준) b. 금일 특정시간(예 120000)이후 분봉기준 양봉이 나올시 2계약 매수진입 c. 진입가 -30핍아래 손절스탑 d. 진입가 +60핍에서 1계약 이익청산후 나머지 1계약 손절스탑을 진입가로 이동 e. 나머지 1계약은 + 120핍의 이익청산 설정 수고하세요