How could I cache the values of indicators each tick to speed up backtesting. Does mt5 do this already?
I have a neural network with various indicators as inputs. Is there a way I could code in a huge lookup table so each tick I could look up the value instead of calculating them every time? Does mt5 do this already internally? Could I do this in ontesterinit()? Is there a function to get the start and end dates of the testing? And then in ontesterinit is there a function that I could just put in the start and end date and get every calculated tick for stochastic? I imagine writing these to a file and reading it takes as much or more time then calculating it. Are there any other ways to store it so each pass can quickly look up the values?
Thanks
Thanks for taking the time to reply, I appreciate it. I think I'm going to try to get it to run on the GPU with OpenCL. It is a very small NN and I'm not sure how fast it would be to send inputs and get outputs from the gpu, but hopefully it would speed it up by a decent amount.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a neural network with various indicators as inputs. Is there a way I could code in a huge lookup table so each tick I could look up the value instead of calculating them every time? Does mt5 do this already internally? Could I do this in ontesterinit()? Is there a function to get the start and end dates of the testing? And then in ontesterinit is there a function that I could just put in the start and end date and get every calculated tick for stochastic? I imagine writing these to a file and reading it takes as much or more time then calculating it. Are there any other ways to store it so each pass can quickly look up the values?
Thanks