var : OutSideDay(false);
OutSideDay = H > H[1] and L < L[1];
if MarketPosition() == 0 then{
if OutSideDay == True and (H-L) ==
Highest(H-L,5) and H == Highest(H,60)
Then
buy("매수",atstop,H+PriceScale*2);
if OutSideDay == True and (H-L)
== Highest(H-L,5) and L == Lowest(H,60)
Then
Sell("매도",atstop,L-PriceScale*2);
}
if MarketPosition() != 0
Then{
ExitLong("매수청산",AtStop,H[BarsSinceEntry()]-PriceScale*2);
ExitShort("매도청산",AtStop,L[BarsSinceEntry()]+PriceScale*2);
}
댓글 없음:
댓글 쓰기