2013년 6월 22일 토요일

Boomers 시스템

Input : Period(14) ;
var : DP(0),DM(0),ADXv(0),Loss(0);

DP = DIPlus(Period);
DM = DIMinus(Period);
ADxv = ADX(Period);

if MarketPosition() == 0 then{
 if var1 >= 25 and
  DP > DM and
  H <= H[1] and H[1] <= H[2] and
  L >= L[1] and L[1] >= L[2] Then
  buy("매수",AtStop,H);
 if var1 >= 25 and
  DM > DP and
  H <= H[1] and H[1] <= H[2] and
  L >= L[1] and L[1] >= L[2] then
     sell("매도",AtStop,L);
}

if MarketPosition() != 0 Then{
 exitlong("매수청산",atstop,L[BarsSinceEntry()]-PriceScale);
 exitshort("매도청산",AtStop,H[BarsSinceEntry()]+PriceScale);
}

댓글 없음:

댓글 쓰기