2013년 6월 22일 토요일

Inside day System





var : Insideday(false);

Insideday =  H < H[1] and L > L[1];

if InsideDay == True and MarketPosition() == 0 Then{
 buy("매수",atstop,H+PriceScale*2);
 Sell("매도",atstop,L-PriceScale*2);
}

if MarketPosition() != 0 Then{
 ExitLong("매수청산",AtStop,H[BarsSinceEntry()]);
 ExitShort("매도청산",AtStop,L[BarsSinceEntry()]);
}

댓글 없음:

댓글 쓰기