//[필터] 14ADX>30, +DI>-DI, 1-2-3 correction
//[매수진입] 전일H
//[손절매]
전일L
//- 1-2-3 correction : 3일간 연속으로 저가를 갱신하거나, 2일은 연속으로 저가를 갱신하고 1일은 인사이드데이인
경우
//[출처] connors on advanced trading strategies
input : Period(14);
var : ADXv(0),DP(0),DM(0);
ADXv = ADX(Period);
DP = DiPlus(Period);
DM = DiMinus(Period);
if ADXv > 30 and DP > DM and
(accumn(iff(L[1]<L[2],1,0),3) == 3
or
(L[2] < L[3] and L[3] < L[4] and H[1] <= H[2] and L[1] >=
L[2])) and
C > H[1] Then{
buy();
}
if MarketPosition() == 1 and C < L[1] Then
exitlong();
댓글 없음:
댓글 쓰기