Support Board
Date/Time: Sun, 11 May 2025 20:57:46 +0000
[Programming Help] - Example ACSIL study: for support and resistance levels from CSV
View Count: 371
[2024-08-29 23:39:23] |
drw112 - Posts: 24 |
I am very unexperienced with ACSIL and C++ but I thought it might be helpful to provide a study I wrote for other beginners as a working example. It takes a comma delimited list of support and resistances like: 5604 (major), 5596, 5582-85 (major) and translates them into horizontal lines or extended rectangles based on if it is a range or not. It will also color and label major lines different. This list is published in a popular newsletter for ES traders that I'm sure others know of. Again, I'm not a pro at ACSIL and C++ so if anyone has any suggestions or critiques let me know! But, it took me a while to get going and I thought I'd share what a full working example looks like. https://www.sierrachart.com/image.php?Image=1724974870843.png Date Time Of Last Edit: 2024-08-29 23:41:25
|
![]() |
[2024-08-30 00:56:03] |
Mark Lewis - Posts: 27 |
Is there a particular reason you are using auto?
|
[2024-08-30 01:22:25] |
drw112 - Posts: 24 |
I just saw it was preferred for modern C++ when learning it and it looks less verbose than specifying all the types.
|
[2024-08-30 17:34:29] |
User719512 - Posts: 310 |
Interesting use of lambda functions! You might only need to call your code when sc.Index==0 as an optimization. (have not tried to run your src) |
[2024-08-30 17:36:41] |
User719512 - Posts: 310 |
You might also be interested in reading such data from a file like this solution: https://github.com/FrozenTundraTrader/sierrachart/blob/main/google_sheets_importer.cpp |
To post a message in this thread, you need to log in with your Sierra Chart account: