1) 익절(setstopprofittarget)로 exit
- 10봉 지나서 당일 고점이 새롭게 갱신될 경우 buy
2) 최소가격변화(setstopinactivity)로 exit
- 10봉 지나서 당일 저점이 새롭게 갱신될 경우 sell
수식 부탁드립니다.
답변 1
예스스탁
예스스탁 답변
2021-05-28 13:35:01
안녕하세요
예스스탁입니다.
if MarketPosition == 0 and IsExitName("StopProfitTarget",1) == True and BarsSinceExit(1) >= 10 Then
Buy("b",AtStop,DayHigh+PriceScale*1);
if MarketPosition == 0 and IsExitName("StopInactivity",1) == True and BarsSinceExit(1) >= 10 Then
Sell("s",AtStop,DayLow-PriceScale*1);
즐거운 하루되세요
> 목마와숙녀 님이 쓴 글입니다.
> 제목 : 문의
> 1) 익절(setstopprofittarget)로 exit
- 10봉 지나서 당일 고점이 새롭게 갱신될 경우 buy
2) 최소가격변화(setstopinactivity)로 exit
- 10봉 지나서 당일 저점이 새롭게 갱신될 경우 sell
수식 부탁드립니다.