TTC baby no 1

Elizabeth
Is it best to have sex 24 hours before ovulation or right when u do ovulate ?? We are struggling to get pregnant !!! :-(