I am trying to replicate my Excel calculation of the Net Asset Value (NAV) but the results I am getting from AFL is totally off.
I am sure I am making some mistake somewhere and been trying to make it work for the past of couple of days. Any help will be greatly appreciated. Thank you.
In excel: let say you have the daily returns in column C and NAV in column D.
If data starts at row #2. and D2 = 100. Then NAV at cell D3 = D2 * ( 1 + C3 ) where C3 = C3/C2-1
I am still learning this fantastic platform and assistance from just wonderful people like you and Tomasz are truly invaluable. So I cannot thank you enough.
The other thing I have been struggling with as a newbie, is why the code do not adhere to the date range I specified in the exploration window? I am sure it's my bad and there must be a way to make the exploration results started calculating from the start date I specified. So what is that way, I don't seem to find out how? any pointer to this would be much appreciated. Thank you a million!
I figured out the range question and here is the revised code based on @fxshrat solution and guidance from the manual provided by @Tomasz. I figured out the rest, which is how to get the calculation starts and adheres to my data range. Thank you both so very much.