# Help with Price Percent Change Today scan

#### Docbrown83

##### Member
Hi guys,

I'm new to coding but having a hard time getting this to work.

I'm trying to narrow down my scans to stocks that had a "price percent change today" between -1.00% to +1.00%.

This is what I have so far:

def conditionOne = 100 * (close / close[1]) / close[1] between -1.00 and +1.00;

plot scan= conditionOne;

But I end up with stocks that have gone up +12.60% or 7.84% for the day, not between the -1.00 to +1.00 % parameters I was hoping for.

Any help with more experienced coders would be appreciated please!!

#### generic

##### Active member
@Docbrown83 You need to change your formula to (close - close[1]) / close[1].

Last edited:

#### WOW_Marsman_Smolder

##### New member
def conditionOne = if ( abs( close - close[1] ) / close[1] <= 0.01 ) then 1 else 0
// removes the multiply step too : more efficient

Last edited:

#### Docbrown83

##### Member
def conditionOne = if ( abs( close - close[1] ) / close[1] <= 0.01 ) then 1 else 0
// removes the multiply step too : more efficient
Awesome, thank you for your help!