I have a strategy that behaves strange. It shall buy if a condition is met but it doesn’t.
graph con as "cond"
if cond then
buy 1 contract at market
endif
When I run a backtest graph shows cond=1 but anyway the strategy does not buy. If i move the line with graph behind if (so in the if condition) graph is not executed though I know it is 1.
Any ideas?
Stupid me found the error and I made the same mistake before…I’m embarrassed. @Nicolas you can delete this thread. LOL