Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 19:46:22 +0000



Post From: sc.GetCurrentTradedBidVolumeAtPrice(float Price) is not working

[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