I have a strategy that behaves strange. It shall buy if a condition is met but it doesn’t.
1
2
3
4
graphconas"cond"
ifcondthen
buy1contractatmarket
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.