It is not clear if you are talking about PTSD, which is usually associated to a traumatic event that triggered the Depression or depression/anxiety in general.
Both of these are usually due to underlying metabolic disorder that fortunately can be treated by nutritional means, although this is not always recognised by everybody. But if you are interested in the nutritional aspects of these mood disorders please read: