Thanks jcl..

so to run the function once only after price data would be

if Bar=1 {function here..} ??