Thankyou for your response. Received the errors below:
'return' - expressions are not allowed on a global scope 1033 4 '}' - expressions are not allowed on a global scope 1034 1 not all control paths return a value 1032 4
I needed it to look the same as the 'Wilders Trailing Stop MTF' on screen but with the alerts requested. eg. when this Wilder indicator on the H4 turns, ie price goes long and indicator turns down and vice versa, the first H1 candle to close while H4 indicator(WTS) is in this new direction creates an alert.