I can't for the life of me get my tradingview alerts to pop up even though my strategy is indicating a buy signal correctly. I need the alert to pop up so it can be read by the trading bot.
Current code:
// 1. Determine Long Trade Entry
enterLong = cross(low, TRbottom2)
alertcondition(enterLong, title='Position Opened', message="Test")
I'm not sure what I'm missing, I tried setting an alert on the chart but I don't get a drop down its just an alert on the indicator and it doesn't trigger.
Any help would be appreciated.
Could be your
TRbottom2
value never crosslow
value.This one works: