How do you know when to move on?

How do you know when its time to move on? I feel like i give everything and my SO just takes and takes showing no appreciation what so ever to the point where i think hes just taking advantage. We have so much history and i think thats the main reason i feel the need to stay with him. Im so lost and confused. I love him but i dont think hes good for me.