커뮤니티

수식 문의 드립니다

프로필 이미지
푸른
2022-06-16 10:17:22
1151
글번호 159891
답변완료
input : 익절틱수(150),손절틱수(3); if NextBarSdate != sDate Then { if NextBarOpen < C Then ExitShort ("sx",AtLimit,C); if NextBarOpen > C Then Sell("b",AtLimit,C); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ----------------------------- 수식어 추가입니다. 상기내용의 3틱손절후 위의값+2틱에서 buy전환후 익절 120틱의 수식어를 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-06-16 14:01:51

안녕하세요 예스스탁입니다. input : 익절틱수(150),손절틱수(3); if NextBarSdate != sDate Then { if NextBarOpen < C Then ExitShort ("sx",AtLimit,C); if NextBarOpen > C Then Sell("s",AtLimit,C); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); if NextBarSdate == sDate and MarketPosition(1) == -1 and IsExitName("StopLoss",1) == true Then Buy("b",AtStop,ExitPrice(1)+PriceScale*2); 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 수식 문의 드립니다 > input : 익절틱수(150),손절틱수(3); if NextBarSdate != sDate Then { if NextBarOpen < C Then ExitShort ("sx",AtLimit,C); if NextBarOpen > C Then Sell("b",AtLimit,C); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ----------------------------- 수식어 추가입니다. 상기내용의 3틱손절후 위의값+2틱에서 buy전환후 익절 120틱의 수식어를 부탁드립니다.