parse facpr
Calculate facpr
Calculate true range
trade logic