ALF code to Plot Text Message

Hello,

Trading Nifty on Hourly Chart. However, need to confirm trend on Daily chart before initiating a trade.

Need help to write an AFL code to plot a Text Message which displays "Daily - Up Trend" or "Daily - Down Trend" message on chart of hourly time frame for following condition:

1. If price closes above 50 EMA on Daily Chart, message appears on Hourly Chart - "Daily - Up Trend".

2. If price closes below 50 EMA on Daily Chart, message appears on Hourly Chart - "Daily - Down Trend".

Please guide.

Thanks.

See the below tutorial to plot text in AFL charts: