how to know last static value(not current just one before)

 
I want my ea work with wpr.And I want it work when previous high is -1 for examle then when it goes -99 buy,or last down is -99 when it goes -1 sell..
 
I don't know what you mean by
last static value

You use iWPR: double iWPR( string symbol, int timeframe, int period, int shift)

Shift of 1 is the last bar, 2 is the previous one.

 
WHRoeder:
I don't know what you mean by

You use iWPR: double iWPR( string symbol, int timeframe, int period, int shift)

Shift of 1 is the last bar, 2 is the previous one.

Shift 0 is the last bar (current bar), 1 is the previous one.