커뮤니티

조건 추가 부탁드립니다.

프로필 이미지
쌀사비팔
2015-02-16 19:36:44
113
글번호 83268
답변완료
아래식에 진입조건 한가지 추가해 주세요. 현재식은 진입 가격이 피봇 기준선 +1틱 이하로 하락시 진입인데요. -진입은 최소한 전일 종가대비 -3%이하로 하락시 진입 (즉, 피봇 기준선이 전일 종가대비 0%~-3%일 때에는 피봇기준선 +1틱에서 진입하지 않고, 전일 종가대비 -3%까지 하락하면 진입) ==================================== var : cnt(0),count(0); Var : Pivot(0),R1(0),R2(0),S1(0),S2(0); var : xVol1(0),xvol2(0); Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3; R1 = 2*Pivot-DayLow(1); R2 = Pivot+DayHigh(1)-DayLow(1); S1 = 2*Pivot-DayHigh(1); S2 = Pivot-DayHigh(1)+DayLow(1); count = 0; for cnt = 0 to 20{ if EntryDate(cnt) == sdate Then count = count+1; } if stime >= 090000 and stime < 093000 and count < 1 and dayhigh < dayopen*1.04 and DayVolume <= DayVolume(1)*0.30 Then{ if dayopen >= DayClose(1)*0.98 and dayopen < DayClose(1)*1.06 Then buy("b1",AtLimit,Pivot+PriceScale*3); if dayopen >= DayClose(1)*1.06 Then buy("b2",atlimit,DayClose(1)); } if MarketPosition == 1 Then{ if CodeCategoryEx == 11 and BasePrice < 50000 Then{ xvol1 = int(int(CurrentContracts*(1/3))/10)*10; xvol2 = int(int(CurrentContracts*(1/2))/10)*10; } Else{ xvol1 = int(CurrentContracts*(1/3)); xvol2 = int(CurrentContracts*(1/2)); } exitlong("bp1",atlimit,EntryPrice*1.05,"",Xvol1,1); exitlong("bp2",atlimit,EntryPrice*1.065,"",Xvol2,1); exitlong("bp3",atlimit,EntryPrice*1.08); if Highest(H,BarsSinceEntry) >= EntryPrice*1.05 Then exitlong("btr",AtStop,highest(H,BarsSinceEntry)-(highest(H,BarsSinceEntry)-EntryPrice)*0.5); exitlong("bl",AtStop,EntryPrice*0.955); if stime == 100000 and DayVolume >= DayVolume(1)*0.8 Then ExitLong("bx"); if sdate == EntryDate and stime >= 103000 Then ExitLong("bx1",AtLimit,EntryPrice*1.015); } SetStopEndofday(140000);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-02-17 09:03:21

안녕하세요 예스스탁입니다. var : cnt(0),count(0); Var : Pivot(0),R1(0),R2(0),S1(0),S2(0); var : xVol1(0),xvol2(0); Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3; R1 = 2*Pivot-DayLow(1); R2 = Pivot+DayHigh(1)-DayLow(1); S1 = 2*Pivot-DayHigh(1); S2 = Pivot-DayHigh(1)+DayLow(1); count = 0; for cnt = 0 to 20{ if EntryDate(cnt) == sdate Then count = count+1; } if stime >= 090000 and stime < 093000 and count < 1 and dayhigh < dayopen*1.04 and DayVolume <= DayVolume(1)*0.30 Then{ if dayopen >= DayClose(1)*0.98 and dayopen < DayClose(1)*1.06 Then{ if Pivot <= DayClose(1) and Pivot > DayClose(1)*0.97 Then buy("b11",atlimit,DayClose(1)*0.97); Else buy("b12",AtLimit,Pivot+PriceScale*3); } if dayopen >= DayClose(1)*1.06 Then buy("b2",atlimit,DayClose(1)); } if MarketPosition == 1 Then{ if CodeCategoryEx == 11 and BasePrice < 50000 Then{ xvol1 = int(int(CurrentContracts*(1/3))/10)*10; xvol2 = int(int(CurrentContracts*(1/2))/10)*10; } Else{ xvol1 = int(CurrentContracts*(1/3)); xvol2 = int(CurrentContracts*(1/2)); } exitlong("bp1",atlimit,EntryPrice*1.05,"",Xvol1,1); exitlong("bp2",atlimit,EntryPrice*1.065,"",Xvol2,1); exitlong("bp3",atlimit,EntryPrice*1.08); if Highest(H,BarsSinceEntry) >= EntryPrice*1.05 Then exitlong("btr",AtStop,highest(H,BarsSinceEntry)-(highest(H,BarsSinceEntry)-EntryPrice)*0.5); exitlong("bl",AtStop,EntryPrice*0.955); if stime == 100000 and DayVolume >= DayVolume(1)*0.8 Then ExitLong("bx"); if sdate == EntryDate and stime >= 103000 Then ExitLong("bx1",AtLimit,EntryPrice*1.015); } SetStopEndofday(140000); 즐거운 하루되세요 > 쌀사비팔 님이 쓴 글입니다. > 제목 : 조건 추가 부탁드립니다. > 아래식에 진입조건 한가지 추가해 주세요. 현재식은 진입 가격이 피봇 기준선 +1틱 이하로 하락시 진입인데요. -진입은 최소한 전일 종가대비 -3%이하로 하락시 진입 (즉, 피봇 기준선이 전일 종가대비 0%~-3%일 때에는 피봇기준선 +1틱에서 진입하지 않고, 전일 종가대비 -3%까지 하락하면 진입) ==================================== var : cnt(0),count(0); Var : Pivot(0),R1(0),R2(0),S1(0),S2(0); var : xVol1(0),xvol2(0); Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3; R1 = 2*Pivot-DayLow(1); R2 = Pivot+DayHigh(1)-DayLow(1); S1 = 2*Pivot-DayHigh(1); S2 = Pivot-DayHigh(1)+DayLow(1); count = 0; for cnt = 0 to 20{ if EntryDate(cnt) == sdate Then count = count+1; } if stime >= 090000 and stime < 093000 and count < 1 and dayhigh < dayopen*1.04 and DayVolume <= DayVolume(1)*0.30 Then{ if dayopen >= DayClose(1)*0.98 and dayopen < DayClose(1)*1.06 Then buy("b1",AtLimit,Pivot+PriceScale*3); if dayopen >= DayClose(1)*1.06 Then buy("b2",atlimit,DayClose(1)); } if MarketPosition == 1 Then{ if CodeCategoryEx == 11 and BasePrice < 50000 Then{ xvol1 = int(int(CurrentContracts*(1/3))/10)*10; xvol2 = int(int(CurrentContracts*(1/2))/10)*10; } Else{ xvol1 = int(CurrentContracts*(1/3)); xvol2 = int(CurrentContracts*(1/2)); } exitlong("bp1",atlimit,EntryPrice*1.05,"",Xvol1,1); exitlong("bp2",atlimit,EntryPrice*1.065,"",Xvol2,1); exitlong("bp3",atlimit,EntryPrice*1.08); if Highest(H,BarsSinceEntry) >= EntryPrice*1.05 Then exitlong("btr",AtStop,highest(H,BarsSinceEntry)-(highest(H,BarsSinceEntry)-EntryPrice)*0.5); exitlong("bl",AtStop,EntryPrice*0.955); if stime == 100000 and DayVolume >= DayVolume(1)*0.8 Then ExitLong("bx"); if sdate == EntryDate and stime >= 103000 Then ExitLong("bx1",AtLimit,EntryPrice*1.015); } SetStopEndofday(140000);