Support Board
Date/Time: Sat, 08 Feb 2025 01:55:55 +0000
Post From: VAPContainer Help
[2020-06-19 00:17:52] |
User769783 - Posts: 188 |
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 |