hi so i have tweeked an already existing strategy, that uses v2 pine for swing trades, it looks profitable, but i am unable to connect it to 3commas using 1 alert to long or close long, i tried to make an escape charechter to make the strategy need only 1 alert to open or close trade automaticly, i mean its pointless having to create new alert manually to open or close, it becomes half a bot lol
strategy.entry("long", strategy.long, when=buy1, comment="{/n/"message_type/": /"bot/",/n/"bot_id/": 123456,/n/"email_token/": /"123456/",/n/"delay_seconds/": 0/n}")
strategy.close("long", when=sell2, comment="{/n/"action/": /"close_at_market_price/"n/,/"message_type/": /"bot/"/n,/"bot_id/": 123456,/n/"email_token/": /"123456/",n//"delay_seconds/": 0/n}")
if someone can explain where my mistake is i'd be greatfull, thanks in advance
original command for t.v alert : Open Long: { "message_type": "bot", "bot_id": 123456, "email_token": "123456", "delay_seconds": 0 }
For closing postion: { "action": "close_at_market_price", "message_type": "bot", "bot_id": 123456, "email_token": "123456", "delay_seconds": 0 }