Dragon fruit is ripe when the skin looks vibrant, the leaves are not wilted and the flesh should have a slight give (not too hard). Similar to the feeling you would be looking for in a ripe avocado.