As shown above the all or nothing buy option becomes profitable if the rate is higher than the specified rate (barrier) at expiration. This option must go to expiration, and then and only then is the option's value evaluated.
go