Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 17:24:33 +0000



[Programming Help] - sc.GetCurrentTradedBidVolumeAtPrice(float Price) is not working

View Count: 140

[2024-08-07 13:05:19]
nauT - Posts: 4
Hi sierra board,

I want to create my own ACSIL custom study and access DOM data (I have a denali feed with market depth data).
I read about the sc.GetCurrentTradedBidVolumeAtPrice(float Price) function in the documentaion, but its not working:

relevant parts of my code:

"sc.UsesMarketDepthData = 1;" (in default block)

in calculation:
"int Test = sc.GetCurrentTradedBidVolumeAtPrice(sc.Bid);" (I also tried "DepthEntry.AdjustedPrice" from the DepthEntryLevel data)

but the results is always Test = "0", why?

my goal is to get the total volume traded at this price (like shown in the DOM chart)

best regards
[2024-08-08 23:04:43]
Sierra_Chart Engineering - Posts: 17150
Make sure you add the Current Traded market data columns to the same chart:
Global Trade Settings Windows: Customize Chart/Trade DOM Columns (Chart Specific)

This is not a market depth data column.
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: 2024-08-08 23:05:16

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

Login

Login Page - Create Account