커뮤니티
조건 수정 부탁드립니다
2017-07-06 15:13:47
145
글번호 111078
안녕하세요
더운날 수고가 많으십니다.
분봉 거래량 수식인데요
조건 수정 부탁드립니다.
1.
if Bdate != Bdate[1] Then{
sum = 0;
sum1 = sum[1];
Didx = Didx+1;
}
sum = sum + money;
if sdate != sdate[1] and
DayHigh(1) >= DayClose(2)*1.15 and DayHigh(1) >= DayLow(1)*1.15
and DayClose(1) >= DayOpen(1)*1.09 and sum >= 25000000000
1 조건이 만족되면
2.
input :BarRio(0.01),Percent1(50);
var : B(0),sumB(0),HH(0),LL(0),H2(0);
B = IFF((C-O)/O>=BarRio or (C[1]*1.02<=H and C>=O) or (C[2]>O[2]*1.01 and C[1]>O[1]*1.01 and C>=O)
, V, IFF((C-O)/O<=-BarRio or (C < O and C[1]*1.03 <= H) or (C[1]*0.99>=C and C < O)
or (C[1]*0.97>=L and C < O) or (H[1]*0.97 > C and O>C),-V,0));
if sdate >= Period then{
sumB = sumB+B;
if (sdate != sdate[1]) and (sdate == Period or (sdate > Period and sdate[1] < Period)) Then{
LL = sumB;
HH = sumB;
H2 = sumb-LL;
}
if sumB < LL Then
LL = sumB;
if sumB > HH Then
HH = sumB;
var1 = sumB-LL;
var2 = HH-SumB;
if var1 > H2 Then
H2 = var1;
var3 = H2*(Percent1/100);
plot1(var1,"SS",RED);
plot2(var3,"50%",YELLOW);
}
2 수식을 출력하고 싶은데요. 1조건이 만족하는날로부터 10일간만 표시하고 싶습니다.
더운날 몸조리 잘하시고
감사합니다
답변 1
예스스탁 예스스탁 답변
2017-07-06 16:27:58
안녕하세요
예스스탁입니다.
if sdate != sdate[1] and
DayHigh(1) >= DayClose(2)*1.15 and DayHigh(1) >= DayLow(1)*1.15
and DayClose(1) >= DayOpen(1)*1.09 and sum >= 25000000000 Then
위 조건내용은 사용자분이 내용을 확인하시기 바랍니다.
sum이 당일 거대대금입니다.
해당식을 일봉에 적용하시면 하루의 거대대금이지만
분봉에 적용하시면 첫봉의 거대대금입니다.
전일이면 sum1이 되어야 합니다.
아래는 수식입니다.
위조건은 변경없이 그대로 사용했습니다.
조건만족후 일정기간에만 출력해야 하므로
점그래프나 일자그래프와 같이 이전출력과 연결되지 않는
그래프로 종류로 지정하고 검색하시기 바랍니다.
input :BarRio(0.01),Percent1(50);
var : B(0),sumB(0),HH(0),LL(0),H2(0);
var : sum(0),sum1(0),didx(0),dd(0);
if Bdate != Bdate[1] Then{
sum = 0;
sum1 = sum[1];
Didx = Didx+1;
}
sum = sum + money;
if sdate != sdate[1] and
DayHigh(1) >= DayClose(2)*1.15 and DayHigh(1) >= DayLow(1)*1.15
and DayClose(1) >= DayOpen(1)*1.09 and sum >= 25000000000 Then
dd = didx;
B = IFF((C-O)/O>=BarRio or (C[1]*1.02<=H and C>=O) or (C[2]>O[2]*1.01 and C[1]>O[1]*1.01 and C>=O)
, V, IFF((C-O)/O<=-BarRio or (C < O and C[1]*1.03 <= H) or (C[1]*0.99>=C and C < O)
or (C[1]*0.97>=L and C < O) or (H[1]*0.97 > C and O>C),-V,0));
if didx >= dd and didx <- dd+10 then{
sumB = sumB+B;
if sdate != sdate[1] and Didx == DD Then{
LL = sumB;
HH = sumB;
H2 = sumb-LL;
}
if sumB < LL Then
LL = sumB;
if sumB > HH Then
HH = sumB;
var1 = sumB-LL;
var2 = HH-SumB;
if var1 > H2 Then
H2 = var1;
var3 = H2*(Percent1/100);
plot1(var1,"SS",RED);
plot2(var3,"50%",YELLOW);
}
즐거운 하루되세요
> 하루4% 님이 쓴 글입니다.
> 제목 : 조건 수정 부탁드립니다
> 안녕하세요
더운날 수고가 많으십니다.
분봉 거래량 수식인데요
조건 수정 부탁드립니다.
1.
if Bdate != Bdate[1] Then{
sum = 0;
sum1 = sum[1];
Didx = Didx+1;
}
sum = sum + money;
if sdate != sdate[1] and
DayHigh(1) >= DayClose(2)*1.15 and DayHigh(1) >= DayLow(1)*1.15
and DayClose(1) >= DayOpen(1)*1.09 and sum >= 25000000000
1 조건이 만족되면
2.
input :BarRio(0.01),Percent1(50);
var : B(0),sumB(0),HH(0),LL(0),H2(0);
B = IFF((C-O)/O>=BarRio or (C[1]*1.02<=H and C>=O) or (C[2]>O[2]*1.01 and C[1]>O[1]*1.01 and C>=O)
, V, IFF((C-O)/O<=-BarRio or (C < O and C[1]*1.03 <= H) or (C[1]*0.99>=C and C < O)
or (C[1]*0.97>=L and C < O) or (H[1]*0.97 > C and O>C),-V,0));
if sdate >= Period then{
sumB = sumB+B;
if (sdate != sdate[1]) and (sdate == Period or (sdate > Period and sdate[1] < Period)) Then{
LL = sumB;
HH = sumB;
H2 = sumb-LL;
}
if sumB < LL Then
LL = sumB;
if sumB > HH Then
HH = sumB;
var1 = sumB-LL;
var2 = HH-SumB;
if var1 > H2 Then
H2 = var1;
var3 = H2*(Percent1/100);
plot1(var1,"SS",RED);
plot2(var3,"50%",YELLOW);
}
2 수식을 출력하고 싶은데요. 1조건이 만족하는날로부터 10일간만 표시하고 싶습니다.
더운날 몸조리 잘하시고
감사합니다
다음글
이전글