Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 15:05:02 +0000



[Programming Help] - ACSIL to Color Bar Based on Bar Volume Thresholds

View Count: 861

[2021-09-29 16:08:01]
Fritz101 - Posts: 5
Looking for coding support from Users (or SC support if applicable).

I had created a small group of Color Bar Based on Alert conditions to filter volume based on thresholds of 150, 500, 1000, 2000, 3000+. Example in alert conditions: 1. =V <= 150 2. AND(V > 150, V <= 500).

After finding value in these visuals I begin to add to various bar periods and found I needed to adjust the thresholds for a similar visual value to be retained.

Due to a desire for simplicity and a cleaner UI in the studies window, I have begun development in ACSIL complete up to Section 2 "data processing".

Unfortunately I lack experience in coding and have difficulty understanding how to code the same simple alert conditions above into the ACSIL. I have attached the Cpp file to this post. My hope is someone can create the first 1 or 2 processes then I can learn from and complete the remaining processes. There are //notes in the data processing section as to the goal process.

Additionally in the Color Bar based on Alert Condition Study the first Input is "Number of Bars to Calculate" I have not yet found another study with this input to look through its code and mimic its behavior. Would appreciate being pointed to a correct starting place.

Thank you
Fritz
Date Time Of Last Edit: 2021-09-29 16:13:26
attachmentColorbarbasedonVol.cpp - Attached On 2021-09-29 16:13:22 UTC - Size: 3.39 KB - 410 views
[2021-09-30 05:20:45]
Fritz101 - Posts: 5
Was able to work this out on my own. This can be closed or I can post the final product for user use/criticism towards improved functionality.

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

Login

Login Page - Create Account