커뮤니티

시스템 시간 오류조정

프로필 이미지
조민철
2014-09-25 09:36:18
172
글번호 78809
답변완료
항상 감사드립니다 아래 시스템 시간설정의 오류를 수정하고 싶습니다 input : 시작시간(210000),끝시간(043000); var : Start(false),entrycnt(0),Bcond(false),Scond(false); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{ Start = True; entrycnt = entrycnt+1; } if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then Start = false; if Start == true and BarsSinceExit(1) == 1 Then{ if MarketPosition(1) == 1 and ExitPrice(1) >= EntryPrice(1)+PriceScale*50 Then Start == false; if MarketPosition(1) == 1 and ExitPrice(1) <= EntryPrice(1)-PriceScale*50 Then Start == false; } Bcond = var10==1 and var20==1 and var13==1 and c>var48[25] and macdv>macds and upAroon > DnAroon; Scond = var10 == -1 and var20==-1 and var13==-1 and c<var48[25] and macdv<macds and upAroon < DnAroon ; if Start == true and Bcond == true and Bcond[1] == False Then{ if !(MarketPosition == -1 and C <= EntryPrice-PriceScale*50) Then buy("B1"); if MarketPosition == -1 and C <= EntryPrice-PriceScale*50 Then ExitShort("sx"); } if Start == true and Scond == true and Scond[1] == False Then { if !(MarketPosition == 1 and C <= EntryPrice+PriceScale*50) Then sell("S1"); if MarketPosition == 1 and C >= EntryPrice+PriceScale*50 Then ExitLong("bx"); } 1.위시스템에서 익절조건삭제후 시간만 적용시 아래와 같이 적용하면 되는지?(따로작성요망) -21:00 이후에 발생하는 첫진입신호부터 적용 -정상적인 신호는 20시에 매도신호가 나와서 21:30에 매수신호로 바뀌는데 현재 시스템은 여러조건이 적용되다보니 21:10에 매도진입으로 나옵니다 위사항을 분석해보니 정상적인신호는 매도신호발생후 다음조건충족시까지 매수신호가 발생하지 않는데 아래시스템은 20시에 매도조건발생후 매도조건이 잠시 없어졌다가 매도신호 조건이 21:10에 다시 발생하다보니 신호가 나오는것 같습니다 이를 바로잡을수는 없는지요... input : 시작시간(210000),끝시간(043000); var : Start(false),entrycnt(0),Bcond(false),Scond(false); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{ Start = True; entrycnt = entrycnt+1; } if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then Start = false; Bcond = var10==1 and var20==1 and var13==1 and c>var48[25] and macdv>macds and upAroon > DnAroon; Scond = var10==-1 and var20==-1 and var13==-1 and c<var48[25] and macdv<macds and upAroon < DnAroon ; if Start == true and Bcond == true and Bcond[1] == False Then buy("B1"); if Start == true and Scond == true and Scond[1] == False Then { sell("S1"); 2.위의 시스템에서 매수/매도신호 진입후 청산이익이 50틱이상이 발생하면 청산후 시스템종료 시스템가동시간안에 청산이익이 한번이라도 50틱발생하면 시스템종료 매수매도진입신호가 반복해서 나와도 청산이익이 50틱을 만족하지 못하면 시스템가동 지금위의식은 계속 진입이 되는것 같습니다 (시스템 따로 작성해주시기 바랍니다) 3.제 1 시스템은 주챠트를 200틱으로 타주기챠트를 1분으로하여 200틱에서 신호가발생 제 2 시스템은 200틱 챠트에서 신호가 발생 제1시스템 200틱챠트에서 신호가발생하고 제2시스템 200틱챠트에서 신호가 발생할시 발생봉시간차가 5개봉이내일때 매수(b1)/매도(s1)진입 제2시스템 200틱챠트에서 신호가발생하고 제1시스템 200틱챠트에서 신호가 발생할시 발생봉시간차가 5개봉이내일때 매수(b2)/매도(s2)진입 이런조건으로 시스템작성시 타주기 셋팅을 어떻게 하나요(가능한가요) 감사합니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-09-25 13:26:45

> 조민철 님이 쓴 글입니다. > 제목 : 시스템 시간 오류조정 > 항상 감사드립니다 아래 시스템 시간설정의 오류를 수정하고 싶습니다 input : 시작시간(210000),끝시간(043000); var : Start(false),entrycnt(0),Bcond(false),Scond(false); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{ Start = True; entrycnt = entrycnt+1; } if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then Start = false; if Start == true and BarsSinceExit(1) == 1 Then{ if MarketPosition(1) == 1 and ExitPrice(1) >= EntryPrice(1)+PriceScale*50 Then Start == false; if MarketPosition(1) == 1 and ExitPrice(1) <= EntryPrice(1)-PriceScale*50 Then Start == false; } Bcond = var10==1 and var20==1 and var13==1 and c>var48[25] and macdv>macds and upAroon > DnAroon; Scond = var10 == -1 and var20==-1 and var13==-1 and c<var48[25] and macdv<macds and upAroon < DnAroon ; if Start == true and Bcond == true and Bcond[1] == False Then{ if !(MarketPosition == -1 and C <= EntryPrice-PriceScale*50) Then buy("B1"); if MarketPosition == -1 and C <= EntryPrice-PriceScale*50 Then ExitShort("sx"); } if Start == true and Scond == true and Scond[1] == False Then { if !(MarketPosition == 1 and C <= EntryPrice+PriceScale*50) Then sell("S1"); if MarketPosition == 1 and C >= EntryPrice+PriceScale*50 Then ExitLong("bx"); } 1.위시스템에서 익절조건삭제후 시간만 적용시 아래와 같이 적용하면 되는지?(따로작성요망) -21:00 이후에 발생하는 첫진입신호부터 적용 -정상적인 신호는 20시에 매도신호가 나와서 21:30에 매수신호로 바뀌는데 현재 시스템은 여러조건이 적용되다보니 21:10에 매도진입으로 나옵니다 위사항을 분석해보니 정상적인신호는 매도신호발생후 다음조건충족시까지 매수신호가 발생하지 않는데 아래시스템은 20시에 매도조건발생후 매도조건이 잠시 없어졌다가 매도신호 조건이 21:10에 다시 발생하다보니 신호가 나오는것 같습니다 이를 바로잡을수는 없는지요... input : 시작시간(210000),끝시간(043000); var : Start(false),entrycnt(0),Bcond(false),Scond(false); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{ Start = True; entrycnt = entrycnt+1; } if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then Start = false; Bcond = var10==1 and var20==1 and var13==1 and c>var48[25] and macdv>macds and upAroon > DnAroon; Scond = var10==-1 and var20==-1 and var13==-1 and c<var48[25] and macdv<macds and upAroon < DnAroon ; if Start == true and Bcond == true and Bcond[1] == False Then buy("B1"); if Start == true and Scond == true and Scond[1] == False Then { sell("S1"); 2.위의 시스템에서 매수/매도신호 진입후 청산이익이 50틱이상이 발생하면 청산후 시스템종료 시스템가동시간안에 청산이익이 한번이라도 50틱발생하면 시스템종료 매수매도진입신호가 반복해서 나와도 청산이익이 50틱을 만족하지 못하면 시스템가동 지금위의식은 계속 진입이 되는것 같습니다 (시스템 따로 작성해주시기 바랍니다) 3.제 1 시스템은 주챠트를 200틱으로 타주기챠트를 1분으로하여 200틱에서 신호가발생 제 2 시스템은 200틱 챠트에서 신호가 발생 제1시스템 200틱챠트에서 신호가발생하고 제2시스템 200틱챠트에서 신호가 발생할시 발생봉시간차가 5개봉이내일때 매수(b1)/매도(s1)진입 제2시스템 200틱챠트에서 신호가발생하고 제1시스템 200틱챠트에서 신호가 발생할시 발생봉시간차가 5개봉이내일때 매수(b2)/매도(s2)진입 이런조건으로 시스템작성시 타주기 셋팅을 어떻게 하나요(가능한가요) 감사합니다