Greetings,
I want to modify the alerts function of an mladen MT4 TMA bands indicator so that it filters alerts in accordance with the trend, the trend being defined by indicator's 'Trend threshold' setting.
I assume the additional coding required would be as follows:
Insert a toggle: Use trend filter - TRUE/FALSE
When TRUE, alerts to be filtered as follows:
LowerBandTouchAlert: alert only when trend is UP or FLAT
UpperBandTouchAlert: Alert only when trend is DOWN or FLAT
Thanks in advance to anyone who can help.