Support Board
Date/Time: Tue, 04 Nov 2025 08:13:17 +0000
[Programming Help] - VAPContainer Help
View Count: 773
|   [2020-06-19 00:17:52]     |  
| User769783 - Posts: 195 | 
| 
                Can I use these functions of VAPContainer to show when the ask prices are lifted and/or when the bids are hit: ....... /*============================================================================ Adds the given VolumeAtPrice to the current volume at the given BarIndex and PriceInTicks. If no current volume exists, the volume will be added to a new default element, if possible. Returns true unless the requested element could not be accessed or created. ----------------------------------------------------------------------------*/ template<typename t_VolumeAtPrice> inline bool c_VAPContainerBase<t_VolumeAtPrice>::AddVolumeAtPrice ( const int PriceInTicks , const unsigned int BarIndex , const t_VolumeAtPrice& VolumeAtPrice ) { t_VolumeAtPrice* p_VAPElement = NULL; const bool ElementFound = GetVAPElement(PriceInTicks, BarIndex, &p_VAPElement, true); if (!ElementFound || p_VAPElement == NULL) return false; *p_VAPElement += VolumeAtPrice; return true; } /*============================================================================ Subtracts the given VolumeAtPrice from the current volume at the given BarIndex and PriceInTicks. If no current volume exists, the volume will be subtracted from a new default element, if possible. Returns true unless the requested element could not be accessed or created. ----------------------------------------------------------------------------*/ template<typename t_VolumeAtPrice> inline bool c_VAPContainerBase<t_VolumeAtPrice>::SubtractVolumeAtPrice ( const int PriceInTicks , const unsigned int BarIndex , const t_VolumeAtPrice& VolumeAtPrice ) { t_VolumeAtPrice* p_VAPElement = NULL; const bool ElementFound = GetVAPElement(PriceInTicks, BarIndex, &p_VAPElement, true); if (!ElementFound || p_VAPElement == NULL) return false; *p_VAPElement -= VolumeAtPrice; return true; .... I'm just rolling the dice with this question hoping to get some help. Thanks  | 
        
|   [2020-06-19 00:28:57]     |  
|   |  
| 
                No, those functions would only be used when creating the Volume at Price data.
                 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 Date Time Of Last Edit: 2020-06-19 00:29:04  
             | 
        
|   [2020-06-19 00:34:18]     |  
| User769783 - Posts: 195 | 
| 
                As a shortcut, are there functions included in ACS_Source folder that does? Any studies or something? Thanks
                 | 
        
|   [2020-06-19 00:37:32]     |  
| User769783 - Posts: 195 | 
| 
                Or would I have to access the current market Depth? Is there a sample study using this function? Thanks
                 | 
        
To post a message in this thread, you need to log in with your Sierra Chart account:
