Condition40 = Condition89 == true and abs(L-q12)<=PriceScale*2 and abs(L+q12)>=PriceScale*2 ;
if Condition40 == true Then
buy("매수",OnClose);
위 수식에서 q12번 대신 q12, q13, q14, q15, q16, q17, q18, q19,q20 까지 넣어 어느 것 하나라도 만족하면 진입하는 수식으로 수정좀 부탁합니다.
답변 1
예스스탁
예스스탁 답변
2019-11-15 16:17:32
안녕하세요
예스스탁입니다.
var : count(0);
count = 0;
if abs(L-q12)<=PriceScale*2 and abs(L+q12)>=PriceScale*2 Then
count = count+1;
if abs(L-q13)<=PriceScale*2 and abs(L+q13)>=PriceScale*2 Then
count = count+1;
if abs(L-q14)<=PriceScale*2 and abs(L+q14)>=PriceScale*2 Then
count = count+1;
if abs(L-q15)<=PriceScale*2 and abs(L+q15)>=PriceScale*2 Then
count = count+1;
if abs(L-q16)<=PriceScale*2 and abs(L+q16)>=PriceScale*2 Then
count = count+1;
if abs(L-q17)<=PriceScale*2 and abs(L+q17)>=PriceScale*2 Then
count = count+1;
if abs(L-q18)<=PriceScale*2 and abs(L+q18)>=PriceScale*2 Then
count = count+1;
if abs(L-q19)<=PriceScale*2 and abs(L+q19)>=PriceScale*2 Then
count = count+1;
if abs(L-q20)<=PriceScale*2 and abs(L+q20)>=PriceScale*2 Then
count = count+1;
Condition40 = Condition89 == true and count >= 1;
if Condition40 == true Then
buy("매수",OnClose);
즐거운 하루되세요
> 천왕봉 님이 쓴 글입니다.
> 제목 : 수정좀 부탁드립니다.
> Condition40 = Condition89 == true and abs(L-q12)<=PriceScale*2 and abs(L+q12)>=PriceScale*2 ;
if Condition40 == true Then
buy("매수",OnClose);
위 수식에서 q12번 대신 q12, q13, q14, q15, q16, q17, q18, q19,q20 까지 넣어 어느 것 하나라도 만족하면 진입하는 수식으로 수정좀 부탁합니다.