Finding Price near square number of odd & even number

Hiii,

I wrote a script (from help of optuma) as below but its not working.

v1 = 144;
c1 = CLOSE();
(c1/v1 0.95)

or

v2=4;

c2=close();

(c1/v1=0.95)

 

I need to scan through scripts which are near square of odd or even number. Can u please help.

Hi Deepak,

You have set the formula to equal 95%, which will never show a result. Instead you need >0.95 and <1.05 for a 5% range:

V2=144;

C2=CLOSE();

(V2/C2 > 0.95) and (V2/C2 < 1.05)