VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100; VAR6:=(VAR3+VAR4+VAR5)/3; VAR7:=EMA(VAR6,5); ZHIB:=EMA(EMA(VAR3,5),5)*3; VAR8:=IF(VAR6<=-20,10,0); VAR9:=HHV(VAR8,10); VARA:=IF(VAR9&&CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0); K:=EMA(VAR7,5)*2; D:=EMA(K,5); J:=K*3-D*2; VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5))&&J>10; VARC:=(ZIGZAG(CLOSE,5,1)>REF(ZIGZAG(CLOSE,5,1),1))&&(REF(ZIGZAG(CLOSE,5,1),1)<=REF(ZIGZAG(CLOSE,5,1),2))&&(REF(ZIGZAG (CLOSE,5,1),2)<=REF(ZIGZAG(CLOSE,5,1),3)); VARD:=(ZIGZAG(CLOSE,5,1)<REF(ZIGZAG(CLOSE,5,1),1))&&(REF(ZIGZAG(CLOSE,5,1),1)>=REF(ZIGZAG(CLOSE,5,1),2))&&(REF(ZIGZAG (CLOSE,5,1),2)>=REF(ZIGZAG(CLOSE,5,1),3)); VARC=1,BPK; VARD=1,SPK; |
|