Login Page - Create Account

Support Board


Date/Time: Wed, 01 May 2024 18:55:48 +0000



Post From: 64 Bit performance

[2018-04-05 04:01:45]
Sierra Chart Engineering - Posts: 104368
The code you just posted could NOT possibly compile. The function in question has a return type of a reference to a float – float & - not a return type of float. I included a screen shot of my Visual Studio
showing the return type of the function.
Yes it does compile and the reference does not have to be placed into a reference. A copy is just fine. There was no need for a reference in the example.


The thing is if someone else who is new to SC tries the function, instead of posting a message on support, they will just move on to something else.
Hopefully you really do not think there is a genuine problem, and that we are releasing functionality that just does not work. The way this functionality works internally is very simple and well-established and does work properly.

Attached is a test chart book demonstrating this.

In chart #1, go to Chart >> Recalculate and after you do that look at the Message Log. You will see Chart #2 automatically calculate and display the value of the persistent variable each time.

In the next release the example has been updated to use sc.UpdateAlways and increment the persistent variable.
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-04-05 04:02:59
attachmentPersistent variables example.Cht - Attached On 2018-04-05 04:02:33 UTC - Size: 58.97 KB - 324 views