Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 09:15:20 +0000



ACSIL resources and price zone study

View Count: 2669

[2018-09-28 04:41:15]
User165373 - Posts: 7
Already tried posting to Programming Help, but received no reply, so I'm re-submitting to the Support Board:

I am new to Sierra Charts custom study coding and would like to convert some of my custom studies from ThinkOrSwim to Sierra Charts. As a first attempt, I'd like to develop a study to plot semi-transparent support and resistance zones on a sierra chart. I assume this is easy and that this code probably already exists somewhere. Do you know of any existing studies or code snippets that do this that I could copy and modify?

Any other advice on where to start to get up to speed faster? I'm familiar with the main ACSIL page and found the .cpp files in the example code files, but is there an index somewhere that lists all the .cpp files with a short description?

Are there any ACSIL getting started tutorial videos anywhere?
Are there any good code repositories to be aware of - either within Sierra Charts and/or elsewhere?
Are there any Sierra Charts programming user groups or forums that I should be aware of?

Thanks,
[2018-09-28 18:26:36]
Sierra Chart Engineering - Posts: 104368
We need to prepare some documentation to explain how to do this. We should have that done by Monday.

There are no videos. There is only the ACS_Source folder with Sierra Chart that has the code repository. You need to look inside the files to see the content. There are no other descriptions.

And there is just this forum for programming discussion. Just mark a new thread as Programming Help.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-09-28 19:11:42
[2018-09-28 21:36:37]
User165373 - Posts: 7
This was not addressed to Engineering. It was to the Programmer community. I did what you suggested in your previous post and selected the "Programming Help" button before posting. Don't know why this ended up being addressed to Engineering.
[2018-09-28 22:15:33]
bradh - Posts: 854
In addition to the Sierra pages on developing ACSIL studies, these videos were very helpful to me when I first started with ACSIL.

https://www.youtube.com/playlist?list=PL-CmSBWHCmZQsbZBgzosuWFjrOLBUiRY0

I suggest you start with Remote Build and Notepad++ to get familiar with the coding. You can use sc.AddMessageToLog to put debug output in the Message Log. If and when you need to do more complex debugging, you can take the plunge with Visual Studio debugging. Instead of setting up VS for 32 and 64 bit production releases, you can just use Remote Build to remove all the debug code that VS puts in. Make sure you start in 64 bit mode to compile 64 bit DLLs, which have _64 appended to the file name. (32 bit: Sample.DLL, 64 bit: Sample_64.DLL).

If you are new to C++ there is a series by TheChernoProject that is very thorough:
https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb&disable_polymer=true
[2018-09-28 22:48:41]
user8888 - Posts: 159
great resources, TYVM bradh
[2018-10-08 22:28:31]
User165373 - Posts: 7
I experimented to see if I could create a "price zone clouds" .cpp file. My first attempt and a snip of the resulting price zone clouds on an SC chart are attached.

A couple simple(I think) questions for more experienced ACSIL programmers below:

1. Anyone know how to extend the subgraphs to the right i.e. beyond the end of the active price data?

2. I set the bottom of the 3 price clouds to x0=2865, x1=2880, and x2=2890. Is there a way to enter this as an array or list in ACSIL? i.e. something like " array x = [2865 2880 2890] " ?

3. Is there a statement to set the Transparency Level For Fill Styles in the .cpp file? The default value is currently 75. I'd like to set it to 60 in the .cpp file.

Any other suggestions to improve my code is appreciated.

Thanks in advance for any suggestions/help,
Randy
imageprice zones v0.JPG / V - Attached On 2018-10-08 22:26:08 UTC - Size: 62.85 KB - 628 views
attachmentzz_priceZoneClouds.cpp - Attached On 2018-10-08 22:26:25 UTC - Size: 2.11 KB - 455 views
[2018-10-10 22:13:09]
Sierra Chart Engineering - Posts: 104368
2. You can use a study Input for this:
ACSIL Interface Members - sc.Input Array

The other questions are answered in this new documentation we have added here:
ACSIL Programming Concepts: Filling an Area Between Two Price Levels
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account