커뮤니티

문의드립니다.

프로필 이미지
열공이삼삼
2014-01-20 21:20:02
178
글번호 71630
답변완료
안녕하세요 수고하십니다. 3가지 질문사항드릴께요 ^^ 1.게시판에 있는 다비스 박스식을 복사 붙이기 해서 시스템 적용하려니 검증때는 이상이 없는데 지표를 적용하면 프로그램이 멈추고 시스템식을 적용하려니 논리값을 입력해야한다는 오류가 나오네요. 식이 잘못된건지요;; 2.인터넷에서 돌아다니는 시스템식 예제를 복사 붙이기 해서 리포트를 보면 전혀 반대의 결과가 나옵니다. 레포트가 - 수익이네요. 분봉 일봉 봐꾸어도 마찬가지네요. 초보자가 저지르기 쉬운 어떤 설정을 잘못한건지요? 3.시스템식을 작성해서 검증 누른후 예스트레이더에서 적용하려니 시스템이름이 안나옵니다 경로가 변경된건가요?
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-01-21 14:45:56

안녕하세요 예스스탁입니다. 1. 어떤 식을 적용하셨는지 모르겠습니다. 식 올려드립니다. 첨부된 그림과 같이 출력됩니다.' inputs : ShowAll(true); var : BoxTop(0), BoxBtm(0), Ctr(0), BBD(0), BBT(0), EBD(0), EBT(0), UpBand(0), DnBand(0), CurrState(1), TextId(-1), TopId(-1), TopIdP(-1), BtmId(-1), BtmIdP(-1), LSId(-1), LSIdP(-1), RSId(-1), RSIdP(-1), HiFirst(true), LoFirst(false), State1(false), State2(false), State3(false), State4(false), State5(false), DrawBox(false), ValidBox(false), HadBreak(false), NewBox(false); if index == 1 then begin BoxTop = high; BoxBtm = low; State1 = true; BBD = date; BBT = time; end; if NewBox and high > UpBand then begin BBD = date; BBT = time; TL_SetEnd(TopId, BBD, BBT, UpBand); TL_SetEnd(BtmId, BBD, BBt, DnBand); RSIdP = RSId ; RSId = TL_New(BBD, BBT, DnBand, BBD, BBT, UpBand); if ShowAll == false and RSIdP <> -1 then TL_Delete( RSIdP ) ; if HiFirst then TL_SetColor(RSId, yellow); else TL_SetColor(RSId, magenta); NewBox = false; State1 = true; LoFirst = false; HiFirst = true; end; if NewBox and low < DnBand then begin BBD = date; BBT = time; TL_SetEnd(TopId, BBD, BBT, UpBand); TL_SetEnd(BtmId, BBD, BBt, DnBand); RSIdP = RSId; RSId = TL_New(BBD, BBT, DnBand, BBD, BBT, UpBand); if ShowAll == false and RSIdP <> -1 then TL_Delete(RSIdP); if HiFirst then TL_SetColor(RSId, yellow) ; else TL_SetColor(RSId, magenta); NewBox = false; State1 = true; HiFirst = false; LoFirst = true; end; if HiFirst then begin if State4 then begin if high > BoxTop then begin BoxTop = high; State1 = true; State4 = false; CurrState = 1; end else begin if low < BoxBtm then begin State4 = false; State3 = true; BoxBtm = low; CurrState = 3; end else begin State4 = false; State5 = true; CurrState = 5; end; end; end; if State3 then begin if high > BoxTop then begin BoxTop = high; State1 = true; State3 = false; CurrState = 1; end else begin if low < BoxBtm then begin State3 = true; BoxBtm = low; CurrState = 3; end else begin State3 = false; State4 = true; CurrState = 4; end; end; end; if State2 then begin if high > BoxTop then begin BoxTop = high; State1 = true; State2 = false; CurrState = 1; end else begin State2 = false; State3 = true; BoxBtm = low; CurrState = 3; end; end; if State1 then begin if high > BoxTop then begin BoxTop = high; State1 = true; CurrState = 1; end else begin State1 = false; State2 = true; CurrState = 2; end; end; end else begin #{ Using LoFirst } if State4 then begin if low < BoxBtm then begin BoxBtm = low; State1 = true; State4 = false; CurrState = 1; end else begin if high > BoxTop then begin State3 = true; State4 = false; BoxTop = high; CurrState = 3; end else begin State4 = false; State5 = true; CurrState = 5; end; end; end; if State3 then begin if low < BoxBtm then begin BoxBtm = low; State1 = true; State3 = false; CurrState = 1; end else begin if high > BoxTop then begin State3 = true; BoxTop = high; CurrState = 3; end else begin State3 = false; State4 = true; CurrState = 4; end; end; end; if State2 then begin if low < BoxBtm then begin Boxbtm = low; State1 = true; State2 = false; CurrState = 1; end else begin State2 = false; State3 = true; BoxTop = high; CurrState = 3; end; end; if State1 then begin if low < BoxBtm then begin BoxBtm = low; State1 = true; CurrState = 1; end else begin State1 = false; State2 = true; CurrState = 2; end; end; end; #{ END IF HIFIRST OR LOFIRST } if State5 then begin DrawBox = true; EBD = date; EBT = time; end; if DrawBox then begin TopIdP = TopId; BtmIdP = BtmId; LSIdP = LSId; TopId = TL_New(BBD, BBT, BoxTop, EBD, EBT, BoxTop); BtmId = TL_New(BBD, BBT, BoxBtm, EBD, EBT, BoxBtm); LSId = TL_New(BBD, BBT, BoxBtm, BBD, BBT, BoxTop); if ShowAll == false then begin if TopIdP <> -1 then TL_Delete(TopIdP); if BtmIdP <> -1 then TL_Delete(BtmIdP); if LSIdP <> -1 then TL_Delete(LSidP); end; if HiFirst then begin TL_SetColor(TopId, yellow); TL_SetColor(BtmId, yellow); TL_SetColor(LSId, yellow); end else begin TL_SetColor(TopId, magenta); TL_SetColor(BtmId, magenta); TL_SetColor(LSId, magenta); end; State1 = false; State2 = false; State3 = false; State4 = false; State5 = false; DrawBox = false; ValidBox = true; end; if ValidBox then begin UpBand = BoxTop; DnBand = BoxBtm; ValidBox = false; NewBox = true; BoxTop = high; BoxBtm = low; end; if HiFirst then TextId = Text_New(date, time, high * 1.0005, NumToStr(CurrState, 0)); else TextId = Text_New(date, time, low * 0.9995, NumToStr(CurrState, 0)); 2. 시스템 트레이딩 설정창에서 비용/수량탭에서 수수료와 슬리피지를 입력하고 테스트 해 보시기 바랍니다. 수수료는 진입과 청산에 0.0098 슬리피지는 진입과 청산에 0.025 3. 시스템을 작성하고 검증 후에 차트의 시스템 목록에 나오지 않는것은 해당식에 진입이 없을 경우입니다. 시스템은 진입이 있어야 청산이 발생하므로 수식에 buy나 sell이 없으면 목록에는 나오지 않습니다. 즐거운 하루되세요 > 열공이삼삼 님이 쓴 글입니다. > 제목 : 문의드립니다. > 안녕하세요 수고하십니다. 3가지 질문사항드릴께요 ^^ 1.게시판에 있는 다비스 박스식을 복사 붙이기 해서 시스템 적용하려니 검증때는 이상이 없는데 지표를 적용하면 프로그램이 멈추고 시스템식을 적용하려니 논리값을 입력해야한다는 오류가 나오네요. 식이 잘못된건지요;; 2.인터넷에서 돌아다니는 시스템식 예제를 복사 붙이기 해서 리포트를 보면 전혀 반대의 결과가 나옵니다. 레포트가 - 수익이네요. 분봉 일봉 봐꾸어도 마찬가지네요. 초보자가 저지르기 쉬운 어떤 설정을 잘못한건지요? 3.시스템식을 작성해서 검증 누른후 예스트레이더에서 적용하려니 시스템이름이 안나옵니다 경로가 변경된건가요?