2013년 6월 22일 토요일

추세_Boomers

//[필터] ADX>30, +DI>-DI, 이틀연속 ID
//[매수진입] 전일H
//[손절매] 전일L
//- +DI>-DI 필터때문에 reversal system은 아님
//[출처] Hit and Run Trading

input : Period(14);
var : ADXv(0),DP(0),DM(0),ID(False);

ADXv = ADX(Period);
DP = DiPlus(Period);
DM = DiMinus(Period);
ID = H <= H[1] and L >= L[1];

if ADXv > 30 and DP > DM and ID == True and ID[1] == True Then{
 if C >= H[1] Then
  buy();
}

if C < L[1] Then
 exitlong();

댓글 없음:

댓글 쓰기