Support Board
Date/Time: Sun, 19 Jan 2025 12:31:42 +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 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.showing the return type of the function. 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. 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
|
Persistent variables example.Cht - Attached On 2018-04-05 04:02:33 UTC - Size: 58.97 KB - 455 views |