Login Page - Create Account

Support Board


Date/Time: Mon, 19 May 2025 14:40:57 +0000



[Programming Help] - Array Statistics and functions

View Count: 644

[2021-03-05 14:30:22]
grantx - Posts: 244
Are there any ACSIL functions to work out things like MAX, MIN, MEDIAN, IQR, SORT (highest to lowest etc..)?

There are functions in the spreadsheet study but they can't be used in ACSIL. Or can they?
Date Time Of Last Edit: 2021-03-05 14:32:01
[2024-01-30 19:42:44]
User411320 - Posts: 320
did you ever find out
[2024-01-31 18:23:54]
User43 - Posts: 102
All ACSIL stock functions are documented in
ACSIL Interface Members - Functions

min
ACSIL Interface Members - Functions: min()

max
ACSIL Interface Members - Functions: max()

I think median would be
ACSIL Interface Members - Functions: sc.MovingMedian()

I don't think there is a IQR or SORT function
But at the end of the day you have the whole power of C / C++ at your fingertips where you can write your own functions as needed.

You can also via ACSIL interact with Spreadsheets.
[2024-02-01 08:48:14]
User719512 - Posts: 310
Expanding on what user43 says, I'd take whatever values you are looking at, put them in a std::list and write functions to operate on a list to find your desired calculations. From there you could optimize once it's working if perf an issue.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account