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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue