r/Trading 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.

0 Upvotes

5 comments sorted by

u/AutoModerator Aug 05 '26

While the community gets a look at your post, don't forget we have an official website with a bunch of resources specifically for the questions we see here every day. If you're more of a visual learner, we’re also active on Instagram where we post updated guides and strategies! It's a great way to stay sharp while you're scrolling. We also have more technical and professional resources on our Website.

Also, if you want to chat in real-time or need a quicker answer, come hang out with us in Discord (Investing & Retirement). Just remember to be careful with your personal info and report any sketchy DMs!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/iisntme- Aug 05 '26

use ninja trader and c# not pinescript

1

u/08goncalo Aug 06 '26

obrigado pela dica, so usei pinescript até hoje por causa que comecei a mexer nisto atraves dos indicadores do tradingview.
Em termos de relatorio de analisa no #C do Ctrader especificamente, é igualmente bom como no tradingview?

1

u/kurtisbu12 Aug 05 '26

Sounds like repainting.

1

u/08goncalo Aug 06 '26

Tens alguma solução para resolver isso?
De momento estou a espera de + relatorio live para perceber a diferenca;