Support Board
Date/Time: Thu, 28 Nov 2024 22:44:04 +0000
Range Bar based on open - close range
View Count: 758
[2023-03-18 11:15:38] |
Kai - Posts: 10 |
Hello, im looking for a range bar type which is based on the open - close range of the candle. So if the range between open and close exceeds for example 12 ticks there should be a new candle created. It seems that the existing range bar types cant handle this use case. Regards, Kai |
range bar open close.png / V - Attached On 2023-03-18 11:14:31 UTC - Size: 135.11 KB - 88 views Attachment Deleted. |
[2023-03-20 15:24:42] |
John - SC Support - Posts: 36350 |
Try using the Range Bar - True option. If the problem you are having is that you are seeing 1 additional price level (i.e. 12 tick bar, but you get 13 total price levels) that is due to the fact that it is a "Range" therefore you have to have the additional level in order to have that actual range of data. Another way to look at it is that when you start counting, you start at the bottom and then count 1 when you move up from the bottom. The fix to this is to enter a value that is 1 tick less than what you are thinking. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-03-20 20:53:20] |
Kai - Posts: 10 |
Hi, my problem is another one. When i input a value of 12 ticks for example, the range of the whole candle consists of 13 ticks. But i want that amount of ticks for the range between open and close of each candle. The attached screenshot shows what i see with Range Bar - True. The range between open and close of a candle isnt 13 ticks for each candle. Its only 3 ticks for example. |
range bar.png / V - Attached On 2023-03-20 20:52:32 UTC - Size: 26.43 KB - 83 views |
[2023-03-21 16:44:58] |
Sierra_Chart Engineering - Posts: 17210 |
If Sierra Chart does not have what you require, then you can create your own Range bars: ACSIL Interface - Custom Chart Bars The existing Range bar types are documented here: https://www.sierrachart.com/index.php?page=doc/ChartSettings.html#TimePeriodPerBar 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2023-03-21 16:45:23
|
[2023-03-25 09:50:21] |
Kai - Posts: 10 |
Hi, yes, i tried programming it myself. But it seems that within the SCCustomChartBarInterfaceRef there is missing the logging function AddMessageToLog(). Programming without the ability for debugging is bit of a pain. Do you plan to add a logging function for custom bars? |
[2023-03-27 14:37:10] |
John - SC Support - Posts: 36350 |
You have access to the AddMessageToLog() function, as you are building within the general ACSIL environment. Refer to the following: sc.AddMessageToLog() For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-03-27 17:15:51] |
Kai - Posts: 10 |
Within the CustomRangeChartBarBuildingFunction() ? When i add sc.AddMessageToLog() there, i get following error: In function 'void CustomRangeChartBarBuildingFunction(SCCustomChartBarInterfaceRef)': test.cpp:89:3: error: 'sc' was not declared in this scope; did you mean 's_sc'? 89 | sc.AddMessageToLog( |
[2023-03-27 17:21:04] |
John - SC Support - Posts: 36350 |
Sorry, not within that function if you are setting it up the way it is shown in the example.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-03-27 17:35:09] |
Kai - Posts: 10 |
Yes, outside of the CustomRangeChartBarBuildingFunction() it should work. But in my opinion, when i want to develop a custom bar type, the sourcecode which is interesting for debugging is inside the CustomRangeChartBarBuildingFunction(). |
To post a message in this thread, you need to log in with your Sierra Chart account: