커뮤니티

수식 추가 부탁드립니다.

프로필 이미지
쌀사비팔
2014-03-14 11:18:02
165
글번호 73464
답변완료
아래식에 추가해 주십시요. 1분봉 사용, 감사합니다. <매수 +1일에 청산> -매수 익일 시초가 대비 -6%이하로 하락시 다음 첫봉에 청산 ==================================================== input : P(5); var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0),PredayVol(0); Var : Pivot(0),R1(0),R2(0),S1(0),S2(0); Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3; sum = 0; sum1 = 0; for cnt = 0 to P-1{ sum = sum+DayClose(cnt); sum1 = sum1+DayClose(cnt+1); } mav = sum/P; mav1 = sum1/P; dis = c/mav*100; dis1 = DayClose(1)/mav1*100; for cnt = 1 to 1000 { if stime == stime[cnt] and sdate != sdate[cnt] then{ PredayVol = DayVolume[cnt]; cnt = 1001; } } if date != date[1] Then{ Daycnt = daycnt+1; var1 = dayopen/mav*100; } if MarketPosition == 0 and dayopen <= DayClose(1)*1.02 and dayhigh <= dayopen*1.04 and dis1 >= 103 and ExitDate(1) != sdate and DayVolume < PredayVol*1 and var1 > 100 Then{ if stime >= 133000 and stime < 144500 and dis >= 101.5 and dis < 102.5 Then buy("b1",AtMarket); if stime >= 135000 and stime < 135300 and dis >= 101.5 and dis < 103.5 Then buy("b2",AtMarket); if stime >= 141500 and stime < 141800 and dis >= 101.5 and dis < 104.0 Then buy("b3",AtMarket); if stime >= 143500 and stime < 144500 and dis >= 101.5 and dis < 104.5 Then buy("b4",AtMarket); if stime >= 133000 and stime < 144500 and c < Pivot and dis >= 101.5 and dis < 103.5 Then buy("b5",AtMarket); } if MarketPosition == 1 and EntryDate == sdate Then{ if C >= EntryPrice*1.05 Then ExitLong("bx1"); } if MarketPosition == 1 and EntryDate < sdate Then{ if C >= EntryPrice*1.07 then ExitLong("bx2"); if C >= DayClose(1)*1.10 Then Exitlong("bx3"); if stime >= 113000 Then ExitLong("bx"); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-03-14 13:52:30

안녕하세요 예스스탁입니다. bx4라는 청산명으로 추가되었습니다. 매수 다음날 시초가대비 6% 이상 하락하는 종가나오면 청산입니다. input : P(5); var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0),PredayVol(0); Var : Pivot(0),R1(0),R2(0),S1(0),S2(0); Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3; sum = 0; sum1 = 0; for cnt = 0 to P-1{ sum = sum+DayClose(cnt); sum1 = sum1+DayClose(cnt+1); } mav = sum/P; mav1 = sum1/P; dis = c/mav*100; dis1 = DayClose(1)/mav1*100; for cnt = 1 to 1000 { if stime == stime[cnt] and sdate != sdate[cnt] then{ PredayVol = DayVolume[cnt]; cnt = 1001; } } if date != date[1] Then{ Daycnt = daycnt+1; var1 = dayopen/mav*100; } if MarketPosition == 0 and dayopen <= DayClose(1)*1.02 and dayhigh <= dayopen*1.04 and dis1 >= 103 and ExitDate(1) != sdate and DayVolume < PredayVol*1 and var1 > 100 Then{ if stime >= 133000 and stime < 144500 and dis >= 101.5 and dis < 102.5 Then buy("b1",AtMarket); if stime >= 135000 and stime < 135300 and dis >= 101.5 and dis < 103.5 Then buy("b2",AtMarket); if stime >= 141500 and stime < 141800 and dis >= 101.5 and dis < 104.0 Then buy("b3",AtMarket); if stime >= 143500 and stime < 144500 and dis >= 101.5 and dis < 104.5 Then buy("b4",AtMarket); if stime >= 133000 and stime < 144500 and c < Pivot and dis >= 101.5 and dis < 103.5 Then buy("b5",AtMarket); } if MarketPosition == 1 and EntryDate == sdate Then{ if C >= EntryPrice*1.05 Then ExitLong("bx1"); } if MarketPosition == 1 and EntryDate < sdate Then{ if C >= EntryPrice*1.07 then ExitLong("bx2"); if C >= DayClose(1)*1.10 Then Exitlong("bx3"); if stime >= 113000 Then ExitLong("bx"); if C <= dayopen*0.94 Then ExitLong("bx4"); } 즐거운 하루되세요 > 쌀사비팔 님이 쓴 글입니다. > 제목 : 수식 추가 부탁드립니다. > 아래식에 추가해 주십시요. 1분봉 사용, 감사합니다. <매수 +1일에 청산> -매수 익일 시초가 대비 -6%이하로 하락시 다음 첫봉에 청산 ==================================================== input : P(5); var : cnt(0),sum(0),sum1(0),mav(0),mav1(0),dis(0),dis1(0),daycnt(0),PredayVol(0); Var : Pivot(0),R1(0),R2(0),S1(0),S2(0); Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3; sum = 0; sum1 = 0; for cnt = 0 to P-1{ sum = sum+DayClose(cnt); sum1 = sum1+DayClose(cnt+1); } mav = sum/P; mav1 = sum1/P; dis = c/mav*100; dis1 = DayClose(1)/mav1*100; for cnt = 1 to 1000 { if stime == stime[cnt] and sdate != sdate[cnt] then{ PredayVol = DayVolume[cnt]; cnt = 1001; } } if date != date[1] Then{ Daycnt = daycnt+1; var1 = dayopen/mav*100; } if MarketPosition == 0 and dayopen <= DayClose(1)*1.02 and dayhigh <= dayopen*1.04 and dis1 >= 103 and ExitDate(1) != sdate and DayVolume < PredayVol*1 and var1 > 100 Then{ if stime >= 133000 and stime < 144500 and dis >= 101.5 and dis < 102.5 Then buy("b1",AtMarket); if stime >= 135000 and stime < 135300 and dis >= 101.5 and dis < 103.5 Then buy("b2",AtMarket); if stime >= 141500 and stime < 141800 and dis >= 101.5 and dis < 104.0 Then buy("b3",AtMarket); if stime >= 143500 and stime < 144500 and dis >= 101.5 and dis < 104.5 Then buy("b4",AtMarket); if stime >= 133000 and stime < 144500 and c < Pivot and dis >= 101.5 and dis < 103.5 Then buy("b5",AtMarket); } if MarketPosition == 1 and EntryDate == sdate Then{ if C >= EntryPrice*1.05 Then ExitLong("bx1"); } if MarketPosition == 1 and EntryDate < sdate Then{ if C >= EntryPrice*1.07 then ExitLong("bx2"); if C >= DayClose(1)*1.10 Then Exitlong("bx3"); if stime >= 113000 Then ExitLong("bx"); }