Login Page - Create Account

Support Board


Date/Time: Sat, 01 Mar 2025 16:02:14 +0000



Post From: *Potentially* Found a Bug Related To the Bid & Ask Depth Bars Study

[2021-10-04 01:02:30]
TrumpTradesOil - Posts: 8
Hey there!

Apologies if this is either already known or the Bid & Ask Depth Bars study subgraphs are not intended to be referenced in a custom study, but I'm seeing a decently impactful *potential* bug.

For example, if you set Bid & Ask Depth Bars to "Sum Ask Side" and reference the close like so:


SCGraphData AskDepthStudyData;
sc.GetStudyArraysFromChartUsingID(2, 2, AskDepthStudyData);
SCFloatArrayRef ADC = AskDepthStudyData[3];

I'm getting a cpu exception that after a few seconds crashes the chart. I've commented out all other code in my study and this is the specific line that causes the crash. It also works just fine with the "Sum Bid Side" setting.

Maybe this is related to the close being retroactively updated to the open of the next depth bar? Noticed this when digging through the ACSIL depth data and comparing it to the data on chart.

Anywho, hope this helps and apologies if this was something already known or I shouldn't be referencing this study's subgraphs in a custom study!

Thanks and God bless :)
Date Time Of Last Edit: 2021-10-04 01:04:27