커뮤니티

시스템식 수정

프로필 이미지
조민철
2013-04-06 21:24:30
221
글번호 61752
답변완료

첨부 이미지

항상감사드립니다 아래식으로 시스템을 적용해&#48419;는데 원하는 결과나 나오질않네요 유로선물에서는 틱챠트와 분봉을 따로 설정해야 하나요 저번에 답변받은 자료입니다(질문번호 29625) 안녕하세요 예스스탁입니다. 1. var : count(0); if stime == 070000 or (stime > 070000 and stime[1] < 070000) Then count = 0; if stime >= 070000 or stime <= 060000 Then{ if MarketPosition != 0 and MarketPosition[1] != MarketPosition[1] Then count = count+1; } if count < 1 and var18 > var18[1] and macdv>macds then buy("B1"); 아래는 제가 시스템식을 적용해보았습니다(첨부파일참조) 답변내용데로 작성햇는데 첨부챠트를 보면 익절(12틱)후 계속해서 연달아 신호가 발생합니다 *** 작성식 *** VAR: Length1(200),Length2(500),Length3(1212),Period(23),MACDP1(60),MACDP2(130),MACDP3(9), count(0); Variables: TLen1(0),TRIma1(0),TLen2(0),TRIma2(0),TLen3(0),TRIma3(0),MACDV(0),MACDS(0); /*************************/ /**** 매매횟수 제한 *******/ /**************************/ if stime == 070000 or (stime > 070000 and stime[1] < 070000) Then count = 0; if stime >= 070000 or stime <= 060000 Then{ if MarketPosition != 0 and MarketPosition[1] != MarketPosition[1] Then count = count+1; } ## 매수/매수청산 ## if (var19 >= var17+PriceScale*10) Then{ if count < 1 and var18 > var18[1] and c>var23 and (var23>var53) and (var53>var63) and macdv>macds and c>var1 then buy("B1"); if MarketPosition == 1 and CrossDown(c,var21) and macdv<macds Then exitlong("eB1"); ## 매도/매도청산 ## if count < 1 and var18 < var18[1] and c<var21 and (var21<var51) and (var51<var61) and macdv<macds and c<var1 then sell("S1"); if MarketPosition == -1 and crossup(c,var23) and macdv>macds Then exitshort("eS1"); } /**********************************/ /********* 익절 (12틱)************/ /**********************************/ if MarketPosition == 1 Then exitlong("bx",Atlimit,EntryPrice+PriceScale*12); if MarketPosition == -1 Then ExitShort("sx",Atlimit,EntryPrice-PriceScale*12); 질문1) 위시스템을 매매제한 1회로 수정해주세요 질문2) 아래조건식은 현재가(종가기준)가 var23을 상향돌파시 매도청산식입니다 if MarketPosition == -1 and crossup(c,var23) and macdv>macds Then exitshort("eS1"); 유로선물의 1분봉은 장대봉이 많이 출현해서 위식을 현재가 종가기준의 매도청산이 아닌 조건만족시로 바꿀수 있나요 var23을 돌파한다면 청산,,,(종가는 돌파하지 못하더라도) 질문3)유로선물을 틱챠트에서 매매하면 장종료후 다시 부팅하면 챠트및 관련지표가 바뀌어져 매매신호가 다르게 나옵니다 매매신호를 그대로 유지할수 없는가요 질문4) 유로선물에 적용된 시스템식을 S&P 500 미니선물에 적용해보니 매매신호가 발생하지 않습니다/해결방법은 ,,, 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-04-08 11:39:39

안녕하세요 예스스탁입니다. 1. 진입횟수 카운트 세는 부분이 잘못되어 있었습니다. MarketPosition[1] != MarketPosition[1] 가 아닌 MarketPosition != MarketPosition[1] 입니다. 아래내용으로 수정하시면 됩니다. if stime >= 070000 or stime <= 060000 Then{ if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then count = count+1; } 2. 해당 내용은 가능하지 가능하지 않습니다. 3. 실시간 트레이딩 차트에는 최대 5000개봉만 제공됩니다. 장종료후 다시 차트를 여시면 현재시점으로 5000개봉만 조회되므로 봉의 시작시점에서 차이가 발생합니다. 즉 조회된 데이터의 구간이 차이가 발생하는 부분이라 따로 처리가 될수 없습니다. 4. 해당 내용은 작성하셔서 적용한 식 내용을 보아야 알 수 있습니다. 일반적인 식(기본제공되는 시스템식)을 적용해 보시면 정상적으로 신호가 모두 발생합니다. 즐거운 하루되세요 > 조민철 님이 쓴 글입니다. > 제목 : 시스템식 수정 > 항상감사드립니다 아래식으로 시스템을 적용해&#48419;는데 원하는 결과나 나오질않네요 유로선물에서는 틱챠트와 분봉을 따로 설정해야 하나요 저번에 답변받은 자료입니다(질문번호 29625) 안녕하세요 예스스탁입니다. 1. var : count(0); if stime == 070000 or (stime > 070000 and stime[1] < 070000) Then count = 0; if stime >= 070000 or stime <= 060000 Then{ if MarketPosition != 0 and MarketPosition[1] != MarketPosition[1] Then count = count+1; } if count < 1 and var18 > var18[1] and macdv>macds then buy("B1"); 아래는 제가 시스템식을 적용해보았습니다(첨부파일참조) 답변내용데로 작성햇는데 첨부챠트를 보면 익절(12틱)후 계속해서 연달아 신호가 발생합니다 *** 작성식 *** VAR: Length1(200),Length2(500),Length3(1212),Period(23),MACDP1(60),MACDP2(130),MACDP3(9), count(0); Variables: TLen1(0),TRIma1(0),TLen2(0),TRIma2(0),TLen3(0),TRIma3(0),MACDV(0),MACDS(0); /*************************/ /**** 매매횟수 제한 *******/ /**************************/ if stime == 070000 or (stime > 070000 and stime[1] < 070000) Then count = 0; if stime >= 070000 or stime <= 060000 Then{ if MarketPosition != 0 and MarketPosition[1] != MarketPosition[1] Then count = count+1; } ## 매수/매수청산 ## if (var19 >= var17+PriceScale*10) Then{ if count < 1 and var18 > var18[1] and c>var23 and (var23>var53) and (var53>var63) and macdv>macds and c>var1 then buy("B1"); if MarketPosition == 1 and CrossDown(c,var21) and macdv<macds Then exitlong("eB1"); ## 매도/매도청산 ## if count < 1 and var18 < var18[1] and c<var21 and (var21<var51) and (var51<var61) and macdv<macds and c<var1 then sell("S1"); if MarketPosition == -1 and crossup(c,var23) and macdv>macds Then exitshort("eS1"); } /**********************************/ /********* 익절 (12틱)************/ /**********************************/ if MarketPosition == 1 Then exitlong("bx",Atlimit,EntryPrice+PriceScale*12); if MarketPosition == -1 Then ExitShort("sx",Atlimit,EntryPrice-PriceScale*12); 질문1) 위시스템을 매매제한 1회로 수정해주세요 질문2) 아래조건식은 현재가(종가기준)가 var23을 상향돌파시 매도청산식입니다 if MarketPosition == -1 and crossup(c,var23) and macdv>macds Then exitshort("eS1"); 유로선물의 1분봉은 장대봉이 많이 출현해서 위식을 현재가 종가기준의 매도청산이 아닌 조건만족시로 바꿀수 있나요 var23을 돌파한다면 청산,,,(종가는 돌파하지 못하더라도) 질문3)유로선물을 틱챠트에서 매매하면 장종료후 다시 부팅하면 챠트및 관련지표가 바뀌어져 매매신호가 다르게 나옵니다 매매신호를 그대로 유지할수 없는가요 질문4) 유로선물에 적용된 시스템식을 S&P 500 미니선물에 적용해보니 매매신호가 발생하지 않습니다/해결방법은 ,,, 감사합니다.