-nan(ind) in Backtest result


I am running my backtest in Amibroker. For certain trades, there are Exit Dates, but no Exit Price. I checked my datasource (Norgate) and I can see a price.

Example, DMP.au - Dominos Pizza
Buy 29 Aug 2014 @ 22.64002
Sell 31 Aug 2015 @ -nan(ind)

Please see screen print attached. Why is this happening? what do I need to do to fix it?


DMP - 31 Aug 2015 - Amibroker

Norgate Data
DMP - 31 Aug 2015 - Norgate

Nan / Ind - is Not-a-number / indefinite number.
Usually it result of 0 / 0 (zero divided by zero) or infinity / infinity, square number from negative number or log from negative number calculation.
Something wrong with your formula and/or data. Probably SellPrice calculation is wrong.

To get better understanding of what is happening in your code and how functions work, use advice given here: How do I debug my formula?

Also your question is missing formula. Please follow this advice: How to ask a good question

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.