Shab primarily the cause , if known , influences how long the abortion to pregnancy interval should be.
Since most early pregnancy losses ( before 12 weeks ) are due to factors like chromosomal abn or aneupleuidies these pregnancies are incompatible with life and hence abort. Therefore since there isn't anything that can be done to correct this there is no need to wait more than 2--3 cycles before trying again. This is advised firstly for you to recover physically and emotionally from the loss but more importantly so that your doctor can DATE the new pregnancy !
Other causes where one needs investigations usually in the case of recurrent miscarriages are asked to wait longer only so that tests can be done to investigate the cause as these tests ,if pregnant cannot be properly interpreted.
Again I always advise my patients to plan their next pregnancy when THEY feel they are ready for it !
Also you mentioned that you have been trying for two years so it could be that you may have PCO for example which is known to be associated with miscarriages and some doctors adive taknig Metformin before getting pregnant .
Inshallah your next pregnancy will be successful.
thank you for yor advice shayn, I also have been advised to try again when I feel ready, and feel that is the best advice, at first I felt as though I was too weak to go through this again, but now feel stronger.
also what is PCO??