Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 19:27:32 +0000



Post From: Get Value from Object without Reference

[2023-07-21 12:15:09]
Sierra_Chart Engineering - Posts: 17198
This will not be the case:
but if the Value of object is changed, then the value of this variable is changing as well

However, if this code is executing every time you are using a copy of a value, then you are always getting the current depth values:

s_MarketDepthEntry DepthEntryBid;
s_MarketDepthEntry DepthEntryAsk;
sc.GetBidMarketDepthEntryAtLevel(DepthEntryBid, 0);
sc.GetAskMarketDepthEntryAtLevel(DepthEntryAsk, 0);

Last_Bid_Limit_Size = DepthEntryBid.Quantity;
Last_Ask_Limit_Size = DepthEntryAsk.Quantity;

You may want to look at persistent variables:
Persistent Variable Functions
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