@Tomasz I was too terse and assumed background. Old problem boss (manager not technical) used to get the red pen out.
I’ve been coding matrix with 5000 gaussian variables from mtrandom using Box-Muller transform algo I copied. Then to verify the data, I tried to use superlative PriceVolDistribution() function to display in mode=3 (x-bars, y-pixels).
Function needs array for H, L, Vol vars.
Trying several approaches reduced the samples size from matrix size to barcount size. Default 200 bars or visible bars. That’s normal, but I wanted to convert matrix to array inside the function.
I think I’ve confirmed that doesn’t happen. I used debug and _trace.
So accessing bars outside barcount range returns error, -1e31 or some NAN.
Also tried changing bars in settings(new feature) and turned off quickafl.
Now got matrix RandGauss() code (6 lines, amazing matrix functions) working. Now working to display data with gfx. It’ll be interesting to see if chart is any different.
Hope that’s clearer .