커뮤니티

수식추가 부탁드립니다.

프로필 이미지
대구어린울프
2023-12-27 18:28:02
777
글번호 175253
답변완료
안녕하세요? 지금현재 매도진입만 되게 되어있습니다. 반대조건일때 매수도 되게 하고싶습니다. 포지션 보유중일때, 청산후에 신규진입이 되게 하고싶습니다. (매수,매도 모든신호 진입x) 감사합니다. inputs: Length(10), Pval(0.05),당일청산(153000); input : 익절틱수(10), 손절틱수(10), 진입횟수(3); 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 ; if entry < 진입횟수 then Sell("CBI", AtStop, Lowest(Low, Length) - Pval) ; SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopEndofday(당일청산);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-12-28 09:27:58

안녕하세요 예스스탁입니다. inputs: Length(10), Pval(0.05),당일청산(153000); input : 익절틱수(10), 손절틱수(10), 진입횟수(3); 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; if MarketPosition == 0 and entry < 진입횟수 then Sell("S", AtStop, Lowest(Low, Length) - Pval) ; if MarketPosition == 0 and entry < 진입횟수 then Buy("B", AtStop, highest(high, Length) + Pval) ; SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopEndofday(당일청산); 새해 복 많이 받으세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 수식추가 부탁드립니다. > 안녕하세요? 지금현재 매도진입만 되게 되어있습니다. 반대조건일때 매수도 되게 하고싶습니다. 포지션 보유중일때, 청산후에 신규진입이 되게 하고싶습니다. (매수,매도 모든신호 진입x) 감사합니다. inputs: Length(10), Pval(0.05),당일청산(153000); input : 익절틱수(10), 손절틱수(10), 진입횟수(3); 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 ; if entry < 진입횟수 then Sell("CBI", AtStop, Lowest(Low, Length) - Pval) ; SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopEndofday(당일청산);