커뮤니티

문의드립니다.

프로필 이미지
소드노
2025-06-26 07:11:08
134
글번호 192102
답변완료

첨부 이미지

If c > c[100] and c < c[200] then Buy("",atmarket,DEf,1); If c < c[100] and c > c[200] then Sell("",atmarket,DEf,1); var: BBB(0),CCC(0); BBB= highest(low,10); CCC= Lowest(low,10); if barssinceentry >3 and Maxpositionprofit >= (3000/BigPointValue) and Crossdown (C,CCC[1]) Then ExitLong("11",AtMarket); if barssinceentry >3 and Maxpositionprofit >= (3000/BigPointValue) and Crossup(C,BBB[1]) Then ExitShort("22",AtMarket); SetStopLoss(4,PercentStop); /////////////////////////////////////////////////////////////////////////////////// 실버 120분봉 적용 위 수식을 적용했을때 첨부파일에 체크한것처럼 매도 청산후 바로 매도 진입후 연속 청산이 나가는 현상이 있는데 이 부분을 고치기 위해서 "barssinceentry >3" 적용했지만 효과가 없는 것 같습니다. 이부분 보완 가능할까요?? 1. 매도 청산후 재매도 들어가는데 해당봉에 바로 청산되는것 방지
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-06-26 11:18:59

안녕하세요 예스스탁입니다. 현재 청산조건이 만족한 봉에서 동일방향 진입조건이 동시에 만족해서 청산 후 진입하고 청산이 또 발생하고 있습니다. 랭귀지 체계상 청산봉에서 동일방향 진입이 만족하면 해당 청산이 다시 동작해 청산되게 됩니다. 해당 내용은 청산에 barssinceentry >3와 같은 조건을 추가하시는 것은 의미가 없습니다. 진입식에 각각 무포지션이거나 반대포지션에서 진입되게 하셔야 합니다. If MarketPosition <= 0 and c > c[100] and c < c[200] then Buy("",atmarket,DEf,1); If MarketPosition >= 0 and c < c[100] and c > c[200] then Sell("",atmarket,DEf,1); var: BBB(0),CCC(0); BBB= highest(low,10); CCC= Lowest(low,10); if barssinceentry >3 and Maxpositionprofit >= (3000/BigPointValue) and Crossdown (C,CCC[1]) Then ExitLong("11",AtMarket); if barssinceentry >3 and Maxpositionprofit >= (3000/BigPointValue) and Crossup(C,BBB[1]) Then ExitShort("22",AtMarket); SetStopLoss(4,PercentStop); 즐거운 하루되세요 > 소드노 님이 쓴 글입니다. > 제목 : 문의드립니다. > If c > c[100] and c < c[200] then Buy("",atmarket,DEf,1); If c < c[100] and c > c[200] then Sell("",atmarket,DEf,1); var: BBB(0),CCC(0); BBB= highest(low,10); CCC= Lowest(low,10); if barssinceentry >3 and Maxpositionprofit >= (3000/BigPointValue) and Crossdown (C,CCC[1]) Then ExitLong("11",AtMarket); if barssinceentry >3 and Maxpositionprofit >= (3000/BigPointValue) and Crossup(C,BBB[1]) Then ExitShort("22",AtMarket); SetStopLoss(4,PercentStop); /////////////////////////////////////////////////////////////////////////////////// 실버 120분봉 적용 위 수식을 적용했을때 첨부파일에 체크한것처럼 매도 청산후 바로 매도 진입후 연속 청산이 나가는 현상이 있는데 이 부분을 고치기 위해서 "barssinceentry >3" 적용했지만 효과가 없는 것 같습니다. 이부분 보완 가능할까요?? 1. 매도 청산후 재매도 들어가는데 해당봉에 바로 청산되는것 방지