PROTECTED SOURCE SCRIPT

Trend Reversal Signal

55
The issue was that alertcondition requires a constant string for the message parameter - it cannot accept a variable. I've replaced the dynamic message construction with static strings. The alerts will now work properly!
The error should now be resolved. Copy the updated code and it should compile without issues.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.