커뮤니티

추가부탁드립니다.

프로필 이미지
대구어린울프
2020-06-12 14:59:18
2187
글번호 139799
답변완료
안녕하세요? 아래수식에서 아래내용을 넣어서 직접 수정해보았으나, 잘되던게 아예거래가없어져버리고 잘되지가않네요.... 수정부탁드립니다. 1)하루 매매횟수 추가 (외부변수) 2)이평선2가지 추가 (외부변수) --> 정배열에서 매도진입, 역배열에서 매수진입 부탁드립니다. 감사합니다. input : 양봉몸통길이(5),음봉몸통길이(5),도지봉수(3); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); if MarketPosition == 0 and C == O+양봉몸통길이*PriceScale and countif(C==O,도지봉수)[1] == 도지봉수 then buy(); if MarketPosition == 0 and C == O-음봉몸통길이*PriceScale and countif(C==O,도지봉수)[1] == 도지봉수 then sell();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-06-12 16:16:30

안녕하세요 예스스탁입니다. input : 양봉몸통길이(5),음봉몸통길이(5),도지봉수(3),P1(5),P2(20); input : 익절틱수(50),손절틱수(50),당일진입횟수(3); var : entry(0); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); var1 = ma(C,p1); var2 = ma(c,p2); if bdate != bdate[1] Then entry = 0; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or ( MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if entry < 당일진입횟수 then { if MarketPosition == 0 and C == O+양봉몸통길이*PriceScale and countif(C==O,도지봉수)[1] == 도지봉수 and var1 < var2 then buy(); if MarketPosition == 0 and C == O-음봉몸통길이*PriceScale and countif(C==O,도지봉수)[1] == 도지봉수 and var1 > var2 then sell(); } 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 추가부탁드립니다. > 안녕하세요? 아래수식에서 아래내용을 넣어서 직접 수정해보았으나, 잘되던게 아예거래가없어져버리고 잘되지가않네요.... 수정부탁드립니다. 1)하루 매매횟수 추가 (외부변수) 2)이평선2가지 추가 (외부변수) --> 정배열에서 매도진입, 역배열에서 매수진입 부탁드립니다. 감사합니다. input : 양봉몸통길이(5),음봉몸통길이(5),도지봉수(3); input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); if MarketPosition == 0 and C == O+양봉몸통길이*PriceScale and countif(C==O,도지봉수)[1] == 도지봉수 then buy(); if MarketPosition == 0 and C == O-음봉몸통길이*PriceScale and countif(C==O,도지봉수)[1] == 도지봉수 then sell();