I'm currently running some tests with the trend tests scripts from financial hacker. One thing that bothers me is that I'm getting slightly different results for the same asset, only by removing other assets from the test.
What I mean is that all I changed is while(asset(loop("EUR/USD","SPX500","XAG/USD"))) to while(asset(loop("SPX500")))
This difference is small, but it is there, which makes me wonder if there is something about the script that I do not understand. I would expect the results to be exactly the same here.
See attached images for an example
Last edited by Dalla; 04/26/1713:31.
Re: Trend test producing different result for same asset
[Re: Dalla]
#465423 04/26/1715:1204/26/1715:12
"The order of asset() calls does matter....... Therefore set first the asset with the most complete price history (for instance, a currency pair that is traded 24 hours)."