Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 22:49:08 +0000



[Programming Help] - Array Statistics and functions

View Count: 582

[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: 289
did you ever find out
[2024-01-31 18:23:54]
User43 - Posts: 101
All ACSIL stock functions are documented in
https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html

min
min()

max
max()

I think median would be
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: 264
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