커뮤니티

수식어 부탁드립니다

프로필 이미지
푸른
2022-06-14 06:30:09
1154
글번호 159820
답변완료
input : 익절틱수(100),손절틱수(20); if NextBarSdate != sDate Then { if NextBarOpen > C Then ExitShort("sx",AtStop,C); if NextBarOpen < C Then Sell("s",AtStop,C); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ----------------------------------------------------------------- input : 익절틱수(100),손절틱수(20); if NextBarSdate != sDate Then { if NextBarOpen > C Then ExitLong("bx",AtStop,C); if NextBarOpen < C Then Buy("b",AtStop,C); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ------------------------------------------------------------------ 위 2가지 수식어의 진입신호값 n에 주문값은 달리하고자 합니다. buy는 -100틱, sell은 +100틱
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-06-14 11:02:10

안녕하세요 예스스탁입니다. 1 input : 익절틱수(100),손절틱수(20),N(100); if NextBarSdate != sDate Then { if NextBarOpen > C Then ExitShort("sx",AtStop,C); if NextBarOpen < C Then Sell("s",AtLimit,C+PriceScale*N); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 2 input : 익절틱수(100),손절틱수(20),N(100); if NextBarSdate != sDate Then { if NextBarOpen > C Then ExitLong("bx",AtStop,C); if NextBarOpen < C Then Buy("b",AtLimit,C-PriceScale*N); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 수식어 부탁드립니다 > input : 익절틱수(100),손절틱수(20); if NextBarSdate != sDate Then { if NextBarOpen > C Then ExitShort("sx",AtStop,C); if NextBarOpen < C Then Sell("s",AtStop,C); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ----------------------------------------------------------------- input : 익절틱수(100),손절틱수(20); if NextBarSdate != sDate Then { if NextBarOpen > C Then ExitLong("bx",AtStop,C); if NextBarOpen < C Then Buy("b",AtStop,C); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); ------------------------------------------------------------------ 위 2가지 수식어의 진입신호값 n에 주문값은 달리하고자 합니다. buy는 -100틱, sell은 +100틱