커뮤니티

시스템질문

프로필 이미지
곽민수
2016-05-02 23:43:04
150
글번호 97658
답변완료
input : P(20),시작시간(15000),끝시간(0),목표수익틱수(10); var : T(0),Tcond(false); var1 = ma(C,P); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then Tcond = true; if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then{ Tcond = false; exitlong("bx"); ExitShort("sx"); } if L > var1 Then T = 1; if H < var1 Then T = -1; if Tcond == true then{ if T == 1 and T[1] == -1 Then Buy(); if T == -1 and T[1] == 1 Then Sell(); if MarketPosition == 1 Then exitlong("매수10틱청",AtStop,EntryPrice+PriceScale*목표수익틱수); if MarketPosition == -1 Then ExitShort("매도10틱청",AtStop,EntryPrice-PriceScale*목표수익틱수); } 이수식에서 시간설정.목표수익틱수 삭제한뒤 그냥 쭈욱 24시간 매수 매도만 가능한 수식좀 부탁드릴게요
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-05-03 13:46:34

안녕하세요 예스스탁입니다. input : P(20),시작시간(15000),끝시간(0),목표수익틱수(10); var : T(0); var1 = ma(C,P); if L > var1 Then T = 1; if H < var1 Then T = -1; if T == 1 and T[1] == -1 Then Buy(); if T == -1 and T[1] == 1 Then Sell(); 즐거운 하루되세요 > 곽민수 님이 쓴 글입니다. > 제목 : 시스템질문 > input : P(20),시작시간(15000),끝시간(0),목표수익틱수(10); var : T(0),Tcond(false); var1 = ma(C,P); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then Tcond = true; if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then{ Tcond = false; exitlong("bx"); ExitShort("sx"); } if L > var1 Then T = 1; if H < var1 Then T = -1; if Tcond == true then{ if T == 1 and T[1] == -1 Then Buy(); if T == -1 and T[1] == 1 Then Sell(); if MarketPosition == 1 Then exitlong("매수10틱청",AtStop,EntryPrice+PriceScale*목표수익틱수); if MarketPosition == -1 Then ExitShort("매도10틱청",AtStop,EntryPrice-PriceScale*목표수익틱수); } 이수식에서 시간설정.목표수익틱수 삭제한뒤 그냥 쭈욱 24시간 매수 매도만 가능한 수식좀 부탁드릴게요