Login Page - Create Account

Support Board


Date/Time: Thu, 16 May 2024 08:04:10 +0000



Post From: sc.BaseData array NOT readonly! (was Custom study causing changes to sc.BaseData arrays!)

[2017-09-10 14:31:46]
binaryduke - Posts: 360
Hi SierraChart

Strange situation. I am coding a custom study and for some reason it is causing the sc.BaseData to be affected.

Image 1: Chart prior to custom study being applied featuring standard SC indicators: Numbers Bars (open/close marker in column 1 set to candlestick outline) + High/Low for time period
http://www.sierrachart.com/image.php?Image=1505053353860.png

Image 2: Custom study has been applied. The only thing this study is doing is checking if time is >= 09:00:00 (note this is when the high has become stuck) and performing some calculations based upon the relationships of sc.High[sc.Index], sc.Low[sc.Index], sc.Open[sc.Index] and sc.Close[sc.Index]. After application of the study, the standard SC indicators (Numbers Bars candlestick outline) are dealing with a 'stuck' high value. This can also be seen in the Chart Values Window.
http://www.sierrachart.com/image.php?Image=1505053817566.png

This has been tested on v1598 and v1605. Compilation using your remote compiler.

Please let me know what if anything I can provide you with to aid diagnosis. I can't begin to think what I can tell you about the study to assist as I cannot see how in any way an ACSIL study could affect the sc.BaseData array.

Thanks

Lee.