Help - cannot get alert Message variables working
Posted: Thu Apr 15, 2021 12:24 am
I'm going nuts here -- been battling this problem for two days now.
I have a strategy script running, generating strategy.entry/exits. The entry looks roughly like this:
My alerts are firing. I'm using {{strategy.order.alert_message}} in the alert Message, however that variable substitution never seems to work -- the Message is always empty.
The alerts show in the Alerts log with no message, and nothing is being triggered on 3commas.
I tried the same with a strategy comment and the result was the same.
Any ideas what I've done wrong?
I have a strategy script running, generating strategy.entry/exits. The entry looks roughly like this:
Code: Select all
strategy.entry(id = 'buy',
long = strategy.long,
when = buy and candleTimeWithinBacktestRange,
alert_message = "{'message_type': 'bot', 'bot_id': <my id>, 'email_token': '<my token>', 'delay_seconds': 0}")
The alerts show in the Alerts log with no message, and nothing is being triggered on 3commas.
I tried the same with a strategy comment and the result was the same.
Any ideas what I've done wrong?