Support Board
Date/Time: Fri, 31 Jan 2025 00:03:20 +0000
Change Bar Period in ASCIL
View Count: 833
[2019-04-01 04:59:31] |
PK - Posts: 12 |
Hi, I run the following code to change Bar Period from ASCIL: n_ACSIL::s_BarPeriod NewBarPeriod; NewBarPeriod.ChartDataType = INTRADAY_DATA; NewBarPeriod.IntradayChartBarPeriodType = IBPT_DAYS_MINS_SECS; NewBarPeriod.IntradayChartBarPeriodParameter1 = 60*60;// 60Mins per bar //Set the bar period parameters. This will go into effect after the study function returns. sc.SetBarPeriodParameters(NewBarPeriod); but there is error when I compile the code. Could you help checking what's the problem. Please see attached error message. Thanks. |
Error message.docx - Attached On 2019-04-01 04:57:46 UTC - Size: 12.44 KB - 442 views Attachment Deleted. |
[2019-04-01 05:57:21] |
Sierra Chart Engineering - Posts: 104368 |
The problem is there are invalid characters in the source code file. What text editor are you using to edit the file? If you are using the Notepad++ editor, then go to the source code file and select Encoding >> Encode in ANSI. And save the file. 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 |
[2019-04-01 07:49:07] |
PK - Posts: 12 |
Initially, it was UTF-8, so I changed to ANSI and deleted some special characters, then went back to UTF-8 there were also some special characters, I deleted all. Finally, everything is ok, I can compile the code. Thanks. |
To post a message in this thread, you need to log in with your Sierra Chart account: