커뮤니티

시스템 수식작성 부탁

프로필 이미지
황금의성
2014-02-04 22:28:38
229
글번호 72171
답변완료
아래 조건으로 시스템 트레이딩 수식을 짜주시길 부탁 드립니다. 진입조건 ■ 10분봉을 기준으로/ 시가로부터 0.25% 하락한 라인 아래에서 (종가로) 음봉 형성시 다음 봉 시가에서 숏 진입 ■ 반대로, 시가로부터 0.25% 상승한 라인 위에서 양봉 형성시 다음 봉 시가에서 롱 진입 ■ ■ 타임 필터 아웃 – 2am- 2:50pm 이 시간 동안은 진입하지 않는다. 손절조건 진입가로부터 10틱 손실나면 손절처리 청산조건 20틱 수익 나기전에는 본절 청산 21틱 이상 - 40틱 수익나면 되돌아올 때 7틱 수익으로 청산 41틱 이상 - 60틱 수익나면, 되돌아올 때 수익의 50%선에서 트레일링청산 61틱 이상 수익이 나면, 되돌아올 때 수익의 80% 선에서 트레일링 청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-02-05 10:04:36

안녕하세요 예스스탁입니다. input : Per(0.25); if stime < 20000 or stime > 25000 Then{ if C > dayopen*(1+Per/100) and C > O Then buy("b",AtMarket); if C < dayopen*(1-Per/100) and C < O Then sell("s",AtMarket); } if MarketPosition == 1 Then{ var1 = highest(h,BarsSinceEntry); if var1 <= EntryPrice+PriceScale*20 Then ExitLong("bx1",AtStop,EntryPrice); if var1 >= EntryPrice+PriceScale*21 and var1 <= EntryPrice+PriceScale*40 Then ExitLong("bx2",AtStop,EntryPrice+PriceScale*7); if var1 >= EntryPrice+PriceScale*41 and var1 <= EntryPrice+PriceScale*60 Then ExitLong("bx3",AtStop,EntryPrice+(var1-EntryPrice)*0.5); if var1 >= EntryPrice+PriceScale*61 Then ExitLong("bx4",AtStop,EntryPrice+(var1-EntryPrice)*0.8); } if MarketPosition == -1 Then{ var2 = lowest(L,BarsSinceEntry); if var2 >= EntryPrice-PriceScale*20 Then ExitShort("sx1",AtStop,EntryPrice); if var2 <= EntryPrice-PriceScale*21 and var2 >= EntryPrice-PriceScale*40 Then ExitShort("sx2",AtStop,EntryPrice+PriceScale*7); if var2 <= EntryPrice-PriceScale*41 and var2 >= EntryPrice-PriceScale*60 Then ExitShort("sx3",AtStop,EntryPrice-(EntryPrice-var2)*0.5); if var2 <= EntryPrice-PriceScale*61 Then ExitShort("sx4",AtStop,EntryPrice-(EntryPrice-var2)*0.8); } SetStopLoss(PriceScale*10,PointStop); 즐거운 하루되세요 > 황금의성 님이 쓴 글입니다. > 제목 : 시스템 수식작성 부탁 > 아래 조건으로 시스템 트레이딩 수식을 짜주시길 부탁 드립니다. 진입조건 ■ 10분봉을 기준으로/ 시가로부터 0.25% 하락한 라인 아래에서 (종가로) 음봉 형성시 다음 봉 시가에서 숏 진입 ■ 반대로, 시가로부터 0.25% 상승한 라인 위에서 양봉 형성시 다음 봉 시가에서 롱 진입 ■ ■ 타임 필터 아웃 &#8211; 2am- 2:50pm 이 시간 동안은 진입하지 않는다. 손절조건 진입가로부터 10틱 손실나면 손절처리 청산조건 20틱 수익 나기전에는 본절 청산 21틱 이상 - 40틱 수익나면 되돌아올 때 7틱 수익으로 청산 41틱 이상 - 60틱 수익나면, 되돌아올 때 수익의 50%선에서 트레일링청산 61틱 이상 수익이 나면, 되돌아올 때 수익의 80% 선에서 트레일링 청산