Accuracy of altitude using RTK

If you want AP to use GPS for altitude you need to change EK2_ALT_SOURCE to 2.
That being said do not expect cm accuracy when in float, actually it can be out meters in respect to when gps is in fix. Your best bet is to try to have gps in fixed when using it for precise altitude reference.
What gps is it? Why doesn’t go in fix?