However, when I run in strategy analyzer 'Backtest', nothing shows up (it says 0 trades taken). It works for ALL other strategies. I made the following observations:
1) the Chart tab in the strategy analyzer IS populated with my 1 indicator that I use, so it did plot that successfully.
2) enabling trace orders doesn't print anything. Nothing gets printed as the entries are not executing, nothing in the orders tab either.
3) im not disabling anything related to historical data in my strategy. there is one simple if statement in my strategy to determine entry that isn't executing for some reason.
4) I am using on bar update mode , not on each tick which I know doesn't work properly on historical data.
Platform information: Windows, Ninja trader 8, C# code.
I only have 2 .cs files total, one for the strategy and one for the indicator. I am a programmer so I understand how stuff works in general but unsure of this bug in my strategy. It is trying to read a value from my indicator to determine the entry, but that value is never being set for some reason despite plots from bar update in the indicator happening on the chart in the strategy analyzer. Any help is appreciated.
I have attached screenshots of what the analyzer looks like, as well as my order entry code in my strategy and the actual strategy code itself with the one indicator I use (FVG indicator)

Comment