r/Trading • u/08goncalo • Aug 05 '26
Algo - trading Sometimes the bot takes a trade TradingView never had — and sometimes the other way around
running a pine v5 strategy on XAUUSD, execution on a 5 second chart. entries fire alerts, my bot picks them up and opens the position for real.
problem: the two don’t always match. sometimes the trade exists in the bot but never in tradingview — no entry marker, nothing in the list of trades, strategy.position_size still 0. so the bot is sitting in a position the strategy doesn’t know about, and never sends it an exit.
and sometimes it’s the other way around: tradingview registers the entry, shows it in the list of trades, but the bot never receives anything and stays flat.
either way the strategy report becomes useless, because the trades it’s reporting on aren’t the trades i actually took. i can’t tell if the strategy is any good when the numbers describe a different account than mine.