Login Page - Create Account

Support Board


Date/Time: Sun, 06 Jul 2025 09:15:17 +0000



[Programming Help] - Copy Price Under The Mouse ACSIL Help.

View Count: 98

[2025-06-27 06:37:22]
AlexH4 - Posts: 21
hi!! am trying too create a ACSIL Script to simply copy the price (crosshair price) where my cursor is on the chart to a .txt file!

well after a lot of trying and ChatGPT i didn't have success for now... is there some one that can tell me if at least is possible and if there is any function to do it like sc.ChartScaleValueAtMouseCursor .....thx for any HELP :-) a hotkey to Copy Price to "Clipboard" feature would be awesome...
Date Time Of Last Edit: 2025-06-27 06:46:22
[2025-06-27 08:21:05]
User431178 - Posts: 733
ACSIL Interface Members - Variables and Arrays: sc.ActiveToolYValue
[2025-06-28 00:33:07]
AlexH4 - Posts: 21
I would like to make use of the newer ACSIL functions, specifically:

SCInputRef::GetCustomInputIndex()

SCInputRef::SetIndex() or SCInputRef::SetCustomInputIndex()

However, these methods are not available in my current version, and the compiler returns errors indicating that they are not recognized members of SCInputRef.

Which version of Sierra Chart introduced support for these functions?

Are there any build settings, flags, or compiler defines I need to enable in order to use these functions?

I’m building using the standard Build Custom Studies DLL workflow.

Thank you for your help!!!
[2025-06-28 10:35:02]
User431178 - Posts: 733

However, these methods are not available in my current version, and the compiler returns errors indicating that they are not recognized members of SCInputRef.

Which version of Sierra Chart introduced support for these functions?

Are there any build settings, flags, or compiler defines I need to enable in order to use these functions?

You (or chatGPT) are doing something odd, those are not new functions and you don't need to do anything unusual to make use of them.

If you provide an example of what you're doing you might get some help correcting it.
There are many examples of studies in the ACS_source folder, so you could check there for some ideas on what is wrong too.


SCInputRef::GetCustomInputIndex()
SCInputRef::SetIndex()
SCInputRef::SetCustomInputIndex()

This won't work as they are not static functions, you need to call the function on an actual instance of the class.


sc.Input[0].GetCustomInputIndex();

ACSIL Interface Members - sc.Input Array: Introduction
[2025-06-28 18:19:00]
AlexH4 - Posts: 21
I finally found an alternative instead of creating a study. What i did is activate tool value window (u can hide it if you want) assign a hotkey to the copy chart value (in edit) than creating a ahk script that is pressing that hotkey for me than remove everything on the clipboard ecept the price for Chart Values for Tools Y: and than send the price to my das trader level 2 price window :) now i can instantly place order on the chart using das trader! :)
Date Time Of Last Edit: 2025-06-28 23:39:36
[2025-06-28 18:26:06]
AlexH4 - Posts: 21
BTW thx i will look for examples of studies in the ACS_source.. is it possible to have the script code study that are already available in sierra chart for exemple i would like to modify the time range highlight to also highlight post market with a different color instead of trying to build a new one? i know i can simply re-add the study but am trying to keep my chart clean and fast as possible wihtout having the same study two time...
Date Time Of Last Edit: 2025-06-28 18:30:24

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

Login

Login Page - Create Account