다음의 수식을 종목검색식으로 부탁드립니다.
A1=if(C>O, V, 0);
B1=sum(A1);
D1=B1 - Valuewhen(1,date!=date(1), B1(1));
D12=Valuewhen(1,date!=date(1), B1(1)) - Valuewhen(2, date!=date(1), B1(1));
A2=if(C<O, V, 0);
B2=sum(A2);
D2=B2 - Valuewhen(1, date!=date(1), B2(1));
D22=Valuewhen(1,date!=date(1), B2(1)) - Valuewhen(2, date!=date(1), B2(1));
CrossUp(D1, D2) && D12 < D22
답변 1
예스스탁
예스스탁 답변
2022-05-30 11:06:12
안녕하세요
예스스탁입니다.
var : D1(0),D12(0),d2(0),D22(0);
if sDate != sDate[1] Then
{
D1 = 0;
D2 = 0;
D12 = D1[1];
D22 = D2[1];
}
if C > O Then
D1 = D1+V;
if C < O Then
D2 = D2+V;
if CrossUp(D1, D2) and D12 < D22 Then
Find(1);
즐거운 하루되세요
> redcon 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 다음의 수식을 종목검색식으로 부탁드립니다.
A1=if(C>O, V, 0);
B1=sum(A1);
D1=B1 - Valuewhen(1,date!=date(1), B1(1));
D12=Valuewhen(1,date!=date(1), B1(1)) - Valuewhen(2, date!=date(1), B1(1));
A2=if(C<O, V, 0);
B2=sum(A2);
D2=B2 - Valuewhen(1, date!=date(1), B2(1));
D22=Valuewhen(1,date!=date(1), B2(1)) - Valuewhen(2, date!=date(1), B2(1));
CrossUp(D1, D2) && D12 < D22