커뮤니티
문의 드립니다
2025-12-02 10:06:38
133
글번호 228557
예)
if MarketPosition = 1 then
if not (IsEntryName("b1",0) and BarsSinceEntry(0) = 0) then
ExitLong("s1") ;
1. b1 진입 봉에서는 무조건 청산 금지시키고, 다음 봉부터 허용하는 수식 부탁 드립니다.
2. b1 진입 봉에서는 무조건 s1만 청산 금지시키고, 다음 봉부터 허용하는 수식 부탁 드립니다.
3. 진입 봉에서 3봉 안에 매도 금지. 감사합니다.
답변 1
예스스탁 예스스탁 답변
2025-12-02 14:19:53
안녕하세요
예스스탁입니다.
1
if MarketPosition == 1 and
!(BarsSinceEntry(0) == 0) then
ExitLong("s1") ;
2
if MarketPosition == 1 and
!(IsEntryName("b1",0) and BarsSinceEntry(0) == 0) then
ExitLong("s1") ;
3
if MarketPosition == 1 and
BarsSinceEntry(0) > = 3 then
ExitLong("s1") ;
즐거운 하루되세요
다음글