커뮤니티

문의드립니다

프로필 이미지
하늘북
2019-09-06 10:08:23
216
글번호 131782
답변완료
안녕하세요? 수식문의드립니다. 해선이구요 1. 매수 : 음봉의 한봉의 길이가 40틱 이상이면 종가 매수 매도 : 양봉의 한봉의 길이가 40틱 이상이면 종가 매도 2 . 그물망차트(기간 20, 간격5, 개수 5)의 상단위에서 시가와 종가가 위치 했을때 매수진입 그물망차트의 하단아래에서 봉의 시가와 종가가 위치 했을때 매도진입 거래시간은 유럽징 개장 시간인 16:00부터 ~ 04:00까지 총 수익이 50틱 이상이면 거래중지
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-09-06 11:39:33

안녕하세요 예스스탁입니다. 1 if C < O and H-L >= PriceScale*40 Then buy("b"); if C > O and H-L >= PriceScale*40 Then sell("s"); 2 input : 기간(20),간격(5),개수(5); input : starttime(160000),endtime(040000); Input : 당일수익틱수(50),당일손실틱수(50); var : Tcond(false),cnt(0),hh(0),ll(0); Var : N1(0),dayPl(0),당일수익(0),당일손실(0),Xcond(false); Array : mav[100](0); mav[0] = ma(C,기간); hh = mav[0]; ll = mav[0]; for cnt = 1 to 개수-1 { mav[cnt] = ma(C,기간+간격*cnt); if mav[cnt] > hh Then hh = mav[cnt]; if mav[cnt] < ll Then ll = mav[cnt]; } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then { Tcond = false; if MarketPosition == 1 Then ExitLong("bx"); if MarketPosition == -1 Then ExitShort("sx"); } if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; Xcond = false; N1 = NetProfit; } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] and (IsExitName("dbp",1) == true or IsExitName("dbl",1) == true or IsExitName("dsp",1) == true or IsExitName("dsl",1) == true) then Xcond = true; if TotalTrades > TotalTrades[1] and (IsExitName("dbp",1) == true or IsExitName("dbl",1) == true or IsExitName("dsp",1) == true or IsExitName("dsl",1) == true) then Xcond = true; if Tcond == true and Xcond == false then { if mav[개수] > 0 and min(C,O) > HH Then buy(); if mav[개수] > 0 and max(C,O) < LL Then sell(); } if MarketPosition == 1 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); ExitLong("dbl",AtStop,EntryPrice-((당일손실+daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); ExitShort("dsl",AtStop,EntryPrice+((당일손실+daypl)/CurrentContracts)); } 즐거운 하루되세요 > 하늘북 님이 쓴 글입니다. > 제목 : 문의드립니다 > 안녕하세요? 수식문의드립니다. 해선이구요 1. 매수 : 음봉의 한봉의 길이가 40틱 이상이면 종가 매수 매도 : 양봉의 한봉의 길이가 40틱 이상이면 종가 매도 2 . 그물망차트(기간 20, 간격5, 개수 5)의 상단위에서 시가와 종가가 위치 했을때 매수진입 그물망차트의 하단아래에서 봉의 시가와 종가가 위치 했을때 매도진입 거래시간은 유럽징 개장 시간인 16:00부터 ~ 04:00까지 총 수익이 50틱 이상이면 거래중지