You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Sometimes I can open or close a trade.
I believe that 5 out of 6 of the results below are correct.
I believe that 5 out of 6 of the results below are correct.
Correction:
Result:
Correction:
Yes, it matches now.
I took a real-world problem where, at the end of a backtest, you need to calculate the duration of all positions. I stored the Open/Close times of the positions in an array and ran the following script on it.
In tasks like this, you only need a single pass through all the positions, so I couldn’t gain any performance benefit from caching. I suppose the only thing that might help here is table data hard-coded into the source before compilation. But it’s probably not worth fighting over half a millisecond. Thanks for the research!