Login Page - Create Account

Support Board


Date/Time: Wed, 01 May 2024 20:08:31 +0000



Range Chart - issue

View Count: 808

[2016-09-26 23:20:26]
sampater - Posts: 243
Chart: Range Per Bar-Standard

The Issue there is only on specific bar. See "incorrect" in attached pic.
In the Tool Values Window, the Price Chg is displayed red, even though the Last of this bar ("incorrect") is equal the Last of previous bar.

The Last of the "correct" bar is equal the Last of previous bar, but The Price Chg of the "correct" bar is black.

This issue causes malfunctions in the ACSIL code:
if (sc.Close[sc.Index] == sc.Close[sc.Index - 1])
returns false for "incorrect" bar and should be true.

Thanks
imageRange.png / V - Attached On 2016-09-26 23:16:48 UTC - Size: 44.14 KB - 226 views
[2016-09-26 23:50:14]
Sierra Chart Engineering - Posts: 104368
For this comparison:
if (sc.Close[sc.Index] == sc.Close[sc.Index - 1])


You need to use:
sc.FormattedEvaluate()

We will solve the problem with the coloring of the Price Change text.
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: 2016-09-27 00:22:04
[2016-09-27 18:52:12]
sampater - Posts: 243
I can use the function sc.FormattedEvaluate(), but in any chart of type "Days-Mins-Secs Per Bar" i never had to use this function for comparison between the sc.Close and sc.Open and sc.High and sc.Low to get correct return, so i thought that there is the issue in the chart type "Range Per Bar-Standard".
[2016-09-27 21:16:15]
Sierra Chart Engineering - Posts: 104368
No, there is not an issue.
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