답변완료
종목검색
조건 1
A=highestsince(1,date(1)!=date,v);
B=valuewhen(1,A==v,h);
D=A(1) < v and B(1) < h;
D and c > o
조건 2
대금=(H+O+L+C)/4*V/100000000;
A=IF(C>O,대금,0);
B=SUM(A);
D=ValueWhen(1,Date(1)!=Date,B(1));
양대금=B-D;
A1=IF(C<O,대금,0);
B1=SUM(A1);
D1=ValueWhen(1,Date(1)!=Date,B1(1));
음대금=B1-D1;
CROSSUP(양대금,음대금)
조건1 과 조건2 를 당일 동시에 충족하는 경우를 2회 이상
나온 종목을 검색하고자 합니다 감사합니다.
2025-02-13
427
글번호 188136
종목검색
답변완료
수식변환요청
항상 수고 많으십니다
아래수식 변환 부탁드립니다
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
전환 = (highest(high,9)+lowest(low,9))/2;
기준 = (highest(high,26)+lowest(low,26))/2;
선행1 = (highest(high,9)+lowest(low,9)+highest(high,26)+lowest(low,26))/4;
선행2 =(highest(high,52)+lowest(low,52))/2;
A = (crossup(선행1 ,선행2) OR (선행1>선행2 && CROSSUP(C,선행1))) && 전환>기준 && C>O &&V(1)*2<V;
AA=Valuewhen(1,A,선행1);
CrossUp(C,AA)
2025-02-13
427
글번호 188132
종목검색
답변완료
문의 드립니다.
선생님~ 아래의 수식이 atr 값을 퍼센트(%)로 변화 시킨거 잖아요~
퍼센트로 변환 시키지 않은 atr 값을 구하는 수식으로 좀 바꿔 주세요~
atr의 기간값은 36 이고 시그널선은 36일 단순이동평균 입니다.
볼리저 밴드의 기간값은 36으로 표준편차는 2 로 해서요~
색깔은 필요없어요~
정리하면 순수 atr 값 (36) 에 시그널선은 36 단순이동 평균선
볼린저 밴드 (36) 에 표준 편차는 2 입니다.
input : useAtrAsPercent(1);#1:ATR기준 볼밴, 2:ATR비율기준 볼밴
input : ATRPeriods(22);
input : showBollingerBands(1); #1:볼밴표시, 2:표시안함
input : BBPeriods(20);
input : StdDev(2);
var : A(0),atrPercent(0),middle(0),dev(0),top(0),bottom(0);
A = atr(ATRPeriods);
atrPercent = (A/close) * 100;
if useAtrAsPercent == 1 Then
{
middle = ma(atrPercent,BBPeriods);
dev = std(atrPercent,BBPeriods);
top = middle + dev;
bottom = middle - dev;
}
Else
{
middle = ma(A,BBPeriods);
dev = std(A,BBPeriods);
top = middle + dev;
bottom = middle - dev;
}
plot1(iff(useAtrAsPercent,atrPercent,A),"ATR/Percent");
if showBollingerBands == 1 Then
{
plot2(top, "Top",red);
plot3(bottom, "Bottom",green);
plot4(middle, "Middle",purple);
}
2025-02-13
418
글번호 188128
지표