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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.