Login Page - Create Account

Support Board


Date/Time: Wed, 02 Jul 2025 01:46:33 +0000



Post From: Offering To The Community: Show/Hide studies using ACS buttons on a Control Bar

[2018-03-01 12:10:16]
aknsyu71@gmail - Posts: 59
I have created a ACSIL script to achieve this for my own purposes and would like to share this with anyone finding this usefull.

The script will make it possible to show or hide 5 studies from a chart by a using buttons on a control bar.
To set this up:
- Add 5 ACS buttons (choice of 150) to a control bar
- Map these 5 button numbers in the "Show/Hide studies" script to the 5 studies you'd like to show/hide
- Choose the 5 studies in the script which you'd like to show/hide

The Sierra chart control bar only allows one button to be depressed at a time so in order to allow the show/hide state to be indicated on the buttons the text of the button changes between "StudyName" and "StudyName OFF" depending on its state.

Please be aware that if you are using a study like "Trade Managment by Study" which also has an option to use a ACS button then keep in mind to not use the same button numbers and not to have the Trademanagement buttons on the same control bar as the show/hide buttons since the TradeManagement study will be disabled every time a show/hide button is pressed.
attachmentShowHideStudiesACS.cpp - Attached On 2018-03-01 11:52:07 UTC - Size: 6.58 KB - 505 views
attachmentShowHideStudiesACS.dll - Attached On 2018-03-01 12:04:16 UTC - Size: 811 KB - 398 views