커뮤니티

타주기 참조

프로필 이미지
남산굴
2016-02-04 06:30:21
100
글번호 95162
답변완료
타주기 참조 후 신호발생 if c>o and c>highest(c[1],20) and ma(c,9)>ma(c,9)[1] and c>ma(c,9) Then buy(); if c<o and c<lowest(c[1],20) and ma(c,9)<ma(c,9)[1] and c<ma(c,9) Then sell(); 주차트는 120틱 타주기는 10분차트 1.타주기에서 매수발생시 주차트는 매수만(매도일경우청산만),타주기 매도시 매도만 발생(매수시청산만) 2.신호발생 시작시간 설정가능요청, 종료시간은 20틱목표수익청산(신호발생시작시간부터의수익이 20틱이면 강제청산후 모든신호발생억제요청)
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-02-04 14:02:42

안녕하세요 예스스탁입니다. input : 시작시간(90000),끝시간(150000),목표수익틱(20); var : T(0,data2),하루수익(0,data1),NP(0,data1),preNP(0,data1),Xcond(false,data1),dayPL(0,data1); if data2(c>o and c>highest(c[1],20) and ma(c,9)>ma(c,9)[1] and c>ma(c,9)) Then T = 1; if data2(c<o and c<lowest(c[1],20) and ma(c,9)<ma(c,9)[1] and c<ma(c,9)) Then T = -1; NP = NetProfit; 하루수익 = PriceScale*목표수익틱; if data1(stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간)) Then{ preNP = NP[1]; Xcond = false; } daypl - NP-PreNP; if TotalTrades > TotalTrades[1] and (IsExitName("BP",1) or IsExitName("SP",1)) Then Xcond = true; if data1(stime >= 시작시간 and stime < 끝시간 and Xcond == false) then{ if T == 1 Then{ if data1(c>o and c>highest(c[1],20) and ma(c,9)>ma(c,9)[1] and c>ma(c,9)) Then buy(); if data1(c<o and c<lowest(c[1],20) and ma(c,9)<ma(c,9)[1] and c<ma(c,9)) Then ExitLong(); } if T == -1 Then{ if data1(c>o and c>highest(c[1],20) and ma(c,9)>ma(c,9)[1] and c>ma(c,9)) Then ExitShort(); if data1(c<o and c<lowest(c[1],20) and ma(c,9)<ma(c,9)[1] and c<ma(c,9)) Then sell(); } } if MarketPosition == 1 Then ExitLong("BP",AtLimit,EntryPrice+하루수익-daypl); if MarketPosition == -1 Then ExitShort("SP",AtLimit,EntryPrice-하루수익+daypl); 즐거운 하루되세요 > 남산굴 님이 쓴 글입니다. > 제목 : 타주기 참조 > 타주기 참조 후 신호발생 if c>o and c>highest(c[1],20) and ma(c,9)>ma(c,9)[1] and c>ma(c,9) Then buy(); if c<o and c<lowest(c[1],20) and ma(c,9)<ma(c,9)[1] and c<ma(c,9) Then sell(); 주차트는 120틱 타주기는 10분차트 1.타주기에서 매수발생시 주차트는 매수만(매도일경우청산만),타주기 매도시 매도만 발생(매수시청산만) 2.신호발생 시작시간 설정가능요청, 종료시간은 20틱목표수익청산(신호발생시작시간부터의수익이 20틱이면 강제청산후 모든신호발생억제요청)