//[매수진입] 20H
//[손절매] 10L
//[추가진입] 20H+ATR/2
//- Trailing
stop(2ATR) 이나 Stoploss(ATR/2) 사용
input : period(10);
if crossup(C,highest(H,20)[1]) Then
buy("매수");
if MarketPosition() == 1 and crossup(c,highest(H[1],20)*ATR(Period)/2)
Then
buy("추가진입");
if MarketPosition() == 1
Then{
exitlong("손절매",atstop,lowest(L,10));
exitlong("Tr",AtStop,highest(H,BarsSinceEntry())-ATR(Period)*2);
exitlong("Stoploss",AtStop,EntryPrice()*ATR(PEriod)/2);
}
댓글 없음:
댓글 쓰기