Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 11:00:29 +0000



ACSIL - sc.AreRenkoBars() - true for delta bars

View Count: 930

[2015-09-21 13:20:33]
ejtrader - Posts: 688
SC Team - Apparently this function sc.AreRenkoBars() returns true for delta bars. Is this by design?

I am trying to find out the painted(candlestick) Open/Close Value of the bar. In case if the function sc.AreRenkoBars() true - I am picking up SC_RENKO_OPEN/SC_RENKO_CLOSE for this purpose.

This works fine for flexrenko bars. However in case of delta (also seems to be the case with volume bars) - this function returns true but they don't represent painted open/close.

Are there any alternate options to pick painted open/close values for any chart type?

PS: In case of volumebars - I can use sc.AreVolumeBars() as an alternate option, but no such option for delta bars.

thanks
Date Time Of Last Edit: 2015-09-21 13:49:13
[2015-09-21 16:09:17]
ejtrader - Posts: 688
Reviewing this from coding point of view as well.

Thanks
[2015-09-21 16:47:09]
ejtrader - Posts: 688
Ended up being the code issue. This can be Closed.

Not sure why though :)

Just by changing the following code - seems to have fixed the issue - but don't know why it would fix the issue (one of those things - have to check back at a later time during code review).


sg1[i] = sc.BaseData[SC_OPEN][i];
sg2[i] = sc.BaseData[SC_CLOSE][i];

The same code changed to below(no other changes) and it fixed the issue.


sg1[i] = sc.Open[i];
sg2[i] = sc.Close[i];

Date Time Of Last Edit: 2015-09-21 16:47:39
[2015-09-21 18:36:31]
Sierra Chart Engineering - Posts: 104368
We will look into this.
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
[2015-09-21 18:42:24]
Sierra Chart Engineering - Posts: 104368
One problem we found is that sc.AreTimeSpecificBars() would have returned 1 in the case of Delta Volume bars. This has been fixed.
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
[2015-09-21 19:10:25]
ejtrader - Posts: 688
Thank you sc team.

For any one else referencing this thread in the future, the following code seems to detect the painted open/close properly for any type of chart (as of this date). Verified manually.

if(sc.RenkoTicksPerBar)
{
// SC_RENKO_OPEN & SC_RENKO_CLOSE - These values are likely to represent the candle open/close values
}

thanks

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account