Login Page - Create Account

Support Board


Date/Time: Sat, 15 Mar 2025 22:50:52 +0000



[Locked] - GDI drawing variables

View Count: 560

[2022-07-29 23:21:08]
Trader_Rob - Posts: 18
I'm trying to do some custom graphing with sc.p_GDIFunction

Looking at the example code, it doesn't seem possible to pass in custom values/variables to the draw function, correct?

Thank you!
[2022-07-30 10:33:26]
Sierra Chart Engineering - Posts: 104368
Not directly but you can use persistent variables and set them in the main study function and access them in the drawing function:
ACSIL Interface Members - Functions: sc.GetPersistentIntFast()
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