커뮤니티

문의드립니다.

프로필 이미지
대구어린울프
2020-09-09 16:42:24
930
글번호 142230
답변완료
안녕하세요? 아래의 수식으로 당일차트만 나오게해서 사용중입니다. 당일만표시를 체크해제하면, 앞에것이 다 나오는데, 당일차트만 나오게해서 보는것과 결과가 다르다보니, 당일차트가 더좋아서 그렇게 사용중입니다. 지나간날들을 당일차트로만 보고싶은데, 변수에 날짜를 넣어서 성능보고서를 확인할수는 없을까요? 된다면 날짜입력할수있도록 넣어주시면 정말 감사하겠습니다. 부탁드립니다. input : 익절틱수(50),손절틱수(50),entrycnt(3); Input : shortPeriod(5), longPeriod(20); var : entry(0); 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; value1 = ema(C, shortPeriod); value2 = ema(C, longPeriod); If MarketPosition == 0 and entry < entrycnt and CrossUP(value1, value2) Then { Buy(); } If MarketPosition == 0 and entry < entrycnt and CrossDown(value1, value2) Then { Sell(); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-09-10 11:17:31

안녕하세요 예스스탁입니다. input : 익절틱수(50),손절틱수(50),entrycnt(3),ndate(202001116); Input : shortPeriod(5), longPeriod(20); var : entry(0); 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; value1 = ema(C, shortPeriod); value2 = ema(C, longPeriod); If sDate == ndate and MarketPosition == 0 and entry < entrycnt and CrossUP(value1, value2) Then { Buy(); } If sDate == ndate and MarketPosition == 0 and entry < entrycnt and CrossDown(value1, value2) Then { Sell(); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 문의드립니다. > 안녕하세요? 아래의 수식으로 당일차트만 나오게해서 사용중입니다. 당일만표시를 체크해제하면, 앞에것이 다 나오는데, 당일차트만 나오게해서 보는것과 결과가 다르다보니, 당일차트가 더좋아서 그렇게 사용중입니다. 지나간날들을 당일차트로만 보고싶은데, 변수에 날짜를 넣어서 성능보고서를 확인할수는 없을까요? 된다면 날짜입력할수있도록 넣어주시면 정말 감사하겠습니다. 부탁드립니다. input : 익절틱수(50),손절틱수(50),entrycnt(3); Input : shortPeriod(5), longPeriod(20); var : entry(0); 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; value1 = ema(C, shortPeriod); value2 = ema(C, longPeriod); If MarketPosition == 0 and entry < entrycnt and CrossUP(value1, value2) Then { Buy(); } If MarketPosition == 0 and entry < entrycnt and CrossDown(value1, value2) Then { Sell(); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);