PureBytes Links
Trading Reference Links
Prev is initially zero and the close is never less than zero, therefore the result is zero. Test for day 1 and return the close, otherwise ... your code. Gary Randall -- Brunswick, Maine