커뮤니티

수정 부탁드립니다.

프로필 이미지
대구어린울프
2020-10-19 00:55:14
576
글번호 143186
답변완료
안녕하세요? 수정하고 싶은 부분이 있어 문의 드립니다. 아래수식의 진입은 현재, 정배열에서 음봉에 매도(진입음봉 몸통길이 틱수 변수) 역배열에서 양봉에 매수(진입양봉 몸통길이 틱수 변수) 이것을 다음과 같이 수정하고 싶습니다. 정배열에서 양봉+음봉+음봉 (진입음봉 몸통길이 틱수 변수) 이 연달아 나올시 매도. 역배열에서 음봉+양봉+양봉 (진입양봉 몸통길이 틱수 변수) 이 연달아 나올시 매수. 부탁드립니다. 감사합니다. input : P1(5),P2(20),n(3),양봉틱수(3),음봉틱수(3); var : entry(0); if Bdate != Bdate[1] Then entry = 0; var1 = ma(C,P1); var2 = ma(C,P2); if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if entry < n Then { if MarketPosition == 0 and C == O+양봉틱수*PriceScale and var1 < Var2 then Buy(); if MarketPosition == 0 and C == O-음봉틱수*PriceScale and var1 > Var2 then Sell(); } input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-10-20 13:41:23

안녕하세요 예스스탁입니다. input : P1(5),P2(20),n(3),양봉틱수(3),음봉틱수(3); var : entry(0); if Bdate != Bdate[1] Then entry = 0; var1 = ma(C,P1); var2 = ma(C,P2); if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if entry < n Then { if MarketPosition == 0 and C[2] == O[2]-음봉틱수*PriceScale and C[1] == O[1]+양봉틱수*PriceScale and C[0] == O[0]+양봉틱수*PriceScale and var1 < Var2 then Buy(); if MarketPosition == 0 and C[2] == O[2]+양봉틱수*PriceScale and C[1] == O[1]-음봉틱수*PriceScale and C[0] == O[0]-음봉틱수*PriceScale and var1 > Var2 then Sell(); } input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 수정 부탁드립니다. > 안녕하세요? 수정하고 싶은 부분이 있어 문의 드립니다. 아래수식의 진입은 현재, 정배열에서 음봉에 매도(진입음봉 몸통길이 틱수 변수) 역배열에서 양봉에 매수(진입양봉 몸통길이 틱수 변수) 이것을 다음과 같이 수정하고 싶습니다. 정배열에서 양봉+음봉+음봉 (진입음봉 몸통길이 틱수 변수) 이 연달아 나올시 매도. 역배열에서 음봉+양봉+양봉 (진입양봉 몸통길이 틱수 변수) 이 연달아 나올시 매수. 부탁드립니다. 감사합니다. input : P1(5),P2(20),n(3),양봉틱수(3),음봉틱수(3); var : entry(0); if Bdate != Bdate[1] Then entry = 0; var1 = ma(C,P1); var2 = ma(C,P2); if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if entry < n Then { if MarketPosition == 0 and C == O+양봉틱수*PriceScale and var1 < Var2 then Buy(); if MarketPosition == 0 and C == O-음봉틱수*PriceScale and var1 > Var2 then Sell(); } input : 익절틱수(50),손절틱수(50); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);