I want an alert to signal macd divergence using my preferred macd values. I will then look at the chart to evaluate the setup for possible manual entry. I presume there's a way to code for peaks and troughs, since I saw there is a free code on this site which identifies macd divergence and does part of what I want. I want to include 3 criteria to filter out too many signals. If possible I want it to include 3 time frames so I do not need to have 3 charts open for each pair.