input : Per2(200),Nbar2(20),count2(2),Nbar3(30),count1(1), Per5(500),Per1(100);
VAR : D(0),당3(0),전3(0);
var1 = Upvol/DownVol*100;
당3=(dayclose()+dayclose(1)+dayclose(2))/3;
전3=(dayclose(1)+dayclose(2)+dayclose(3))/3;
Condition1 = V >= V[1]*(1+Per5/100);
Condition2 = V >= V[1]*(2+Per2/100);
Condition3 = var1 >= Per1;
if countif
(((Condition1 == true ,Nbar3) >= count1 )or ((Condition2 == true ,Nbar2) >= count2) or
(Condition3)) and 당3>전3
then find(1);
17 열 true ,Nbar3 이부분에 , 오류 나는데 이해가 잘 안가요
(a or b or c ) and d 문법에는 문제 없나요?
답변 1
예스스탁
예스스탁 답변
2019-10-31 11:51:51
안녕하세요
예스스탁입니다.
countif(조건,봉수) 입니다.
올려주신 수식에 countif는 하나인데 (조건,봉수)는 여러개가 있습니다.
input : Per2(200),Nbar2(20),count2(2),Nbar3(30),count1(1), Per5(500),Per1(100);
VAR : D(0),당3(0),전3(0);
var1 = Upvol/DownVol*100;
당3=(dayclose()+dayclose(1)+dayclose(2))/3;
전3=(dayclose(1)+dayclose(2)+dayclose(3))/3;
Condition1 = V >= V[1]*(1+Per5/100);
Condition2 = V >= V[1]*(2+Per2/100);
Condition3 = var1 >= Per1;
if (countif(Condition1 == true, Nbar3) >= count1
or countif(Condition2 == true ,Nbar2) >= count2
or Condition3) and 당3>전3 then
find(1);
즐거운 하루되세요
> 로빈의맥주 님이 쓴 글입니다.
> 제목 : 질문 입니다
> input : Per2(200),Nbar2(20),count2(2),Nbar3(30),count1(1), Per5(500),Per1(100);
VAR : D(0),당3(0),전3(0);
var1 = Upvol/DownVol*100;
당3=(dayclose()+dayclose(1)+dayclose(2))/3;
전3=(dayclose(1)+dayclose(2)+dayclose(3))/3;
Condition1 = V >= V[1]*(1+Per5/100);
Condition2 = V >= V[1]*(2+Per2/100);
Condition3 = var1 >= Per1;
if countif
(((Condition1 == true ,Nbar3) >= count1 )or ((Condition2 == true ,Nbar2) >= count2) or
(Condition3)) and 당3>전3
then find(1);
17 열 true ,Nbar3 이부분에 , 오류 나는데 이해가 잘 안가요
(a or b or c ) and d 문법에는 문제 없나요?