On some instruments from my database, when trying to backtest, no trades are taken probably because it reads the price as the title of this post shows. I do not see any difference between the instruments on which the backtester works and the instruments on which it does not and reqEntryPrice looks like in the title.
When tracing in debug view everything looks normal, conditions for entering trades are meet, and all variables are "correctly" read, meaning that price looks "normal" . Also I`m using a method of showing trades on the chart and they are correctly plotted just that the backtester is not taking them (EnterTrade does not enter any trade)
Aside from a brand new computer :)) ;), is there anything else that I miss to see and might be the reason that the backtester is not entering trades on some instrument's while it has no problem on other instrument's? Thank you
Check the currency settings. It may be because this particular symbol has attached some currency and that currency F/X rate is incorrect or non existing for given date (if dynamic rate is used). The other possibility is assigning some strange value to BuyPrice variable and turning off price bound checking.
1 Like
That is what I've failed to notice, its the currency issue, hopefully I'll figure it out from here, thanks