N:=84; AA:=EMA(100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),5); BB:=AA>=18 AND AA<88; DD:=AA BB AND DD;