커뮤니티
수식문의
2013-11-14 14:13:42
126
글번호 69485
아래 수식에서 직직전고점과 직직전저점을 추가하려면 어떻게 해야 하나요?
############################################################
input : Left(3),Right(3);
var : HH(0),preHH(0),LL(0),PreLL(0);
if SwingHigh(1,H,Left,Right,Left+right+1) != -1 Then{
HH = H[right];
PreHH = HH[1];
}
if SwingLow(1,L,Left,Right,Left+right+1) != -1 Then{
LL = L[right];
PreLL = LL[1];
}
plot1(HH,"최근고점");
plot2(PreHH,"직전고점");
plot3(LL,"최근저점");
plot4(PreLL,"직전저점");
답변 1
예스스탁 예스스탁 답변
2013-11-14 15:14:31
안녕하세요
예스스탁입니다.
input : Left(3),Right(3);
var : HH(0),preHH1(0),preHH2(0),LL(0),PreLL1(0),PreLL2(0);
if SwingHigh(1,H,Left,Right,Left+right+1) != -1 Then{
HH = H[right];
PreHH1 = HH[1];
PreHH2 = PreHH1[1];
}
if SwingLow(1,L,Left,Right,Left+right+1) != -1 Then{
LL = L[right];
PreLL1 = LL[1];
PreLL2 = PreLL1[1];
}
plot1(HH,"최근고점");
plot2(PreHH1,"직전고점");
plot3(PreHH2,"직직전고점");
plot4(LL,"최근저점");
plot5(PreLL1,"직전저점");
plot6(PreLL2,"직직전저점");
즐거운 하루되세요
> 쉬어가자 님이 쓴 글입니다.
> 제목 : 수식문의
> 아래 수식에서 직직전고점과 직직전저점을 추가하려면 어떻게 해야 하나요?
############################################################
input : Left(3),Right(3);
var : HH(0),preHH(0),LL(0),PreLL(0);
if SwingHigh(1,H,Left,Right,Left+right+1) != -1 Then{
HH = H[right];
PreHH = HH[1];
}
if SwingLow(1,L,Left,Right,Left+right+1) != -1 Then{
LL = L[right];
PreLL = LL[1];
}
plot1(HH,"최근고점");
plot2(PreHH,"직전고점");
plot3(LL,"최근저점");
plot4(PreLL,"직전저점");